2

I've been trying to install dfu-util on my MAC OS X 10.7.5. I follow the instructions in this website:

http://forum.seeedstudio.com/viewtopic.php?f=12&t=1364

Everything seems to be working properly but, when I run the command:

./configure --libdir=/opt/local/lib --includedir=/opt/local/include

This erro appears:

./configure: line 3770: syntax error near unexpected token `USB,'
./configure: line 3770: `PKG_CHECK_MODULES(USB, libusb >= 0.1.4,,'

Does anyone know how to fix it?

Thank you very much in advance.

auselen
  • 27,577
  • 7
  • 73
  • 114

3 Answers3

1

You should install pkgconfig (then re-run autogen.sh before ./configure)

pitbull
  • 11
  • 1
0

did you run this before attempting to install?

sudo port install libusb libusb-compat git-core

do you have gcc/xcode installed?

RandomNumberFun
  • 638
  • 2
  • 8
  • 25
0

If anyone is looking to install DFU-UTIL in 2015 using Brew on OSX, you'll find that the dfu-util.gnumonks.org site has been down since November of 2014. Here's the work-around...

Since Brew is looking for the 0.7 release and the gnumonks.org fellows have put up a mirror on sourceforge, you can download "dfu-util-0.7.tar.gz" from http://dfu-util.sourceforge.net/releases/ and place it into your /Library/Caches/Homebrew directory. Then, executing the command "brew install dfu-util" will work as expected!

Cheers!

Sterling Bourne
  • 3,064
  • 23
  • 22