Opened 10 years ago

Closed 10 years ago

#44752 closed defect (invalid)

cmake @3.0.0_3: "Could not find CMAKE_ROOT" error at runtime

Reported by: don.spong@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: cmake

Description (last modified by dbevans (David B. Evans))

Hi,

I tried to install cmake using macports. The install seems to go okay. But then when I try to use cake, it says it cannot find CMAKE_ROOT and that the installation was not done correctly (see below). What do I need to do to fix this:

[spongda~/fortran_code_development/plplot-5.10.0_install_dir] >sudo port install cmake
--->  Computing dependencies for cmake
--->  Fetching archive for cmake
--->  Attempting to fetch cmake-3.0.0_3.darwin_13.x86_64.tbz2 from http://packages.macports.org/cmake
--->  Attempting to fetch cmake-3.0.0_3.darwin_13.x86_64.tbz2.rmd160 from http://packages.macports.org/cmake
--->  Installing cmake @3.0.0_3
--->  Activating cmake @3.0.0_3
--->  Cleaning cmake
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.                             
[spongda~/fortran_code_development/plplot-5.10.0_install_dir] >cmake --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/opt/local/bin
Segmentation fault: 11

-Thanks, Don

Change History (6)

comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to css@…
Port: cmake added
Summary: Cmake install bugcmake @3.0.0_3: "Could not find CMAKE_ROOT" error at runtime

Thanks for the report. In future tickets, please use WikiFormatting and Cc relevant maintainers (port info --maintainers cmake).

comment:2 Changed 10 years ago by dbevans (David B. Evans)

Description: modified (diff)

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

cmake --version works fine for me. Could you show us the output of port contents cmake please? This will be a lot of output, so saving it in a file and attaching it is probably best.

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

In addition, let's verify you're actually running MacPorts cmake. Try running /opt/local/bin/cmake --version, as well as which cmake.

comment:5 Changed 10 years ago by don.spong@…

Between my install last night of Macports cmake and now, it has started working okay. Perhaps quitting out of X11 and starting it back up again fixed the problem. cmake —version now gives: cmake version 3.0.0

CMake suite maintained and supported by Kitware (kitware.com/cmake).

as expected. Sorry for the false alarm.

-Thanks, Don

comment:6 Changed 10 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.