#60405 closed defect (worksforme)
libusb: libusb-1.0.0.dylib already exists and does not belong to a registered port
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 (7)
comment:1 Changed 5 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 5 years ago by kencu (Ken)
comment:3 Changed 5 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 activation → libusb: 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.
comment:4 Changed 5 years ago by michaelld (Michael Dickens)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
FYI this is not an issue with MacPorts or the GNU Radio port itself. This is an issue with your specific install. We can't say why; stuff happens! I'm closing this issue as "worksforme" since it does. I regularly rebuild and install various ports including GNU Radio with different patches to test them, and MacPorts makes this simple and easy; I almost never have issues with stray files, and when I do I can safely say I know it's because I installed something into /opt/local outside of MacPorts & hence it is my "fault".
comment:5 Changed 5 years ago by XE3ADC (Abraham Diaz de Leon)
Milestone: | → MacPorts 2.6.3 |
---|
Hello, thanks a lot for your comments, I did the following installations before trying to install gnu radio:
1-Jonathan Naylor's MMDVM from GIThub (https://github.com/g4klx/MMDVMHost)
2-Rogerclarkmelbourne Arduino_STM32 issue #256 from Github (https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/256) Issue: macOS: libusb is not included, that dfu-util depends on #256 following recommendations from the community i executed the following: brew install libusb sudo mkdir -p /opt/local/lib sudo ln -s /usr/local/Cellar/libusb/1.0.21/lib/libusb-1.0.0.dylib /opt/local/lib/libusb-1.0.0.dylib
3.GQRX binary package GQRX-2.11.5.dmg.
I believe option # 2 is the cause of my problem with the Gnuradio installation, that patch solved my problem with the arduino_STM32 package and I would not want to loose this fix, is there a procedure to be able to complete the Gnuradio installation without loosing this fix?
Thanks very much again and best regards,
Abraham
comment:6 Changed 5 years ago by mf2k (Frank Schima)
Milestone: | MacPorts 2.6.3 |
---|
comment:7 Changed 5 years ago by kencu (Ken)
Looks like the Arduino_STM32
thing was originally built against MacPorts libusb
but then it was not included in the file.
You can just install MacPort's libusb
and it will happily supply that dylib (the symlink from the brew libusb is why you're getting the collision).
You will not, in the end, be too happy with both MacPorts and brew on the same system unless you're a very clever juggler.
The basic issue is that this file:
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...