在安装Sentry时出现错误:“无法执行'clang':没有这样的文件或目录”。

4
我正在按照链接中的说明安装sentry: 但是,当我尝试执行命令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.

希望有人能找出我做错了什么。

谢谢, Vady

2个回答

5

要构建symsynd依赖项,您需要一个C编译器。

如果您使用基于Debian的发行版(如Ubuntu等),请执行以下操作:

sudo apt-get install clang

1
我发现我还需要安装 cmake (apt-get install cmake) 才能成功完成 Sentry 的安装过程。 - Roy de Jong
请注意,需要CMake 3.4.3或更高版本。Ubuntu仓库中的默认版本为2.8,请确保进行更改。可以参考https://launchpad.net/~george-edison55/+archive/ubuntu/cmake-3.x。 - user4985526

0

看起来指定一个C编译器就可以了,但事实并非如此。在一些软件包中,clang是硬编码的。唯一的解决方法是安装clang。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接