Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#23786 closed defect (invalid)

expat activation failure

Reported by: solazari@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: expat

Description

$ sudo port install gd2
Password:
--->  Computing dependencies for gd2
--->  Activating expat @2.0.1_0
Error: The following dependencies failed to build: autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake fontconfig freetype zlib jpeg libpng libtool xpm pkgconfig xorg-libXext xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXt xorg-libsm xorg-libice
Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.

i am new with macports, what should i do for this error?

Attachments (1)

Terminal Saved Output.txt (29.8 KB) - added by solazari@… 15 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

I'd uninstall expat and install it again, with the debug switch, so that if any error occurs, you see what error is actually occurring.

sudo port clean expat
sudo port uninstall expat
sudo port install expat

If this fails, attach the output to this ticket.

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Correction: the last command should have been:

sudo port -d install expat

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Port: expat added
Summary: gd2-Error:Build Failureexpat activation failure

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Possibly the same as #23110, which also lacks output from sudo port -d activate expat.

Changed 15 years ago by solazari@…

Attachment: Terminal Saved Output.txt added

comment:5 in reply to:  2 Changed 15 years ago by solazari@…

Replying to ryandesign@…:

Correction: the last command should have been:

sudo port -d install expat

it can't install expat with the last command. i attached the file.

comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, from your output:

Error: Target org.macports.activate returned: Image error: /opt/local/bin/xmlwf already exists and does not belong to a registered port.  Unable to activate port expat.

Why does /opt/local/bin/xmlwf already exist and not belong to a registered port? expat is the only thing that should be installing this file. So either you installed expat manually in the MacPorts prefix, or you installed expat using MacPorts but MacPorts no longer knows this. You could force the activation:

sudo port -f activate expat

but since I don't know where your existing xmlwf file came from, I don't know if there might be other unregistered files as well so you might encounter the same problem with other ports.

comment:7 Changed 15 years ago by solazari@…

Well i tried "sudo port -f activate expat" and after that i was able to install expat. I don't really know if i already had expat installed. After that i tried" sudo port install gd2" and i get exactly the same error as before.

comment:8 in reply to:  7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to solazari@…:

Well i tried "sudo port -f activate expat" and after that i was able to install expat. I don't really know if i already had expat installed.

You had at least the file /opt/local/bin/xmlwf which is a part of expat.

After that i tried" sudo port install gd2" and i get exactly the same error as before.

This time the error should not be with activating the expat port because it is now activated. Clean whichever port now complains and try again with the debug switch again and see what error message is actually occurring now.

comment:9 Changed 15 years ago by solazari@…

i finally did it. thank you very much for your help and for your patience.

comment:10 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed

Ok, I'm glad you got it working.

comment:11 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Duplicate of #23110.

Note: See TracTickets for help on using tickets.