2016-11-07 32 views
4

我試圖按照從link的說明安裝哨兵: 然而,當我嘗試執行命令PIP安裝-U哨兵 ,我收到錯誤InstallationError: Command python setup.py egg_info failed with error code 1 in /webapps/sentry/env/build/symsynd錯誤而安裝哨兵'不能執行「鐺」:沒有這樣的文件或directory`

下面是從日誌文件中的細節:

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

回答

5

你需要一個C編譯器來構建symsynd依賴。

如果你是一個基於Debian發行版(Ubuntu的,等等)只是做:

sudo apt-get install clang 
+0

對不起,延遲迴復。感謝它像魅力一樣工作。 –

+1

我發現我還需要安裝'cmake'('apt-get install cmake')才能成功完成Sentry安裝過程。 –

+0

也要確保cmake verison是CMake 3.4.3或更高版本是必需的。 ubuntu repo上的默認值是2.8.一定要改變這一點。 https://launchpad.net/~george-edison55/+archive/ubuntu/cmake-3.x – tyan

0

看來,指定C編譯器都會好的,但不是。在一些軟件包中,clang是硬編碼的。唯一的方法是安裝叮噹聲。

相關問題