Ubuntu

Can't install HPLIP under Ubuntu 10.10

Asked by etxkesa on 2010-10-15

I recently upgraded my PC to version 10.10 of Ubuntu. I know that HPLIP doesn't mention 10.10 yet, but thought it was worth a shot. I get an error that gcc isn't installed. I've checked in the Ubuntu Software Centre, and added all gcc components except the documentation, but the script still says It isn't there. Am I just being a bit presumptious?

Question information

Language:
French Edit question
Status:
Answered
For:
Ubuntu hplip Edit question
Assignee:
No assignee Edit question
Last query:
2010-11-05
Last reply:
2010-12-31

Please goto hplip-3.10.9 directory and open file installer/distroes.dat

Modify the ubuntu section in that file as below

# ****************************************
[ubuntu]
index=12
versions=5.04,5.1,6.06,6.10,7.04,7.10,8.04,8.04.1,8.04.2,8.10,9.04,9.10,10.04,10.10
display_name=Ubuntu
alt_names=kubuntu,edubuntu,xubuntu
display=1
notes=
package_mgrs=dpkg,apt-get,synaptic,update-manager,adept,aptitude,adept-updater
package_mgr_cmd=sudo apt-get install --assume-yes $packages_to_install
pre_depend_cmd=sudo dpkg --configure -a,sudo apt-get install --yes --force-yes -f,sudo apt-get update
post_depend_cmd=
hplip_remove_cmd=sudo apt-get remove --assume-yes hplip hpijs hplip-cups hplip-data libhpmud0 foomatic-db-hpijs
su_sudo=sudo
ppd_install=ppd
udev_mode_fix=1
ppd_dir=
fix_ppd_symlink=0
drv_dir=/usr/share/cups/drv/HP

and add ubuntu 10.10 section below unbutu 10.04 section and run ./install.py

# ************************************
[ubuntu:10.10]
code_name=Maverick
supported=1
scan_supported=1
fax_supported=1
pcard_supported=1
network_supported=1
parallel_supported=1
usb_supported=1
packaged_version=3.10.11
release_date=2010
notes=Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https://help.ubuntu.com/community/Repositories/Ubuntu for more information. Disable the CD-ROM/DVD source if you do not have the Ubuntu installation media inserted in the drive. During the install process you will be added to the lp and lpadmin group, please quit the installer before the setup stage, log out, log back in, and run hp-setup to complete the install.
ppd_install=drv
udev_mode_fix=1
ppd_dir=/usr/share/ppd/HP
fix_ppd_symlink=0
drv_dir=/usr/share/cups/drv/HP
ui_toolkit=qt4
native_cups=1
acl_rules=1
add_user_to_group=-a -Glp,lpadmin

[ubuntu:10.10:cups]
packages=libcups2

[ubuntu:10.10:cups-devel]
packages=libcups2-dev,cups-bsd,cups-client

[ubuntu:10.10:gcc]
packages=build-essential

[ubuntu:10.10:gs]
packages=ghostscript

[ubuntu:10.10:libcrypto]
packages=openssl

[ubuntu:10.10:libjpeg]
packages=libjpeg62-dev

[ubuntu:10.10:libnetsnmp-devel]
packages=libsnmp-dev

[ubuntu:10.10:libpthread]
packages=build-essential

[ubuntu:10.10:libtool]
packages=libtool

[ubuntu:10.10:libusb]
packages=libusb-dev

[ubuntu:10.10:make]
packages=build-essential

[ubuntu:10.10:pil]
packages=python-imaging

[ubuntu:10.10:ppdev]
packages=
commands=sudo modprobe ppdev,sudo cp -f /etc/modules /etc/modules.hplip,echo ppdev | sudo tee -a /etc/modules

[ubuntu:10.10:pyqt]
packages=python-qt4

[ubuntu:10.10:python-devel]
packages=python-dev

[ubuntu:10.10:pyqt4]
packages=python-qt4

[ubuntu:10.10:pyqt4-dbus]
packages=python-qt4-dbus

#[ubuntu:10.10:python23]
#packages=python

