LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 11:26 AM   #1
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

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, 11:30 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

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

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

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

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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, 08:52 PM   #5
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

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, 01:58 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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, 09:43 PM   #7
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 83

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, 04: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
 
Old 12-14-2016, 07:14 AM   #9
martinthurn
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
For CentOS 6, the libraries that need to be installed are called libusb1 and libusb1-devel

sudo yum install libusb1 libusb1-devel
 
Old 10-26-2022, 07:31 PM   #10
sampojoe
LQ Newbie
 
Registered: May 2020
Posts: 2

Rep: Reputation: Disabled
Installing hplip on CentOS 7.9

Running hplip.3.22.6.run, had to upgrade gcc, was at 4.8.5, went to 8.1.0, to run hplip, got various errors about libusb-devel, libudev-devel, messages were truncated without the -devel estension and yum could not find them, of course. Reading this thread I was able to establish the full names and kick yum into gear. After I got various pieces to execute without error, ran full script. It then instructed me to run hp-setup manually, giving me the printer IP. During this process it seemed to get installed in my bin directory. My HP MFP 139 used a wifi connection, so it had no direct connectivity to my linux box. It needed a print PPD file, which it could not find and I used a generic selection at that point. Luckily I made a mental note of the printer IP, as I thought that was nice to know as things were scrolling by. When I ran hp-setup at that point, a gui pops up and it of course wanted the ip. I scratched my head and said, " now what was that ip, still fresh in my mind, thank goodness. Success wifi-only printer installed on my box, which is connected to the wifi router via RJ-45!

Last edited by sampojoe; 10-26-2022 at 08:07 PM. Reason: grammar
 
  


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

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:32 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