Friday, July 18, 2014

Build st-util @Debian 7.6 (wheezy)

Error Msg :
./configure: line 4379: syntax error near unexpected token `USB,'
./configure: line 4379: `PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,'

Solution :
Step 1. Download pkg.m4
.../usr/share/aclocal# wget https://gnunet.org/svn/Extractor/m4/pkg.m4

Step 2. Add ACLOCAL_AMFLAGS Env Var To Makefile.am
ACLOCAL_AMFLAGS = -I /usr/share/aclocal

And Then ./autogen, ./configure ...., make, make install

3 comments:

Unknown said...

Hi,

i am having the same problem but i cannot solve it using these 2 steps.
i do the step one and i double check that i actually have the pkg.m4 file in the folder,

Then for the step 2, i copy and paste:
ACLOCAL_AMFLAGS = -I /usr/share/aclocal
in the makefile.ac (is this correct? does it matter where i place it?)

I still getting the same error when i run ./configure

Any idea why? Thanks!

Unknown said...
This comment has been removed by the author.
Tony's Blog said...

re per asdp :
please make sure the package "pkg-config" have been installed.

我負責

 ... + ...........  政策 我負責. 負責推卸責任. (阿不然你以為哩...) 聽說 記錯了 請見諒 深感抱歉.... 抗(國外)疫(苗)中...