Error installing pycups on virtualenv

I am trying to install pycup in the (-no-site-package) virtualenv isolate using pip, and I get this trace. I cannot understand what I am doing wrong. Any idea?

Thank,

$ pip install pycups Download / unpack pycups Run setup.py egg_info for pycups packages

Installing the compiled packages: pycups Running setup.py for pycups building the goblets gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DVERSION = "1.9.66" -I /usr/include/python2.7 -c cupsmodule.c -o build /temp.linux-x86_64-2.7/cupsmodule.o cupsmodule.c: 23:23: fatal error: cups / cups.h: El fitxer o directori no existeix compilation is complete. Error: gcc command failed with exit state 1 Complete output from command / home / jmartin / workspace / trytond / bin / python -c "import setuptools; file = '/ home / jmartin / workspace / trytond / build / pycups / setup.py '; exec (compile (open ( file ). read (). replace (' \ r \ n ',' \ n '), file, 'exec')) install --record / tmp / pip-NbMOAM-record / install-record.txt --single-version-external-manage --install-headers / home / jmartin / workspace / trytond / include / site /python2.7: running install

running build

running build_ext

building 'cup expansion

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DVERSION = "1.9.66" -I / usr / include / python2.7 -c cupsmodule. c -o build / temp.linux-x86_64-2.7 / cupsmodule.o

cupsmodule.c: 23:23: fatal error: cups / cups.h: El fitxer o directori no existeix

compilation completed.

Error: gcc command failed with exit status 1


Command/home/jmartin/workspace/trytond/bin/python -c "import setuptools; = '/home/jmartin/workspace/trytond/build/pycups/setup.py'; exec (compile (open (file). read(). replace ('\ r\n', '\n'), , 'exec')) --record/tmp/pip-NbMOAM-record/install-record.txt --single-version-external-managed -install-headers/home/jmartin/workspace/trytond/include/site/python2.7 1 /home/jmartin/workspace/trytond/build/pycups /home/jmartin/.pip/pip.log

$python --version Python 2.7.3

$gcc -v . COLLECT_GCC = COLLECT_LTO_WRAPPER =/USR/Library/GCC/x86_64-Linux-/4,6/LTO- : x86_64-linux-gnu :../src/configure -v --with-pkgversion = 'Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl = file:///usr/share/doc/gcc-4.6/README. --enable-languages ​​= c, ++, fortran, objc, obj-++ --prefix =/usr --program-suffix = -4.6 --enable-shared --enable-linker-build-id --with- system-zlib --libexecdir =/usr/lib --without-included-gettext --enable-threads = posix --with-gxx-include-dir =/usr/include/++/4.6 --libdir =/usr/lib --enable-nls --with-sysroot =/--enable-clocale = gnu --enable-libstdcxx-debug --enable-libstdcxx-time = yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32 = i686 --with-tune = generic --enable-check = release --build = x86_64-linux-gnu -host = x86_64- linux-gnu --target = x86_64-linux-gnu : posix gcc 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

+4
1

ubuntu 14.04. , libcups2-dev:

sudo apt-get install libcups2-dev

+9

Source: https://habr.com/ru/post/1540542/


All Articles