当我尝试安装doo-server时,我得到了以下错误:
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
有人能帮我解决这个问题吗?
当我尝试安装doo-server时,我得到了以下错误:
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
有人能帮我解决这个问题吗?
当前回答
这个问题可能源于任何一个缺失的包,尤其是在更新的版本中。
creating build/temp.linux-x86_64-cpython-39/src
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/vipin/.cache/pypoetry/virtualenvs/bbox-drf-QjIedbEI-py3.9/include -I/usr/include/python3.9 -c src/base64.c -o build/temp.linux-x86_64-cpython-39/src/base64.o
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/vipin/.cache/pypoetry/virtualenvs/bbox-drf-QjIedbEI-py3.9/include -I/usr/include/python3.9 -c src/kerberos.c -o build/temp.linux-x86_64-cpython-39/src/kerberos.o
In file included from src/kerberos.c:20:
src/kerberosbasic.h:17:10: fatal error: gssapi/gssapi.h: No such file or directory
17 | #include <gssapi/gssapi.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
大多数人都用最后一行搜索。
错误:command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
但如果你仔细看,上面的几行,你可以看到哪个包丢失了。它清楚地指出一个目录或文件丢失了
gssapi/gssapi.h:没有这样的文件或目录
搜索为什么这个包可能是你正在寻找的解决方案。
其他回答
在ubuntu 14.04中:
sudo apt-file search ffi.h
返回:
chipmunk-dev: /usr/include/chipmunk/chipmunk_ffi.h
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ffi.html
jython-doc: /usr/share/doc/jython-doc/html/javadoc/org/python/modules/jffi/jffi.html
libffi-dev: /usr/include/x86_64-linux-gnu/ffi.h
libffi-dev: /usr/share/doc/libffi6/html/Using-libffi.html
libgirepository1.0-dev: /usr/include/gobject-introspection-1.0/girffi.h
libgirepository1.0-doc: /usr/share/gtk-doc/html/gi/gi-girffi.html
mlton-basis: /usr/lib/mlton/include/basis-ffi.h
pypy-doc: /usr/share/doc/pypy-doc/html/config/objspace.usemodules._ffi.html
pypy-doc: /usr/share/doc/pypy-doc/html/config/objspace.usemodules._rawffi.html
pypy-doc: /usr/share/doc/pypy-doc/html/rffi.html
我选择安装libffi-dev
sudo apt-get install libffi-dev
完美的工作
我在大学最后一年的主要项目中安装Linux Mint时遇到了同样的问题,下面的第三个解决方案对我有用。
当遇到这个错误时,请在错误之前注意,它可能会说你缺少一个包或头文件-你应该找到它们并安装它们,并验证它是否工作(例如ssl→libssl)。
对于Python 2。x使用:
sudo apt-get install python-dev
对于Python 2.7,请使用:
sudo apt-get install libffi-dev
对于Python 3。x使用:
sudo apt-get install python3-dev
或对于特定版本的Python 3,将x替换为中的次要版本
sudo apt-get install python3.x-dev
在安装ssdeep时,我得到了相同的错误,请检查实际的错误可能是其他的东西,就像我也得到了相同的,但在这个错误上面有一个错误模糊。h没有文件或目录,然后我尝试了这个 Apt-get -y安装libfuzzy-dev
魅力工作
在安装了许多库之后,对我有用的那一个!大喝:
sudo apt-get install swig
安装python的M2Crypto库时出现错误。
:)
这适用于我,12.04,python2.7.6
sudo apt-get install libxml2 libxml2-dev libxslt1-dev
sudo apt-get install lxml