Opened 13 years ago
Closed 13 years ago
#33571 closed defect (invalid)
ncurses: captoinfo already exists and does not belong to a registered port
Reported by: | garrets@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | ncurses |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
The error in trying to install wine using the sudo command is below. Ncurses seems to be the problem.
I tried evey line of code on the problem hotlist to try and fix it. But nothing has changed.
Here's my selection of code, with what I inputed in bold
Garret-Schneiders-MacBook-Pro:~ garrets$ sudo port install wine ---> Computing dependencies for wine ---> Dependencies to be installed: apple-gcc42 flex gettext ncurses ncurses fontconfig freetype bzip2 zlib zlib freetype gnutls libgcrypt libgpg-error libtasn1 lzo2 pkgconfig glib2 libffi perl5 perl5.12 gdbm perl5 xz pkgconfig readline jpeg jpeg lcms tiff tiff libpng libxml2 libxml2 libxslt mesa makedepend xorg-xproto py27-libxml2 python27 db46 libedit openssl openssl python_select sqlite3 xorg-dri2proto xorg-glproto xorg-libXfixes xorg-fixesproto xorg-libX11 autoconf help2man p5.12-locale-gettext m4 automake libtool xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-libXdmcp xorg-libxcb xorg-libpthread-stubs xorg-xcb-proto xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXi xorg-libXext xorg-libXi xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libsm xorg-libXcomposite xorg-compositeproto xorg-libXcursor xorg-renderproto xrender xrender xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto ---> Activating ncurses @5.9_1+universal Error: Target org.macports.activate 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. Error: Failed to install ncurses Log for ncurses is at: /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: flex gettext ncurses ncurses fontconfig freetype bzip2 zlib zlib freetype gnutls libgcrypt libgpg-error libtasn1 lzo2 pkgconfig glib2 libffi perl5 perl5.12 gdbm perl5 xz pkgconfig readline jpeg jpeg lcms tiff tiff libpng libxml2 libxml2 libxslt mesa makedepend xorg-xproto py27-libxml2 python27 db46 libedit openssl openssl python_select sqlite3 xorg-dri2proto xorg-glproto xorg-libXfixes xorg-fixesproto xorg-libX11 autoconf help2man p5.12-locale-gettext m4 automake libtool xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-libXdmcp xorg-libxcb xorg-libpthread-stubs xorg-xcb-proto xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXi xorg-libXext xorg-libXi xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libsm xorg-libXcomposite xorg-compositeproto xorg-libXcursor xorg-renderproto xrender xrender xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> Garret-Schneiders-MacBook-Pro:~ garrets$ sudo port -n upgrade --force ncurses Password: ---> Cleaning ncurses ---> Uninstalling ncurses @5.9_1+universal ---> Cleaning ncurses ---> Computing dependencies for ncurses ---> Fetching archive for ncurses ---> Attempting to fetch ncurses-5.9_1+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/ncurses ---> Fetching ncurses ---> Verifying checksum(s) for ncurses ---> Extracting ncurses ---> Applying patches to ncurses ---> Configuring ncurses ---> Building ncurses ---> Staging ncurses into destroot ---> Installing ncurses @5.9_1+universal ---> Activating ncurses @5.9_1+universal Error: Target org.macports.activate 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. Log for ncurses is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncurses/ncurses/main.log Garret-Schneiders-MacBook-Pro:~ garrets$ port -f activate ncurses Error: Insufficient privileges to write to MacPorts install prefix.
Change History (2)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Priority: | High → Normal |
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Summary: | Problems with "insufficient rights" to activate ncurses port. But I'm the administrator on my computer → ncurses: captoinfo already exists and does not belong to a registered port |
Note: See
TracTickets for help on using
tickets.
Replying to garrets@…:
captoinfo, a file the ncurses port wants to install, already exists on your computer. Why? It shouldn't. If you cannot answer why this file already exists when it should not, you should assume other unauthorized files have been left in /opt/local as well, and should follow the uninstallation instructions in the Guide. Then reinstall MacPorts and the ports you want.
You can force the activation, using the command the error message printed, which will move the conflicting file(s) aside. However, this situation should not have arisen, so to ensure you don't run into this or other problems again with other ports in the future, I recommend uninstalling and reinstalling everything.
Correct. If you wanted to run this or any other command that modifies MacPorts files, you would need to preface the command with "sudo", as per usual.