在Solaris上编译C Python扩展模块

2024-09-28 21:53:46 发布

您现在位置:Python中文网/ 问答频道 /正文

它都失败了,cc

vagrant@sunos:/vagrant/psutil$ python setup.py build
running build
running build_py
running build_ext
building 'psutil._psutil_sunos' extension
/ws/on11update-tools/SUNWspro/sunstudio12.1/bin/cc -m32 -xO4 -xchip=pentium -xregs=no%frameptr -mt -KPIC -DPIC -xO5 -xtarget=opteron -xarch=sse2 -xcache=generic -m32 -xO4 -xchip=pentium -xregs=no%frameptr -mt -KPIC -DPIC -xO5 -xtarget=opteron -xarch=sse2 -xcache=generic -DNDEBUG -KPIC -DPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=501 -DPSUTIL_SUNOS=1 -I/usr/include/python2.7 -c psutil/_psutil_sunos.c -o build/temp.solaris-2.11-i86pc.32bit-2.7/psutil/_psutil_sunos.o
unable to execute /ws/on11update-tools/SUNWspro/sunstudio12.1/bin/cc: No such file or directory
error: command '/ws/on11update-tools/SUNWspro/sunstudio12.1/bin/cc' failed with exit status 1
vagrant@sunos:/vagrant/psutil$ 

…和gcc

^{pr2}$

系统是:

vagrant@sunos:/vagrant/psutil$ uname -a
SunOS sunos 5.11 11.2 i86pc i386 i86pc Solaris

有什么建议吗?在


Tags: pybuildbinwstoolsrunningpsutilcc