You are not logged in.
Pages: 1
Since the official arch hplip package seems kind of broken right now (also flagged out of date / http://www.archlinux.org/packages/extra/i686/hplip/ ), I'm asking for a little help to build HPLIP myself via ABS. I got the PKGBUILD, no problem and ./configure runs fine, but I get an error:
prnt/cupsext/cupsext.c:76:20: schwerwiegender Fehler: Python.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
So, it doesn't find Python.h - directory or file. How can I solve that, if possible? Pretty please?
Since the Python2 / Python3 Update, there are some (minor) glitches - I think, that one is another one. Maybe. There's also this line in the PKGBUILD, that should fix this bug - but it doesn't.
find . -type f -exec sed -i 's~^#.*env python~#!/usr/bin/env python2~' {} +
The problem is, that on my Arch Linux Install, my printer (HP Officejet Pro 8500 A) doesn't print the colors right and it uses the hpcups driver version 3.10.9 (hp-officejet_pro_8500_a910.ppd). On another Linux Distribution, the hpcups driver for the printer is listed as 3.10.9.11 - so it seems, there might have bin a minor update, which I wanted to try, to get my printer working the right way. I also tried to move the working PPD-File on my Arch Machine - but the problem remains. So, I'm running out of options and could use a little help here.
Thanks in advance,
Ronnie
Last edited by ewigkeit (2010-11-10 13:13:33)
Offline
Since the official arch hplip package seems kind of broken right now (also flagged out of date / http://www.archlinux.org/packages/extra/i686/hplip/ ), I'm asking for a little help to build HPLIP myself via ABS. I got the PKGBUILD, no problem and ./configure runs fine, but I get an error:
prnt/cupsext/cupsext.c:76:20: schwerwiegender Fehler: Python.h: Datei oder Verzeichnis nicht gefunden Kompilierung beendet.
Builds here. I modified the PKGBUILD, in order to get rid of some makedeps:
--- PKGBUILD 2010-11-10 15:02:20.901523683 -0500
+++ /var/abs/extra/hplip/PKGBUILD 2010-11-07 00:06:01.000000000 -0400
@@ -9,7 +9,7 @@
arch=('i686' 'x86_64')
url="http://hplipopensource.com"
license=('GPL')
-makedepends=('pygobject' 'pkgconfig' 'rpcbind' 'cups')
+makedepends=('pyqt' 'pygobject' 'pkgconfig' 'sane' 'rpcbind' 'dbus-python' 'cups')
depends=('python2' 'ghostscript>=8.64-6' 'foomatic-db' 'foomatic-db-engine'
'libcups>=1.3.10-3' 'net-snmp>=5.5')
replaces=('hpijs')
@@ -27,7 +27,7 @@
cd $srcdir/$pkgname-$pkgver
find . -type f -exec sed -i 's~^#.*env python~#!/usr/bin/env python2~' {} +
./configure --prefix=/usr \
- --disable-qt4 \
+ --enable-qt4 \
--enable-foomatic-rip-hplip-install \
--enable-foomatic-ppd-install \
--enable-hpcups-install \
@@ -35,11 +35,8 @@
--enable-hpijs-install \
--enable-foomatic-drv-install \
--enable-pp-build \
- --enable-udev-acl-rules \
- --disable-scan-build \
- --disable-gui-build \
- --disable-dbus-build \
- --disable-fax-build
+ --enable-udev-acl-rules
+
make
}
package() {
The piece of config.log
configure:21066: checking for path to Python.h
configure:21069: result: "using /usr/include/python2.7"
configure:21075: checking python2.7/Python.h usability
You can check whether my changes work for you, but I expect otherwise.
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Hi Leonid.l,
you're right - it doesn't work. The same error still occurs while compiling, even though ./configure runs without any problems. But thanks for the try!
Offline
While roaming around in the forums, I got the idea, that I could change the /usr/bin/python-link. Why didn't I think of that before? And indeed - recompiling hplip worked without any glitch. But unfortunatly - it doesn't solve my problem with my printer.
Edit:
After recompiling, I changed the Sym-Link back of course.
Last edited by ewigkeit (2010-11-11 14:46:10)
Offline
Pages: 1