无法执行“ gcc”:没有这样的文件或目录

时间:2019-04-10 15:40:56

标签: gcc centos

除了yum之外,还有其他方法可以在centos上安装gcc。 就我而言,不支持yum,因为它是专有的。

可能使用wget,curl,rpm安装gcc吗?

我的毒物测试失败并出现错误 “无法执行'gcc':没有此类文件或目录     错误:命令'gcc'失败,退出状态为1“

错误:

  Running setup.py install for netifaces: started
    Running setup.py install for netifaces: finished with status 'error'
    Complete output from command /share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/.tox/genconfig/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/pip-install-qukyvv5u/netifaces/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/pip-record-0gq4z4z1/install-record.txt --single-version-externally-managed --compile --install-headers /share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/.tox/genconfig/include/site/python3.5/netifaces:
    running install
    running build
    running build_ext
    checking for getifaddrs...not found.
    checking for getnameinfo...not found.
    checking for socket IOCTLs...not found.
    checking for optional header files...none found.
    checking whether struct sockaddr has a length field...no.
    checking which sockaddr_xxx structs are defined...none!
    checking for routing socket support...no.
    checking for sysctl(CTL_NET...) support...no.
    checking for netlink support...no.
    building 'netifaces' extension
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNETIFACES_VERSION=0.10.6 -I/share/CACHEDEV1_DATA/.qpkg/Python3/src/include/python3.5m -c netifaces.c -o build/temp.linux-x86_64-3.5/netifaces.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1

0 个答案:

没有答案