在virtualenv上安装pycups时出错

我试图用pip在一个隔离(–no-site-package)virtualenv中安装pycups,并且我得到了这个回溯。 我无法弄清楚我做错了什么。 任何想法?

谢谢,

$ pip安装pycups下载/解包pycups为package pycups运行setup.py egg_info

安装收集的软件包:pycups运行setup.py安装pycups构build'cups'扩展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:致命错误:cups / cups.h:El fitxer o directori没有existeix编译终止。 错误:命令'gcc'失败,退出状态1从命令/ 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-managed –install-headers /home/jmartin/workspace/trytond/include/site/python2.7:running install

运行构build

运行build_ext

build立“杯子”延伸

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 -obuild立/ temp.linux-x86_64-2.7 / cupsmodule.o

cupsmodule.c:23:23:致命错误:cups / cups.h:El fitxer o directori no existeix

编译终止。

错误:命令'gcc'失败,退出状态为1


命令/ 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-外部托pipe–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 = gcc COLLECT_LTO_WRAPPER = / usr / lib / gcc / x86_64-linux-gnu / 4.6 / lto-wrapper目标:x86_64-linux-gnuconfiguration:../src/configure -v –with-pkgversion ='Ubuntu / Linaro 4.6.3-1ubuntu5'–with-bugurl = file:///usr/share/doc/gcc-4.6/README.Bugs –enable-languages = c,c ++,fortran,objc,obj-c ++ – 前缀= / usr – 程序后缀= -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 / c ++ / 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-checking = 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)

我在Ubuntu 14.04上转载了这个bug。 它应该工作,如果你安装libcups2-dev:

sudo apt-get install libcups2-dev