年轻的老司机 发表于 2019-2-6 16:40:00

求助,在freebsd(freenas)上安装psutil报错

pip install psutil

***********************
cc -fno-strict-aliasing -O2 -pipe -g -fstack-protector -fno-strict-aliasing -DNDEBUG -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_BSD=1 -DPSUTIL_VERSION=550 -DPSUTIL_FREEBSD=1 -I/usr/local/include/python2.7 -c psutil/_psutil_common.c -o build/temp.freebsd-11.2-STABLE-amd64-2.7/psutil/_psutil_common.o
    unable to execute 'cc': No such file or directory
    error: command 'cc' failed with exit status 1

**********************

git下来编译安装也是报同样的错误

百度 google的方法都试过了,还是不行
009.gif


http://www.bubuko.com/infodetail-1861451.htmlhttps://stackoverflow.com/questions/22697440/cc-failed-with-exit-status-1-error-when-install-python-library


*********************

root@freenas:~ # export CFLAGS=-Qunused-arguments
export: Command not found.


*********************

dupit8 发表于 2019-2-6 16:44:27

GCC 没有安装

年轻的老司机 发表于 2019-2-6 16:58:16


dupit8 发表于 2019-2-6 16:44

GCC 没有安装
已经安装了

root@freenas:~ # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc8/gcc/x86_64-portbld-freebsd11.2/8.2.0/lto-wrapper
Target: x86_64-portbld-freebsd11.2
Configured with: /wrkdirs/usr/ports/lang/gcc8/work/gcc-8.2.0/configure --with-build-config=bootstrap-debug --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc8 --libexecdir=/usr/local/libexec/gcc8 --program-suffix=8 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc8/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --enable-languages=c,c++,objc,fortran --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/share/info/gcc8 --build=x86_64-portbld-freebsd11.2
Thread model: posix
gcc version 8.2.0 (FreeBSD Ports Collection)
页: [1]
查看完整版本: 求助,在freebsd(freenas)上安装psutil报错