RT
有台机器一直安不了cmake
./bootstrap
出现
Error when bootstrapping CMake:
Cannot find appropriate C compiler on this system.
Please specify one using environment variable CC.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home/kjlv/Software/cmake-3.2.2/Bootstrap.cmk/cmake_bootstrap.log
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include<stdio.h>
#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
printf("%d%c", (argv != 0), (char)0x0a);
return argc-1;
}
------------------------------------------
ld: final link failed: No space left on device
Test failed to compile
换成gcc之后还是一样的错误
只有cmake_bootstrap.log末尾变成了
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: final link failed: No space left on device
collect2: ld returned 1 exit status
Test failed to compile
安装sh版的成功了
然后安装gromacs的时候还是出错
The C compiler identification is GNU 4.1.2
-- The CXX compiler identification is GNU 4.1.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /home/kjlv/program/cmake-3.3.2-Linux-x86_64/share/cmake-3.3/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
安装sh版的成功了
然后安装gromacs的时候还是出错
The C compiler identification is GNU 4.1.2
-- The CXX compiler identification is GNU 4.1.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /home/kjlv/program/cmake-3.3.2-Linux-x86_64/share/cmake-3.3/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/gcc" is not able to compile a simple test program.