Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#37360 closed defect (invalid)

zlib, ncurses: no destroot found

Reported by: adrawbond@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), fodori44@…
Port: zlib, ncurses

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When trying to install ettercap-ng its dependencies won't install.

{~ sudo port install ettercap-ng
--->  Computing dependencies for ettercap-ng
--->  Dependencies to be installed: openssl zlib pcre bzip2 libedit ncurses pkgconfig
--->  Installing zlib @1.2.7_0
Error: org.macports.install for port zlib returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/destroot
Error: Failed to install zlib
Please see the log file for port zlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
Error: The following dependencies were not installed: openssl zlib pcre bzip2 libedit ncurses pkgconfig
Error: Processing of port ettercap-ng failed}

When I try to install zlib by itself it also fails to install

When I try installing ettercap-ng using:

{~ sudo port install ettercap-ng +gtk
--->  Computing dependencies for ettercap-ng
--->  Dependencies to be installed: gtk2 atk gettext ncurses glib2 perl5 perl5.12 gdbm zlib gobject-introspection cairo fontconfig freetype bzip2 libpixman libpng xorg-libXext xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xz xorg-xextproto xorg-xcb-util xrender xorg-renderproto gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2 shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-inputproto xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto pcre pkgconfig
--->  Installing ncurses @5.9_1
Error: org.macports.install for port ncurses returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncurses/ncurses/work/destroot
Error: Failed to install ncurses
Please see the log file for port ncurses for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncurses/ncurses/main.log
Error: The following dependencies were not installed: gtk2 atk gettext ncurses glib2 perl5 perl5.12 gdbm zlib gobject-introspection cairo fontconfig freetype bzip2 libpixman libpng xorg-libXext xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xz xorg-xextproto xorg-xcb-util xrender xorg-renderproto gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2 shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-inputproto xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto pcre pkgconfig
Error: Processing of port ettercap-ng failed}

Again when I try to install ncurses by itself it does not work.

My OS is Lion and my version of Xcode is 4.2.1. I am running the latest version of MacPorts and it is completely up to date.

Attachments (2)

Macports Output (2.6 KB) - added by adrawbond@… 12 years ago.
main.log (3.9 KB) - added by adrawbond@… 12 years ago.

Download all attachments as: .zip

Change History (11)

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

Cc: ryandesign@… added; gmail.com:ultrix removed
Description: modified (diff)
Keywords: ettercap-ng removed
Port: zlib ncurses added; ettercap-ng removed
Summary: Ettercap-ng dependencies won't installzlib, ncurses: no destroot found

This sounds like #29223, for which the solution is to clean and try again, which you should try anytime any port fails to build.

sudo port clean zlib ncurses

If it fails again, please attach the main.log file.

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

Also, although it's probably not related to this problem, consider upgrading to Xcode 4.5.2, since it's usually a good idea to keep your software up to date.

Changed 12 years ago by adrawbond@…

Attachment: Macports Output added

comment:3 Changed 12 years ago by adrawbond@…

I have tried cleaning the ettercap-ng, ncurses and zlib installs and then reinstalling several times and it has not worked. See the attached file for example.

Changed 12 years ago by adrawbond@…

Attachment: main.log added

comment:4 in reply to:  2 Changed 12 years ago by adrawbond@…

Replying to ryandesign@…:

Also, although it's probably not related to this problem, consider upgrading to Xcode 4.5.2, since it's usually a good idea to keep your software up to date.

I updated and it didn't help anything.

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, so before they were destroot failures. Now that you've cleaned and tried again we're seeing the real error, which is activation failure:

Error: org.macports.activate for port zlib returned: Image error: /opt/local/include/zconf.h already exists and does not belong to a registered port.  Unable to activate port zlib. Use 'port -f activate zlib' to force the activation.
Error: org.macports.activate for port ncurses returned: Image error: /opt/local/bin/captoinfo already exists and does not belong to a registered port.  Unable to activate port ncurses. Use 'port -f activate ncurses' to force the activation.

This often means you've installed a third-party program that has installed files into the MacPorts prefix. See wiki:ProblemHotlist#xmlwf. That entry is written about expat, which is another of our ports, but the instructions apply equally to zlib or ncurses or any other port, and the simplest solution is to uninstall MacPorts and reinstall it.

comment:6 in reply to:  5 Changed 12 years ago by adrawbond@…

Replying to ryandesign@…:

Ok, so before they were destroot failures. Now that you've cleaned and tried again we're seeing the real error, which is activation failure:

Error: org.macports.activate for port zlib returned: Image error: /opt/local/include/zconf.h already exists and does not belong to a registered port.  Unable to activate port zlib. Use 'port -f activate zlib' to force the activation.
Error: org.macports.activate for port ncurses returned: Image error: /opt/local/bin/captoinfo already exists and does not belong to a registered port.  Unable to activate port ncurses. Use 'port -f activate ncurses' to force the activation.

This often means you've installed a third-party program that has installed files into the MacPorts prefix. See wiki:ProblemHotlist#xmlwf. That entry is written about expat, which is another of our ports, but the instructions apply equally to zlib or ncurses or any other port, and the simplest solution is to uninstall MacPorts and reinstall it.

Uninstalling MacPorts and reinstalling did the trick. I did some Prolog programming a year or two ago and I'd bet swi-Prolog was the cause of my problems. Thanks for all the help!

comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Glad we got it working. If you need swi-prolog in the future, you can just install it with MacPorts:

sudo port install swi-prolog

It should be the same distribution the developers of swi-prolog have on their web site, since they make theirs using MacPorts.

comment:8 Changed 12 years ago by fodori44@…

- sudo port install fontforge
--->  Computing dependencies for fontforge
--->  Dependencies to be installed: freetype zlib gettext libiconv giflib xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xz xorg-libsm xorg-libice jpeg libpng libuninameslist tiff xorg-libXi xorg-inputproto xorg-libXext xorg-xextproto xorg-libXt xorg-libxkbui xorg-libxkbfile
--->  Activating zlib @1.2.7_0
Error: org.macports.activate for port zlib returned: Image error: /opt/local/include/zconf.h already exists and does not belong to a registered port.  Unable to activate port zlib. Use 'port -f activate zlib' to force the activation.
Error: Failed to install zlib
Please see the log file for port zlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
Error: The following dependencies were not installed: freetype zlib gettext libiconv giflib xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xz xorg-libsm xorg-libice jpeg libpng libuninameslist tiff xorg-libXi xorg-inputproto xorg-libXext xorg-xextproto xorg-libXt xorg-libxkbui xorg-libxkbfile
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port fontforge failed
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: fodori44@… added

fodori44, you too need to follow the instructions at wiki:ProblemHotlist#xmlwf. If you need further help, please write to the macports-users mailing list. This ticket is closed.

Note: See TracTickets for help on using tickets.