timan@timan-Rev-1-0:~/Downloads/cmake-2.8.3$ ./bootstrap --------------------------------------------- CMake 2.8.3, Copyright 2000-2009 Kitware, Inc. C compiler on this system is: cc --------------------------------------------- Error when bootstrapping CMake: Cannot find appropriate C++ compiler on this system. Please specify one using environment variable CXX. See cmake_bootstrap.log for compilers attempted. --------------------------------------------- Log of errors: /home/timan/Downloads/cmake-2.8.3/Bootstrap.cmk/cmake_bootstrap.log --------------------------------------------- timan@timan-Rev-1-0:~/Downloads/cmake-2.8.3$ sudo apt-get install gcc-c++ Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gcc-c+ E: Couldn't find any package by regex 'gcc-c+' timan@timan-Rev-1-0:~/Downloads/cmake-2.8.3$ sudo apt-get install gcc-c++ why?
sudo apt-get build-essential g++
2.
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libLTO.so] Error 1
make[1]: *** [tools/lto/CMakeFiles/LTO.dir/all] Error 2
make: *** [all] Error 2
Build failed due to exception!
Working directory: /home/qiaocy/Desktop/emsdk_portable/clang/fastcomp/build_master_64
Command '['make', '-j1']' returned non-zero exit status 2
Installation failed!