当我尝试安装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
有人能帮我解决这个问题吗?
当前回答
对我来说,以上这些都没用。但是,我解决了安装libssl-dev的问题。
sudo apt-get install libssl-dev
这可能会工作,如果你有相同的错误信息在我的情况下:
致命错误:openssl/openssl .h:没有这样的文件或目录... .... 命令“x86_64-linux-gnu-gcc”退出状态为1失败
其他回答
在安装了许多库之后,对我有用的那一个!大喝:
sudo apt-get install swig
安装python的M2Crypto库时出现错误。
:)
在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
完美的工作
对于Python 3.4使用:
sudo apt-get install python3.4-dev
对于Python 3.5,请使用:
sudo apt-get install python3.5-dev
对于Python 3.6使用:
sudo apt-get install python3.6-dev
对于Python 3.7,请使用:
sudo apt-get install python3.7-dev
对于Python 3.8使用:
sudo apt-get install python3.8-dev
... 等等……
对我来说,我必须确保我使用了正确版本的密码学。 pip.freeze有一个较旧的版本,一旦我使用了最新的问题,就会消失。
在我的例子中,命令sudo apt-get install unixodbc-dev解决了这个问题。我得到了一个特定于sql.h头文件的错误。