configure: error: cannot find libusb support install hplip-3.9.8
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[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
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?
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:
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
[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:
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.