CMake Error at CMakeLists.txt:57

184 views
Skip to first unread message

Héctor Alessandro López Hérnandez

unread,
Mar 6, 2021, 7:45:41 PM3/6/21
to slim-discuss
I've got an error while I was trying to install SLiM
This is the complete message:
#begin#

 The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:57 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/tmp/BUILD/CMakeFiles/CMakeOutput.log".
See also "/tmp/BUILD/CMakeFiles/CMakeError.log".
Build failed. Please see the output and make a post on the slim-discuss mailing list.
The output from this build is stored in '/var/log/' as SLiM-CMakeOutput-2021-03-06T18:40:23-06:00.log.

#end#

I don't know anything about Ubuntu, but a few days ago i was installing SLiM on Linux Mint and this wasn't a problem. I'll hope someone could help me.

Ben Haller

unread,
Mar 6, 2021, 11:15:29 PM3/6/21
to slim-discuss
Hi!  This error doesn't have anything to do with SLiM; your build is failing before it ever even looks at a SLiM source file.  It looks like Cmake is having trouble figuring out what C++ compiler you have installed (if you have one installed at all).  Section 2.4.3 of the manual has a list of common packages that can be helpful to install; I'd try installing those to see if that perhaps helps.  Perhaps "build-essential" and "cmake" are likely candidates.  Besides that, google is your friend – trying searching on something like "No CMAKE_CXX_COMPILER could be found Ubuntu" and see what you get.  Good luck!

-B.

Benjamin C. Haller
Messer Lab
Cornell University

Reply all
Reply to author
Forward
0 new messages