sh hplip-3.14.10.run on Debian GNU/Linux 7.8

Asked by Sam Baechler

Dear All

I did a 'sh hplip-3.14.10.run' on my Debian GNU/Linux 7.8 (see below for the ouput of this command). Everything seems to work more or less fine. At the end I get 'warning: CUPSEXT could not be loaded. Please check HPLIP installation.'.

After running 'sh hplip-3.14.10.run' I stepped through the CUPS configuration procedure on localhost:631. Finally, when I wanted to print a test page I got '/usr/lib/cups/filter/hpps failed'. Does someone know how I can reverse this installation (Debian 7.8 ships with hplip 3.12.6-3.1 which allows me at least to print, :-))? Moreover, any hints on what I could try next are very much appreciated.

Regards,
Sam

Output of 'sh hplip-3.14.10.run':

sh hplip-3.14.10.run
# ...snip...
# what went on on command line then...

error: debian-7.8 version is not supported,
so all dependencies may not be installed.
However trying to install using debian-7.6 version packages.

Press 'y' to continue auto installation. Press 'n' to quit auto
instalation(y=yes, n=no*):

...I said 'yes'

INSTALLATION MODE
-----------------
Automatic mode will install the full HPLIP solution with the most common options.
Custom mode allows you to choose installation options to fit specific requirements.

Please choose the installation mode (a=automatic*, c=custom, q=quit) :

...I chose 'a'

INTRODUCTION
------------
This installer will install HPLIP version 3.14.10 on your computer.
Please close any running package management systems now (YaST, Adept, Synaptic, Up2date, etc).

DISTRO/OS CONFIRMATION
----------------------
Distro appears to be Debian 7.8.

Is "Debian 7.8" your correct distro/OS and version (y=yes*, n=no, q=quit) ?

...I said 'y'

ENTER ROOT/SUPERUSER PASSWORD
-----------------------------
Please enter the root/superuser password:

INSTALLATION NOTES
------------------
NOTE: Disable the CD Sources in your apt sources.list or the install will fail and hang.

Please read the installation notes. Press <enter> to continue or 'q' to quit:

...I was quite sure that CD Source is disabled and typed 'enter'.

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
warning: There are 5 missing REQUIRED dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: cups-devel (CUPS devel- Common Unix Printing System development files)
warning: Missing REQUIRED dependency: libusb (libusb - USB library)
warning: Missing REQUIRED dependency: libtool (libtool - Library building support services)
warning: Missing REQUIRED dependency: cups-image (CUPS image - CUPS image development files)
warning: Missing REQUIRED dependency: libjpeg (libjpeg - JPEG library)

INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
warning: There are 8 missing OPTIONAL dependencies.
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency for option 'network': libnetsnmp-devel (libnetsnmp-devel - SNMP networking library devel$
warning: Missing OPTIONAL dependency for option 'network': avahi-utils (avahi-utils)
warning: Missing REQUIRED dependency for option 'gui_qt4': pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: Missing OPTIONAL dependency for option 'gui_qt4': python-notify (Python libnotify - Python bindings for the libnotif$
warning: Missing REQUIRED dependency for option 'fax': python-dbus (Python DBus - Python bindings for DBus)
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab - PDF library for Python)
warning: Missing REQUIRED dependency for option 'fax': dbus (DBus - Message bus system)
warning: Missing REQUIRED dependency for option 'scan': sane-devel (SANE - Scanning library development files)

CHECKING FOR NETWORK CONNECTION
-------------------------------
Network connection present.

RUNNING PRE-PACKAGE COMMANDS
----------------------------
su -c "dpkg --configure -a" (Pre-depend step 1)
su -c "apt-get install -f" (Pre-depend step 2)
su -c "apt-get update" (Pre-depend step 3)
OK

DEPENDENCY AND CONFLICT RESOLUTION
----------------------------------
Running 'su -c "apt-get install --force-yes -y libcups2-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y cups-bsd"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y cups-client"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libusb-1.0.0-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libtool"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libcupsimage2"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libcupsimage2-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libjpeg8-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libsnmp-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y avahi-utils"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-qt4-dbus"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-notify"'
lease wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-dbus"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-gobject"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y python-reportlab"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libdbus-1-dev"'
Please wait, this may take several minutes...
Running 'su -c "apt-get install --force-yes -y libsane-dev"'
Please wait, this may take several minutes...
HPLIP-3.12.6 exists, this may conflict with the new one being installed.
Do you want to ('i'= Remove and Install*, 'o'= Overwrite, 'q'= Quit)?:

...I chose 'i'.

Starting uninstallation...
HPLIP uninstallation is completed

RUNNING POST-PACKAGE COMMANDS
-----------------------------
OK

RE-CHECKING DEPENDENCIES
------------------------
warning: An optional dependency 'pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)' is still missing.
warning: Option 'gui_qt4' has been turned off.
warning: An optional dependency 'python-notify (Python libnotify - Python bindings for the libnotify Desktop notifications)' $
warning: Some features may not function as expected.
warning: An optional dependency 'python-dbus (Python DBus - Python bindings for DBus)' is still missing.
warning: Option 'fax' has been turned off.
warning: An optional dependency 'reportlab (Reportlab - PDF library for Python)' is still missing.
warning: Some features may not function as expected.

PRE-BUILD COMMANDS
------------------
OK

BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/ppd/HP --prefix=/usr --disable-qt4 --disable-libusb01_build --enable-doc-buil$
Please wait, this may take several minutes...
Command completed successfully.

Running 'make clean'
Please wait, this may take several minutes...
Command completed successfully.

Running 'make'
Please wait, this may take several minutes...
Command completed successfully.

Running 'su -c "make install"'
Please wait, this may take several minutes...
Command completed successfully.

Build complete.

POST-BUILD COMMANDS
-------------------
warning: CUPSEXT could not be loaded. Please check HPLIP installation.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
goutam kodu
Solved:
Last query:
Last reply:
Revision history for this message
Best goutam kodu (goutam-hplip) said :
#1

hi,

Can you try uninstalling hplip using command su -c'hp-uninstall' in terminal and reinstall hplip from hplip-3.14.10 source. When you run command 'sh hplip-3.14.10.run' a source folder 'hplip-3.14.10' gets created in the current directory.

Now, lets try re-installing hplip 3.14.10 from hplip-3.14.10 source directory. Follow the below commands to install from source.

1) cd hplip-3.14.10
2) ./configure --prefix=/usr
3) make
4) su -c"make install"

