找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 20|回复: 2

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

[复制链接]

29

主题

93

回帖

281

积分

中级会员

积分
281
发表于 2019-2-6 16:40:00 | 显示全部楼层 |阅读模式
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的方法都试过了,还是不行



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.


*********************
回复

使用道具 举报

33

主题

926

回帖

2031

积分

金牌会员

积分
2031
发表于 2019-2-6 16:44:27 | 显示全部楼层
GCC 没有安装
回复

使用道具 举报

29

主题

93

回帖

281

积分

中级会员

积分
281
 楼主| 发表于 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)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2025-3-10 18:28 , Processed in 0.020886 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表