安装哨兵时出错`无法执行'clang':没有这样的文件或目录`
Error while installing sentry `unable to execute 'clang': No such file or directory`
我正尝试按照 link 中的说明安装哨兵:
但是,当我尝试执行命令 pip install -U sentry 时,我收到错误 InstallationError: Command python setup.py egg_info failed with error code 1 in /webapps/sentry/env/build/symsynd
这是日志文件中的详细信息:
self.run_setup(setup_script, setup_base, args)
File "/webapps/sentry/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1003, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1
Complete output from command python setup.py egg_info:
unable to execute 'clang': No such file or directory
unable to execute 'clang': No such file or directory
No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
如果有人能找出我做错了什么,那就太好了。
谢谢,
瓦迪
您需要一个 C 编译器来构建 symsynd 依赖项。
如果您使用的是基于 Debian 的发行版(Ubuntu,等等),只需执行:
sudo apt-get install clang
好像指定C编译器就可以了,其实不行。在某些包中,clang 是硬编码的。唯一的办法就是安装clang。
我正尝试按照 link 中的说明安装哨兵:
但是,当我尝试执行命令 pip install -U sentry 时,我收到错误 InstallationError: Command python setup.py egg_info failed with error code 1 in /webapps/sentry/env/build/symsynd
这是日志文件中的详细信息:
self.run_setup(setup_script, setup_base, args)
File "/webapps/sentry/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1003, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1
Complete output from command python setup.py egg_info:
unable to execute 'clang': No such file or directory
unable to execute 'clang': No such file or directory
No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
如果有人能找出我做错了什么,那就太好了。
谢谢, 瓦迪
您需要一个 C 编译器来构建 symsynd 依赖项。
如果您使用的是基于 Debian 的发行版(Ubuntu,等等),只需执行:
sudo apt-get install clang
好像指定C编译器就可以了,其实不行。在某些包中,clang 是硬编码的。唯一的办法就是安装clang。