【问题标题】:Error while installing sentry `unable to execute 'clang': No such file or directory`安装哨兵时出错`无法执行'clang':没有这样的文件或目录`
【发布时间】:2023-03-27 02:29:02
【问题描述】:

我正在尝试按照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.

如果有人能弄清楚我做错了什么,那就太好了。

谢谢你, 瓦迪

【问题讨论】:

    标签: installation virtualenv sentry


    【解决方案1】:

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

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

    sudo apt-get install clang
    

    【讨论】:

    【解决方案2】:

    似乎指定一个 C 编译器是可以的,但不是。在某些包中,clang 是硬编码的。唯一的方法是安装 clang。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-27
      • 1970-01-01
      • 2022-01-16
      • 1970-01-01
      • 2017-11-14
      相关资源
      最近更新 更多