After install, run command 'hp-setup' to configure the device.

Let us know if the issue resolves by following above instruction

Rgds,
goutam

Revision history for this message
Sam Baechler (lozsui) said :
#2

Hi,

Thanks for the input. When doing what you recommended it seems to me that 'hpmudext.la' can not be installed (see below). I will try that manually and see why it does not work later on.

Regards,
Sam

su -c"make install" > /tmp/make-install-out.txt
Passwort:
libtool: install: warning: remember to run `libtool --finish /usr/lib'
libtool: install: warning: remember to run `libtool --finish /usr/lib/python2.7/site-packages'
libtool: install: warning: `libhpmud.la' has not been installed in `/usr/lib'
libtool: install: warning: `libhpip.la' has not been installed in `/usr/lib'
libtool: install: error: cannot install `hpmudext.la' to a directory not ending in /usr/lib/python2.7/site-packages
make[1]: *** [install-hpmudextLTLIBRARIES] Fehler 1
make: *** [install-am] Fehler 2
cat /tmp/make-install-out.txt
...snip
test -z "/usr/lib/cups/filter" || /bin/mkdir -p "/usr/lib/cups/filter"
  /bin/bash ./libtool --mode=install /usr/bin/install -c hpcupsfax '/usr/lib/cups/filter'
libtool: install: /usr/bin/install -c .libs/hpcupsfax /usr/lib/cups/filter/hpcupsfax
test -z "/etc/hp" || /bin/mkdir -p "/etc/hp"
 /usr/bin/install -c -m 644 hplip.conf '/etc/hp'
test -z "/usr/share/applications" || /bin/mkdir -p "/usr/share/applications"
 /usr/bin/install -c -m 644 hplip.desktop '/usr/share/applications'
test -z "/etc/xdg/autostart" || /bin/mkdir -p "/etc/xdg/autostart"
 /usr/bin/install -c -m 644 hplip-systray.desktop '/etc/xdg/autostart'
test -z "/user/lib/python2.7/site-packages" || /bin/mkdir -p "/user/lib/python2.7/site-packages"
 /bin/bash ./libtool --mode=install /usr/bin/install -c hpmudext.la '/user/lib/python2.7/site-packages'
make[1]: Leaving directory `[...edited...]/hplip-3.14.10'

Revision history for this message
Sam Baechler (lozsui) said :
#3

Hi,

Today I found out that the error 'libtool: install: error: cannot install `hpmudext.la' to a directory not ending in /usr/lib/python2.7/site-packages' comes from the script 'libtool' (modified slightly by me):

# Don't allow the user to place us outside of our expected
# location b/c this prevents finding dependent libraries that
# are installed to the same prefix.
# At present, this check doesn't affect windows .dll's that
# are installed into $libdir/../bin (currently, that works fine)
# but it's something to keep an eye on.
test "$inst_prefix_dir" = "$destdir" && \
            func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir ($inst_prefix_dir (inst_prefix_dir) $destdir (destdir)"

Above slightly modified libtool version prints

libtool: install: error: cannot install `hpmudext.la' to a directory not ending in /usr/lib/python2.7/site-packages (/user/lib/python2.7/site-packages (inst_prefix_dir) /user/lib/python2.7/site-packages (destdir).

So, either inst_prefix_dir or destdir is constructed wrongly in my enviroment. Any inputs on what to try next are appreciated.

Regards,
Sam

Revision history for this message
Sam Baechler (lozsui) said :
#4

Doing

1) cd hplip-3.14.10
2) ./configure --prefix=/usr
3) make
4) su -c"make install"

finally worked. I think I messed up with './configure --prefix=/usr'. When doing './configure --prefix=/usr --with hpppddir=/usr/share/ppd/HP --enable-qt4 --enable-hpcups-install --enable-cups-drv-install --disable-cups-ppd-install
--disable-hpijs-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-foomatic-rip-hplip-install
--enable-fax-build --enable-dbus-build --enable-network-build --enable-scan-build --disable-policykit --disable-libusb01_build
--disable-udev_sysfs_rules --enable-doc-build' the error which I encountered doing 'make install' vanished.

So, 'LaserJet Pro 200 color MFP M276n' seems to work perfectly on Debian 7.8. One has to download the tarball configure make and install hplip by hand.

Revision history for this message
Sam Baechler (lozsui) said :
#5

Thanks goutam kodu, that solved my question.