我有一個僞編譯運行在buildbot從站。 當buildbot用戶運行我得到:cmake不爲其他用戶工作
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
...
cc1: error: /usr/local/include/x86_64-linux-gnu: Permission denied
在/ usr /本地/包括/ x86_64的Linux的GNU的不存在,但如果我手動運行它作爲蘇我得到:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
和等等,我以後可以製作並運行生成的可執行文件 我假設與項目文件權限無關,因爲所有文件都屬於buildbot用戶
命令運行只是cmake。 OS是Ubuntu的LTS 12.04.1服務器版
感謝
/usr/local/include的權限和誰擁有它? – SethMMorton 2013-05-14 17:22:59
drwx ------ 3 root root 4096 5月9日08:45包括 – hithwen 2013-05-14 17:25:14
好吧,爲/ usr/local/include添加讀取和執行權限,修復了這個問題謝謝! – hithwen 2013-05-14 17:27:44