Opened 4 years ago

Last modified 4 years ago

#60405 closed defect

libusb: libusb-1.0.0.dylib already exists and does not belong to a registered port — at Version 3

Reported by: XE3ADC (Abraham Diaz de Leon) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: michaelld (Michael Dickens)
Port: libusb

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

Hello, i encountered an error during the installation of GNURADIO port v 3.7.13.5 on OSX El Capitan, Xcode v8.2, could you please help me to correct this issue to be able to have a correct installation of GNURADIO?
down below is the error description obtained from the console,
Thanks in advance and best regards,
Abraham Diaz de Leon Camou
Villahermosa - Tabasco - Mexico


Console output:
--->  Fetching archive for libusb
--->  Attempting to fetch libusb-1.0.23_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/libusb
--->  Attempting to fetch libusb-1.0.23_0.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/libusb
--->  Installing libusb @1.0.23_0
--->  Activating libusb @1.0.23_0
Error: Failed to activate libusb: Image error: /opt/local/lib/libusb-1.0.0.dylib already exists and does not belong to a registered port.  Unable to activate port libusb. Use 'port -f activate libusb' to force the activation.
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libusb/libusb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gnuradio failed

Change History (3)

comment:1 Changed 4 years ago by kencu (Ken)

Description: modified (diff)
Keywords: GNURADIO LIBUSB removed
Milestone: MacPorts 2.6.3
Port: libusb added; GNURADIO v 3.7.13.5 removed

comment:2 Changed 4 years ago by kencu (Ken)

The basic issue is that this file:

/opt/local/lib/libusb-1.0.0.dylib

somehow exists in that location, but MacPorts doesn't know how it got there. The port that is supposed to provide that file already finds it there -- and now asks you what you want to do.

You probably want to follow the instruction to force over-write it with the one MacPorts wants to install.

You might ask yourself how it could come to be that that file is there, however. It is not supposed to be there...

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: michaelld@… removed
Description: modified (diff)
Summary: gnuradio PORT v 3.7.13.5 fails to install - error related to libusb activationlibusb: libusb-1.0.0.dylib already exists and does not belong to a registered port

If you cannot explain why this file was already there when MacPorts did not install it, then perhaps other files were also installed into the MacPorts prefix by something other than MacPorts (perhaps by some installer you ran?) and if so you would likely run into this problem again in the future with other ports. You may need to uninstall MacPorts and all ports and then reinstall the ports you want to get back to a consistent state. If you can remember running and installer that put this file there, then you should advise whoever distributed that installer that they should change where their installer installs files so that it does not conflict with MacPorts.

Note: See TracTickets for help on using tickets.