LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 08-16-2009, 12:26 PM   #1
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 41

Rep: Reputation: 15
configure: error: cannot find libusb support install hplip-3.9.8


OS Centos 5.3
architecture i386 32bit version
Photosmart C4599

I've follow http://hplipopensource.com/hplip-web...all/index.html

I encounter the problem in

Quote:
[doordie@localhost hplip-3.9.8]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
....
........
checking for cupsDoFileRequest in -lcups... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking for usb_init in -lusb... no
configure: error: cannot find libusb support
so I follow https://answers.launchpad.net/hplip/+question/45531

Quote:
Please run "./check.py -t" (from the hplip-2.8.7 directory) instead of
"hp-check". This will run the 2.8.7 version of the tool, rather than the old
1.6.7 version that is installed. The new version has better diagnostics to
see what the problem might be.
here's my output

Code:
[doordie@localhost hplip-3.9.8]$ ./check.py -t
error: HPMUDEXT could not be loaded. Please check HPLIP installation.
any solutions would be greatly appreciated. What should be the correct way of installing HPLIP?

thanks
 
Old 08-16-2009, 12:30 PM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Have you the package libusb-devel installed?
 
Old 08-16-2009, 01:11 PM   #3
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 41

Original Poster
Rep: Reputation: 15
libusb-devel is installed

thanks
 
Old 08-16-2009, 04:49 PM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
What if you run the automatic installer, following exactly the instructions in the link you've posted above? Does it give more information about what happens?

Another check you can do is to verify if the pkg-config tool can find the correct library and set-up the linker flags correctly:
Code:
pkg-config --libs libusb
it should return -lusb.
 
Old 08-16-2009, 09:52 PM   #5
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 41

Original Poster
Rep: Reputation: 15
I've already followed the steps, but I'm stucked at step 10.

Here' the output that I executed:

Code:
[doordie@localhost hplip-3.9.8]$ su -
Password: 
[root@localhost ~]# pkg-config --libs libusb
Package libusb was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb' found
 
Old 08-17-2009, 02:58 AM   #6
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Code:
[root@localhost ~]# pkg-config --libs libusb
Package libusb was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb' found
Most likely even hplip uses the same method to retrieve informations about the installed libraries and headers, so that it fails for some reason. What is the output of the following? Here's mine:
Code:
$ rpm -ql libusb-devel
/usr/bin/libusb-config
/usr/include/usb.h
/usr/include/usbpp.h
/usr/lib/libusb.a
/usr/lib/libusb.so
/usr/lib/libusbpp.a
/usr/lib/libusbpp.so
/usr/lib/pkgconfig/libusb.pc
/usr/share/doc/libusb-devel-0.1.12
<omitted>
the presence of the file in bold should bring to the correct result of the pkg-config command. In any case, whatever be the reason, you're stuck at point 9 now, since this is still a problem of missing dependencies.
 
Old 08-19-2009, 10:43 PM   #7
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 41

Original Poster
Rep: Reputation: 15
when I was running configure, i encounter the following problem
Code:
[doordie@localhost hplip-3.9.8]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
.....
checking for a Python interpreter with version >= 2.2... python
checking for python... /usr/bin/python
checking for python version... 2.4
checking for python platform... linux2
checking for python script directory... /usr/lib/python2.4/site-packages
checking for python extension module directory... /usr/lib/python2.4/site-packages
checking for path to Python.h... "using /usr/include/python2.4"
checking python2.4/Python.h usability... no
checking python2.4/Python.h presence... no
checking for python2.4/Python.h... no
configure: error: cannot find python-devel support
with reference to https://answers.launchpad.net/hplip/+question/70389

Quote:
In the HPLIP source directory run ./check.py and post the output.
so here the output for run ./check.py

Code:
[doordie@localhost hplip-3.9.8]$ ./check.py 
error: HPMUDEXT could not be loaded. Please check HPLIP installation.
here's the output for listing python files
Code:
[root@localhost ~]# rpm -ql python | more
/usr/bin/pydoc
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.4
/usr/lib/libpython2.4.so
/usr/lib/libpython2.4.so.1.0
/usr/lib/python2.4
/usr/lib/python2.4/BaseHTTPServer.py
/usr/lib/python2.4/BaseHTTPServer.pyc
/usr/lib/python2.4/BaseHTTPServer.pyo
/usr/lib/python2.4/Bastion.py
/usr/lib/python2.4/Bastion.pyc
/usr/lib/python2.4/Bastion.pyo
/usr/lib/python2.4/CGIHTTPServer.py
/usr/lib/python2.4/CGIHTTPServer.pyc
/usr/lib/python2.4/CGIHTTPServer.pyo
/usr/lib/python2.4/ConfigParser.py
/usr/lib/python2.4/ConfigParser.pyc
/usr/lib/python2.4/ConfigParser.pyo
/usr/lib/python2.4/Cookie.py
/usr/lib/python2.4/Cookie.pyc
/usr/lib/python2.4/Cookie.pyo
/usr/lib/python2.4/DocXMLRPCServer.py
is there anything I need to do?

thanks a lot!
 
Old 09-11-2010, 05:39 PM   #8
SynergyPower
LQ Newbie
 
Registered: Sep 2010
Location: Russia
Distribution: ALT Linux
Posts: 1

Rep: Reputation: 0
HPLIP used old libusb-compat
you must install libusb-compat & libusb-compat-devel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
configure: error: cannot find install-sh or install.sh in . ./.. ./../.. jialin Debian 9 12-01-2009 09:36 PM
configure: error: Couldn't find DBus >= 1.0.0, install libdbus-dev ? saroramay Linux - Newbie 1 09-20-2008 06:12 AM
hplip configure error -- /lib/cpp fails sanity check pncowley Linux - Software 8 04-28-2006 01:08 PM
configure: error: cannot find libusb support ??? pwhitey86 Linux - Newbie 1 03-29-2006 07:38 AM
configure: error: cannot find cups-devel support hscast Linux - Software 1 04-29-2005 02:36 AM


All times are GMT -5. The time now is 12:32 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration