#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)
Change History (12)
comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Status: | new → assigned |
comment:2 follow-up: 5 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 Failure → expat 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 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 follow-up: 8 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 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: | assigned → closed |
Ok, I'm glad you got it working.
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.
If this fails, attach the output to this ticket.