LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   configure: error: cannot find libusb support install hplip-3.9.8 (https://www.linuxquestions.org/questions/linux-enterprise-47/configure-error-cannot-find-libusb-support-install-hplip-3-9-8-a-747942/)

redhatwannabe 08-16-2009 11:26 AM

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

colucix 08-16-2009 11:30 AM

Have you the package libusb-devel installed?

redhatwannabe 08-16-2009 12:11 PM

libusb-devel is installed

thanks

colucix 08-16-2009 03:49 PM

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.

redhatwannabe 08-16-2009 08:52 PM

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


colucix 08-17-2009 01:58 AM

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.

redhatwannabe 08-19-2009 09:43 PM

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!

SynergyPower 09-11-2010 04:39 PM

HPLIP used old libusb-compat
you must install libusb-compat & libusb-compat-devel

martinthurn 12-14-2016 07:14 AM

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

sudo yum install libusb1 libusb1-devel

sampojoe 10-26-2022 07:31 PM

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!


All times are GMT -5. The time now is 01:57 AM.