[ubuntu:10.10:python2x]
packages=python

[ubuntu:10.10:reportlab]
packages=python-reportlab

[ubuntu:10.10:sane]
packages=libsane

[ubuntu:10.10:sane-devel]
packages=libsane-dev

[ubuntu:10.10:scanimage]
packages=sane-utils

[ubuntu:10.10:xsane]
packages=xsane

[ubuntu:10.10:python-dbus]
packages=python-dbus,python-gobject

[ubuntu:10.10:dbus]
packages=libdbus-1-dev

[ubuntu:10.10:cups-image]
packages=libcupsimage2-dev

[ubuntu:10.10:cups-ddk]
packages=cups

[ubuntu:10.10:policykit]
packages=policykit-1,policykit-1-gnome

[ubuntu:10.10:python-notify]
packages=python-notify

Hope this may solve the issue.

Thanks,
Naga Samrat Chowdary, Narla

Joseph Bylund (joseph-bylund) said : #2

Installer gets further after making these changes (then running install.py from the hplip-3.10.9 directory). But fails after not finding python-devel (which is again not in the repository). Please advise.

Joseph Bylund (joseph-bylund) said : #3

Specifically "error: Configure failed with error: python-devel not found", python-dev did install correctly earlier in the process.

etxkesa (kens-acm) said : #4

I how have the HP logo appearing in the task bar. The error I get when I try to print is "There is a missing filter program". The trouble shooter says it "requires the foomatic-rip-hplip program" but that it isn't installed. Is that caused by the Python error?

I did make the install like orientations and everything goes OK, but when I try to open hplip the system stops and asks for a new login to ubuntu 10.10. What is wrong? Thank you.

By the way, Hplip under Ubuntu 9.10 worked fine with HP1312nfi and Xsane.

Xsane is now working fine with HP1312nfi. The problem was a bug on nvidia driver. The instalation procedure works fine.
Thank you.

roberto r b leite suggests this article as an answer to your question:
FAQ #1356: “HPLIP Auto Installation patch for Ubuntu Maverick”.

greggc2006 (gcoleshill) said : #9

I tried this patch but am still getting th same issue I had before when running './configure' :-

gregg@burt:~/hplip-3.10.9$ ./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 g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
checking for pthread_create in -lpthread... yes
checking for pow in -lm... yes
checking for jpeg_set_defaults in -ljpeg... yes
checking for dlopen in -ldl... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking whether byte ordering is bigendian... no
checking for uint32_t... yes
checking "for platform-dependencies"... "using Default platform.h"
checking for documentation build... yes
checking for hpijs only build... no
checking for lite build... no
checking for hpcups only build... no
checking for hpijs install... no
checking for hpcups install... yes
checking for new hpcups install... no
checking for network build... yes
checking for parallel port build... no
checking for scanner build... yes
checking for gui build... yes
checking for fax build... yes
checking for dbus build... yes
checking for cups 1.1.x build... no
checking for udev acl rules... no
checking for shadow build... no
checking for foomatic ppd install... no
checking for foomatic drv install... no
checking for cups drv install... yes
checking for cups ppd install... no
checking for foomatic-rip-hplip install... no
checking for qt4... yes
checking for qt3... no
checking for policykit... no
checking for host machine platform... x86_32
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... no
checking for snmp_timeout in -lsnmp... no
configure: error: cannot find net/ucd-snmp support (or --disable-network-build)

What am I doing wrong here???

greggc2006 (gcoleshill) said : #10

Just found:-

http://ubuntuforums.org/archive/index.php/t-1637206.html

That helped out with making the install work. Also I needed to follow the advice here by G A Heath (post #19 on page two) regarding the ppd file.

I now have a fully functioning wireless printer/scanner/copier and it only took 3 1/2 hours!!!

greggc2006 (gcoleshill) said : #11

EDIT

Sorry forgot to give the link to G A Heaths words of wisdom:-

http://ubuntuforums.org/showthread.php?t=1649149&page=2

Can you help with this problem?

Provide an answer of your own, or ask etxkesa for more information if necessary.

To post a message you must log in.