LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-25-2006, 11:32 PM   #1
003
LQ Newbie
 
Registered: Jun 2006
Distribution: CentOS 6.5
Posts: 25

Rep: Reputation: 15
Help getting libusb 0.1.12 installed...


I downloaded libusb 0.1.12 from here:
http://libusb.sourceforge.net/

When I do ./configure, I get this near the end:
Code:
checking for Doxygen tools... checking for dot... not found
checking for doxygen... not found
configure: WARNING: Documentation build components not installed. sgml docs will not be built
Looking in the readme, I see this:
Code:
One common problem is building the SGML documentation. On some systems,
like SuSE, you will need to set the SGML_CATALOG_FILES environment
variable to something similar to this (actual paths may vary):

export SGML_CATALOG_FILES="/usr/share/sgml/CATALOG.docbook_3:/usr/share/sgml/CATALOG.docbook-dsssl-stylesheets:/usr/share/sgml/openjade/catalog"
So I tried putting in that command and it seemed to work (didn't produce an error), but the ./configure still gave the same result. If I try to do a make, I get this:

Code:
make  all-recursive
make[1]: Entering directory `/home/alester/Downloads/libusb-0.1.12'
Making all in .
make[2]: Entering directory `/home/alester/Downloads/libusb-0.1.12'
if /bin/sh ./libtool --mode=compile /home/alester/Downloads/libusb-0.1.12/compile gcc -DHAVE_CONFIG_H   -I.  -Werror  -g -O2 -g -Wall -MT usb.lo -MD -MP -MF ".deps/usb.Tpo" -c -o usb.lo usb.c; \
then mv -f ".deps/usb.Tpo" ".deps/usb.Plo"; else rm -f ".deps/usb.Tpo"; exit 1; fi
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[2]: *** [usb.lo] Error 1
make[2]: Leaving directory `/home/alester/Downloads/libusb-0.1.12'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alester/Downloads/libusb-0.1.12'
make: *** [all] Error 2
How can I get libusb installed? I really need it. Please help me.
 
Old 06-26-2006, 04:19 PM   #2
Bugrem
Member
 
Registered: Nov 2004
Distribution: Suse 9.3, 10.0, 10.1, 10.3
Posts: 65

Rep: Reputation: 16
Are you sure that libusb isn't already installed (whereis libusb). I thought it was installed by default. I'd use Yast/Software Management to install from CD/DVD.

HTH
B.
 
Old 06-26-2006, 04:21 PM   #3
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
Why don't you install the rpm from the SUSE disc?

To check if it's already installed, type rpm -qi libusb

Last edited by pilotgi; 06-26-2006 at 04:22 PM.
 
Old 06-26-2006, 05:09 PM   #4
003
LQ Newbie
 
Registered: Jun 2006
Distribution: CentOS 6.5
Posts: 25

Original Poster
Rep: Reputation: 15
Yes it's already installed but I need a newer version for RazerTool to work:
http://razertool.sourceforge.net/
 
Old 06-26-2006, 05:28 PM   #5
Bugrem
Member
 
Registered: Nov 2004
Distribution: Suse 9.3, 10.0, 10.1, 10.3
Posts: 65

Rep: Reputation: 16
You can get libusb-0.1.12-7.i586.rpm from:
http://ftp.opensuse.org/pub/opensuse...rce/suse/i586/

B.
 
Old 06-26-2006, 06:24 PM   #6
003
LQ Newbie
 
Registered: Jun 2006
Distribution: CentOS 6.5
Posts: 25

Original Poster
Rep: Reputation: 15
Ok, thats really confusing. When I try installing that it says it's already installed. So why do I get this when I do a ./configure of RazerTool:

Code:
checking for libusb... configure: error: Package requirements (libusb >= 0.1.0) were not met:

No package 'libusb' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libusb_CFLAGS
and libusb_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Can anybody please help me get it working? I really need it.
 
Old 06-27-2006, 01:31 PM   #7
Bugrem
Member
 
Registered: Nov 2004
Distribution: Suse 9.3, 10.0, 10.1, 10.3
Posts: 65

Rep: Reputation: 16
Suse probably hasn't put libusb where razor expects to find it.

If you don't mind being slightly behind bleeding-edge, v2.72-2 is available from Suse via Yast. It also satisfies the various perl dependencies.

Failing that, rpmfind.net reckon they have v2.12-4 which is odd..... But you'll have to satisfy your own dependencies.

Maybe install the Suse version, then update razor to v"2.12-4" from rpmfind with kpackage?

Yast/Installation Source to v2.72-2:

http source
Server:
ftp.opensuse.org
Directory:
pub/opensuse/distribution/SL-10.0-OSS/inst-source/

HTH
B.
 
Old 07-15-2006, 02:45 PM   #8
elvanor
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
Hello. I managed to get razertool to compile.

I did not bother with the pkg-config stuff cause I don't know what this is.

But If you put the correct settings in the environment variables, as said, it will work.

What I did was: export libusb_CFLAGS="-llibusb" (this has in fact no effect, but it needs to be there for ./configure to work.

and

export libusb_LIBS="/usr/lib64/libusb.so"

In this last line you must provide the full path to YOUR libusb (where you installed libusb).

After that ./configure runs correctly, and make works. I have tested the program and it works.

I am on Gentoo AMD64.

Hope that helps,

Elvanor
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libusb compile error gabyx Programming 10 03-24-2010 04:38 AM
libusb compiler error, Help!!! Librason Programming 1 03-10-2006 09:46 PM
compile error libusb hazeposse Programming 1 02-14-2006 03:22 PM
help me --- interrupt_read() in libusb shiva_teknic Programming 0 09-27-2005 08:17 AM
libUSB install Dutch3 Linux - Newbie 1 04-30-2002 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration