Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#35640 closed defect (invalid)

bzip2: bunzip2 already exists and does not belong to a registered port

Reported by: hamradioactive@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: bzip2

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

I'm very new at this.

Computer: Mac Mini 2.26 GHz Intel Core 2 Duo
Software: Mac OS X Lion 10.7.4 (11E53)

MacPorts-2.1.2-10.7-Lion
Xcode Version 4.4.1 (4F1003)

I then tried to run sudo port install gnuradio as shown on: http://www.oz9aec.net/index.php/gnu-radio/gnu-radio-blog/373-gnu-radio-330-on-mac-os-x

It starts to run ok, and starts the build then it stops with

Error: Processing of port gnuradio failed
Hamradioactive$ sudo port install gnuradio
Password:
--->  Computing dependencies for gnuradio
--->  Dependencies to be installed: gnuradio-atsc gnuradio-core gnuradio-gruel boost bzip2 expat icu libiconv zlib cppunit fftw-3-single fftw-3 gawk gettext ncurses readline gsl guile gmp libtool pkgconfig python26 db46 libedit openssl python_select sqlite3 swig-python swig pcre py26-numpy py26-nose nosetests_select py26-distribute gnuradio-audio-jack jack libsamplerate libsndfile flac libogg libvorbis libxml2 libxslt gnuradio-audio-osx gnuradio-audio-portaudio portaudio gnuradio-companion gnuradio-wxgui py26-opengl py26-opengl-accelerate py26-pil freetype lcms tiff jpeg py26-tkinter tk Xft2 fontconfig xrender xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 xorg-libpthread-stubs xorg-xcb-proto xorg-renderproto tcl xorg-libXScrnSaver xorg-libXext xorg-xextproto xorg-scrnsaverproto py26-wxpython wxWidgets-python freeglut autoconf help2man p5.12-locale-gettext perl5.12 gdbm m4 perl5 automake mesa xorg-dri2proto xorg-glproto xorg-libXfixes xorg-fixesproto xorg-libXi xorg-inputproto xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto gtk2 atk gobject-introspection cairo libpixman libpng xorg-xcb-util glib2 libffi gdk-pixbuf2 jasper hicolor-icon-theme pango shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXinerama xorg-xineramaproto py26-cheetah py26-gtk libglade2 py26-cairo py26-gobject py26-lxml gnuradio-cvsd-vocoder gnuradio-examples gnuradio-gpio usrp libusb-legacy sdcc29 gputils gnuradio-gsm-fr-vocoder gnuradio-msdd6000 gnuradio-noaa gnuradio-pager gnuradio-qtgui py26-pyqt4 py26-sip qt4-mac dbus libmng qwtplot3d qwt52 gnuradio-radar-mono gnuradio-radio-astronomy gnuradio-sounder gnuradio-trellis gnuradio-usrp gnuradio-utils gnuradio-video-sdl libsdl
--->  Activating bzip2 @1.0.6_0
Error: org.macports.activate for port bzip2 returned: Image error: /opt/local/bin/bunzip2 already exists and does not belong to a registered port.  Unable to activate port bzip2. Use 'port -f activate bzip2' to force the activation.
Error: Failed to install bzip2
Please see the log file for port bzip2 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/main.log
Error: The following dependencies were not installed: gnuradio-atsc gnuradio-core gnuradio-gruel boost bzip2 expat icu libiconv zlib cppunit fftw-3-single fftw-3 gawk gettext ncurses readline gsl guile gmp libtool pkgconfig python26 db46 libedit openssl python_select sqlite3 swig-python swig pcre py26-numpy py26-nose nosetests_select py26-distribute gnuradio-audio-jack jack libsamplerate libsndfile flac libogg libvorbis libxml2 libxslt gnuradio-audio-osx gnuradio-audio-portaudio portaudio gnuradio-companion gnuradio-wxgui py26-opengl py26-opengl-accelerate py26-pil freetype lcms tiff jpeg py26-tkinter tk Xft2 fontconfig xrender xorg-libX11 xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 xorg-libpthread-stubs xorg-xcb-proto xorg-renderproto tcl xorg-libXScrnSaver xorg-libXext xorg-xextproto xorg-scrnsaverproto py26-wxpython wxWidgets-python freeglut autoconf help2man p5.12-locale-gettext perl5.12 gdbm m4 perl5 automake mesa xorg-dri2proto xorg-glproto xorg-libXfixes xorg-fixesproto xorg-libXi xorg-inputproto xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto gtk2 atk gobject-introspection cairo libpixman libpng xorg-xcb-util glib2 libffi gdk-pixbuf2 jasper hicolor-icon-theme pango shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXinerama xorg-xineramaproto py26-cheetah py26-gtk libglade2 py26-cairo py26-gobject py26-lxml gnuradio-cvsd-vocoder gnuradio-examples gnuradio-gpio usrp libusb-legacy sdcc29 gputils gnuradio-gsm-fr-vocoder gnuradio-msdd6000 gnuradio-noaa gnuradio-pager gnuradio-qtgui py26-pyqt4 py26-sip qt4-mac dbus libmng qwtplot3d qwt52 gnuradio-radar-mono gnuradio-radio-astronomy gnuradio-sounder gnuradio-trellis gnuradio-usrp gnuradio-utils gnuradio-video-sdl libsdl
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gnuradio failed
Hamadioactive$ 

I then did

Hamradioactive$ port -f activate bzip2
Error: Insufficient privileges to write to MacPorts install prefix.

Well I'm at a loss. Can anyone help? I've included the bzip2 log

Attachments (1)

main.log (5.0 KB) - added by hamradioactive@… 12 years ago.
bzip2 log

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by hamradioactive@…

Attachment: main.log added

bzip2 log

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

Cc: ryandesign@… added
Description: modified (diff)
Keywords: gnuradio removed
Port: bzip2 added
Resolution: invalid
Status: newclosed
Summary: Processing of port gnuradio failedbzip2: bunzip2 already exists and does not belong to a registered port
Type: requestdefect

Remember to use WikiFormatting when writing in Trac.

As the error message says, the problem is that MacPorts (via the bzip2 port) wants to install the file /opt/local/bin/bunzip2, but that file already exists and MacPorts does not think it put it there. That's a problem. Where did that file come from? If you cannot answer that question, then who's to say there aren't other files around that would conflict with other MacPorts ports? In that case the best course of action would be to follow the uninstallation procedure. That will ensure that all files in /opt/local are gone. Then you can reinstall MacPorts and whatever ports you want, knowing that there are no foreign files present that might interfere.

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

Description: modified (diff)
Note: See TracTickets for help on using tickets.