Can't install firmata using Gort
cylinderStudio opened this issue · comments
This command:
sudo gort arduino upload firmata /dev/tty.usbmodem1411
Yields this error:
dyld: Library not loaded: /usr/local/lib/libusb-0.1.4.dylib
Referenced from: /usr/local/bin/avrdude
Reason: image not found
2014/10/16 11:31:15 signal: trace/BPT trap
I've used homebrew to upgrade libusb and avrdude, but it doesn't help. Contents of /usr/local/lib/ are:
dtrace libftdi.a libusb-1.0.a node_modules
libelf.a libftdi.dylib libusb-1.0.dylib pkgconfig
libftdi.1.dylib libusb-1.0.0.dylib locale
Could you try brew update && brew upgrade
. I've downloaded gort and wasn't able to reproduce the issue.
Also could you try running avrdude -v
to see if that is working?
You bet.
OK, did all of that. Looks like a lot of formulas were updated, but I'm getting the same result as before.
avrdude -v also yields this:
dyld: Library not loaded: /usr/local/lib/libusb-0.1.4.dylib
Referenced from: /usr/local/bin/avrdude
Reason: image not found
Trace/BPT trap: 5
most macs seem to come with libusb but yours didnt...luckily its easy to get from:
http://libusb.sourceforge.net/
Could you try installing libusb and retry?
No problem.
I manually installed libusb from the sourceforge files and tried again. Results as follows:
$ gort arduino install
Attempting to install avrdude with Homebrew.
Warning: avrdude-6.1 already installed
$ brew upgrade libusb
Error: libusb-1.0.19 already installed
$ gort arduino upload firmata /dev/tty.usbmodem1411
dyld: Library not loaded: /usr/local/lib/libusb-0.1.4.dylib
Referenced from: /usr/local/bin/avrdude
Reason: image not found
2014/10/17 09:15:12 signal: trace/BPT trap
$ ls /usr/local/lib/
dtrace libpng.dylib
libelf.a libpng16.16.dylib
libftdi.1.dylib libpng16.a
libftdi.a libpng16.dylib
libftdi.dylib libusb-1.0.0.dylib
libgphoto2 libusb-1.0.a
libgphoto2.6.dylib libusb-1.0.dylib
libgphoto2.dylib libusb-1.0.la
libgphoto2_port locale
libgphoto2_port.10.dylib node_modules
libgphoto2_port.dylib pkgconfig
libpng.a udev
@zankich / @deadprogram any idea of why this could be happening?
@cylinderStudio the problem is that you have the wrong version of libusb installed
libusb-1.0.19 already installed
and if you notice in the error message
Library not loaded: /usr/local/lib/libusb-0.1.4.dylib
You have libusb 1.0.19
, but avrdude is looking for libusb 0.1.4
. Your problem should be fixed if you install libusb-compat
libusb-compat-0.1.5 is already installed. Should I downgrade?
@cylinderStudio yeah it appears that libusb-compat was upgraded, but avrdude is still referring to the older version of libusb-compat. Downgrading your version of libusb-compat is an option that may work
I was unable to downgrade (was having problems with missing make files from legacy install package), but I uninstalled libusb-compat and reinstalled. It installed a version with 'mavericks' in the title for my current version of OSX, and it included libusb-0.1.4.dylib. All's well now. Thanks for your help.
Great!