Getting errors trying avrdude from a MacOSX Terminal Shell

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
mebriscoe
 
Posts: 5
Joined: Thu Jul 12, 2007 1:04 am

Getting errors trying avrdude from a MacOSX Terminal Shell

Post by mebriscoe »

Hello,

I got the kit, had fun assembling it, lights up green when I plug it into the USB port of my Mac. At this point. I'm fairly sure the hardware's ok, but I think I'm missing something with the software.

Here is the error that I get:

[Michaels-Computer:~] michael% avrdude
dyld: Library not loaded: /opt/local/lib/libusb-0.1.4.dylib
Referenced from: /usr/local/bin/avrdude
Reason: image not found
Trace/BPT trap
[Michaels-Computer:~] michael%


Any ideas?

~ Michael B

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

most macs seem to come with libusb but yours didnt...luckily its easy to get from:
http://libusb.sourceforge.net/

mdfitz
 
Posts: 1
Joined: Fri Jul 13, 2007 5:44 pm

Post by mdfitz »

I'm no expert on such things, but you may want to verify your paths. Looks like something's looking in the /opt tree (maybe a shell path configuration), but your executable is in the /usr tree. My libusb files, for example, are in /usr/local/lib/...

If I remember correctly, /opt is created by fink and other utilities as an alternate path for unix files.

There's probably more than one way to fix this issue, but I'm not in a position to suggest the best. I almost always use the default paths, and it seems to work out.

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”