Comment 3 for bug 1423826

Revision history for this message
John Frankish (john-frankish) wrote :

I have not loaded the latest version of hplip yet as I have to compile it, which takes ages as the hplip configure script does not respect the "--prefix=/usr/local" switch and it does not check to see if cups, python and sane are in /usr/local.

Although most of the hplip python scripts use #!/usr/bin/env python, the following do not:

doctor.py, logcapture.py, makeuri.py, setup.py, uninstall.py, upgrade.py
device.py magic.py

..and even after editing these to "#!/usr/bin/env python", I get the following:

$ hp-setup
warning: CUPSEXT could not be loaded. Please check HPLIP installation.

..but:

$ ldd /usr/local/lib/python2.7/site-packages/cupsext.so
        linux-vdso.so.1 (0x00007fff7afa5000)
        libcups.so.2 => /usr/local/lib/libcups.so.2 (0x00007f32f52b6000)
        libcrypto.so.1.0.0 => /usr/local/lib/libcrypto.so.1.0.0 (0x00007f32f4f04000)
        libc.so.6 => /lib/libc.so.6 (0x00007f32f4b95000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f32f4984000)
        libssl.so.1.0.0 => /usr/local/lib/libssl.so.1.0.0 (0x00007f32f4727000)
        libavahi-common.so.3 => /usr/local/lib/libavahi-common.so.3 (0x00007f32f451b000)
        libavahi-client.so.3 => /usr/local/lib/libavahi-client.so.3 (0x00007f32f430c000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f32f40f1000)
        libm.so.6 => /lib/libm.so.6 (0x00007f32f3dfc000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007f32f3bc6000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f32f39b4000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f32f37af000)
        /lib/ld-linux-x86-64.so.2 (0x00007f32f571e000)
        libssp.so.0 => /usr/local/lib/libssp.so.0 (0x00007f32f35ad000)
        libdbus-1.so.3 => /usr/local/lib/libdbus-1.so.3 (0x00007f32f3371000)
        librt.so.1 => /lib/librt.so.1 (0x00007f32f3168000)

Could you let me know where (check.py?) I need to edit things to point to /usr/local/lib/python2.7/site-packages/cupsext.so rather than /usr/lib/python2.7/site-packages/cupsext.so?