installing hplip; configure: error: cannot find libm math support

Asked by sspown

hi all.
when i try to install hplip-3.17.10 i get an error:
cannot find libm math support

did not find any solution for this problem

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful

# uname -a
Linux <hostname> 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
sspown
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Maybe installing the package libc6-dev helps.

Revision history for this message
sspown (sspown) said :
#2

thank's, but this package installed:

# aptitude search libc6-dev | grep ^i
i A libc6-dev - GNU C Library: Development Libraries and Header Files
i libc6-dev-i386 - GNU C Library: 32-bit development libraries for AMD64
i libc6-dev-x32 - GNU C Library: X32 ABI Development Libraries for AMD64

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What is the output of the commands

sudo updatedb
locate libm.

Revision history for this message
sspown (sspown) said :
#4

# locate libm.
/lib/i386-linux-gnu/libm.so.6
/lib/x86_64-linux-gnu/libm.so.6
/lib32/libm.so.6
/lib64/libm.so.6
/libx32/libm.so.6
/usr/lib/libm.a
/usr/lib/libm.so
/usr/lib/i386-linux-gnu/libm.a
/usr/lib/i386-linux-gnu/libm.so
/usr/lib/x86_64-linux-gnu/libm.a
/usr/lib/x86_64-linux-gnu/libm.so
/usr/lib32/libm.a
/usr/lib32/libm.so
/usr/libx32/libm.a
/usr/libx32/libm.so

# sudo updatedb
doesn't display anything

Revision history for this message
sspown (sspown) said :
#5

still have a problem... will anybody help me? thank...

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Please provide the full output of your installation attempt.

Remark: A comment in https://answers.launchpad.net/hplip/+question/660039 says:
Ubuntu 17.10 is not yet supported by HPLIP. Kindly wait for the next release for this support

Do you really need the 3.17.10 version? You should be able to install version 3.17.7+repack0-3 from the Ubuntu repositories without dependency problems.

Revision history for this message
sspown (sspown) said :
#7

i try to install from repo, but also have a problem in process:
...
Setting up libsane-hpaio:amd64 (3.17.7+repack0-3) ...
Setting up printer-driver-hpcups (3.17.7+repack0-3) ...
Setting up hplip (3.17.7+repack0-3) ...
Creating/updating hplip user account...
Can't open /etc/hp/hplip.conf: No such file or directory.
Can't open /etc/hp/hplip.conf: No such file or directory.
Setting up printer-driver-postscript-hp (3.17.7+repack0-3) ...
Setting up hplip-gui (3.17.7+repack0-3) ...
Processing triggers for libc-bin (2.26-0ubuntu2) ...

after try to launch hp-toolbox (from package hplip-gui):

# hp-toolbox
error: Unable to locate models.dat file

HP Linux Imaging and Printing System (ver. 0.0.0)
HP Device Manager ver. 15.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Traceback (most recent call last):
  File "/usr/bin/hp-toolbox", line 269, in <module>
    QApplication, ui_package = utils.import_dialog(ui_toolkit)
TypeError: 'NoneType' object is not iterable

what's going on??? :)
thanks for answers, Manfred Hampl (m-hampl)

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

/usr/share/hplip/data/models/models.dat is provided by libsane-hpaio
If the file mentioned in "error: Unable to locate models.dat file" is that one, then installing the package libsane-hpaio might help.

Revision history for this message
sspown (sspown) said :
#9

installed :-/

# apt search libsane-hpaio
Sorting... Done
Full Text Search... Done
libsane-hpaio/artful,now 3.17.7+repack0-3 amd64 [installed,automatic]
  HP SANE backend for multi-function peripherals

and models.dat is present:

# ls /usr/share/hplip/data/models/
models.dat

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

"Can't open /etc/hp/hplip.conf: No such file or directory."

Does /etc/hp/hplip.conf exist?
This file should also be installed by libsane-hpaio.

Maybe something went wrong during the installation, but I cannot verify that because you have only provided the last few lines of output from the installation process.

Revision history for this message
sspown (sspown) said :
#11

 /etc/hp/hplip.conf does not exist
i'm purge all installed hplip soft and reinstall it
it's install process:

# sudo apt install hplip hplip-gui -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libsane-hpaio printer-driver-postscript-hp
Suggested packages:
  hplip-doc
The following NEW packages will be installed:
  hplip hplip-gui libsane-hpaio printer-driver-postscript-hp
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1 986 kB of archives.
After this operation, 4 334 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu artful/main amd64 libsane-hpaio amd64 3.17.7+repack0-3 [118 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu artful/main amd64 hplip amd64 3.17.7+repack0-3 [1 015 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu artful/universe amd64 hplip-gui all 3.17.7+repack0-3 [17,5 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu artful/main amd64 printer-driver-postscript-hp all 3.17.7+repack0-3 [835 kB]
Fetched 1 986 kB in 2s (944 kB/s)
Selecting previously unselected package libsane-hpaio:amd64.
(Reading database ... 236663 files and directories currently installed.)
Preparing to unpack .../libsane-hpaio_3.17.7+repack0-3_amd64.deb ...
Unpacking libsane-hpaio:amd64 (3.17.7+repack0-3) ...
Selecting previously unselected package hplip.
Preparing to unpack .../hplip_3.17.7+repack0-3_amd64.deb ...
Unpacking hplip (3.17.7+repack0-3) ...
Selecting previously unselected package hplip-gui.
Preparing to unpack .../hplip-gui_3.17.7+repack0-3_all.deb ...
Unpacking hplip-gui (3.17.7+repack0-3) ...
Selecting previously unselected package printer-driver-postscript-hp.
Preparing to unpack .../printer-driver-postscript-hp_3.17.7+repack0-3_all.deb ...
Unpacking printer-driver-postscript-hp (3.17.7+repack0-3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for cups (2.2.4-7ubuntu2) ...
Processing triggers for bamfdaemon (0.5.3+17.10.20170810-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for dbus (1.10.22-1ubuntu1) ...
Setting up libsane-hpaio:amd64 (3.17.7+repack0-3) ...
Setting up hplip (3.17.7+repack0-3) ...
Creating/updating hplip user account...
dpkg-statoverride: warning: --update given but /var/run/hplip does not exist
Setting up printer-driver-postscript-hp (3.17.7+repack0-3) ...
Setting up hplip-gui (3.17.7+repack0-3) ...
Processing triggers for dbus (1.10.22-1ubuntu1) ...

Revision history for this message
sspown (sspown) said :
#12

!!! all installed completely :)
thank you so much
i think problem resolved :)