LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   cmake build crashes when running as user (http://www.linuxquestions.org/questions/slackware-14/cmake-build-crashes-when-running-as-user-800222/)

Tim Johnson 04-05-2010 08:27 PM

cmake build crashes when running as user
 
Using slack 13.0 32-bit.
I built cmake from source following instructions from the bootstrap
executable.

The build was done as root.
When I run
Code:

cmake --version
as root I get the expected message.
Code:

cmake version 2.8.1
When I run
Code:

cmake --version
as user I get
Code:

CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/bin
Segmentation fault

I don't get a value for env variable CMAKE_ROOT from either
root or user.
Neither do I see a `Modules' directory under /usr/local/bin
Any ideas?
thanks
tim

XGizzmo 04-05-2010 09:12 PM

Why not use Slackware's cmake SlackBuild to build cmake 2.8.1 all you should have to do is bump the version in the build.

H_TeXMeX_H 04-06-2010 07:39 AM

I thought cmake now comes with Slackware, at least in 13.0, you should get the official package.

Tim Johnson 04-06-2010 10:18 AM

Quote:

Originally Posted by XGizzmo (Post 3925589)
Why not use Slackware's cmake SlackBuild to build cmake 2.8.1 all you should have to do is bump the version in the build.

Since the last posting - I have rebuilt using cmake.
The same symptoms persist.

Tim Johnson 04-06-2010 10:19 AM

Quote:

Originally Posted by H_TeXMeX_H (Post 3926099)
I thought cmake now comes with Slackware, at least in 13.0, you should get the official package.

It does. The installation of the awesome window manager requires the
later version.

a4z 04-07-2010 07:54 AM

my CMAKE_ROOT root points to /usr/share/cmake-2.8, the modules directory is in there

Tim Johnson 04-07-2010 10:16 AM

Quote:

Originally Posted by a4z (Post 3927398)
my CMAKE_ROOT root points to /usr/share/cmake-2.8, the modules directory is in there

My modules directory is in /usr/local/share/cmake-2.8
How do I point CMAKE_ROOT to /usr/local/share/cmake-2.8?

thanks
tim

H_TeXMeX_H 04-07-2010 10:34 AM

It looks like a variable so you could do:

Code:

export CMAKE_ROOT=/usr/local/share/cmake-2.8

Tim Johnson 04-07-2010 03:20 PM

Quote:

Originally Posted by H_TeXMeX_H (Post 3927575)
It looks like a variable so you could do:

Code:

export CMAKE_ROOT=/usr/local/share/cmake-2.8

I thought that too, but I decided to rebuild cmake, so deleted the
cmake binaries from /usr/local/bin and /usr/local/share/cmake-2.8

Now attempting to build for /usr/local/bin, after running ccmake I'm getting this error message:
Quote:

CMake Error: The source directory "/usr/local/bin" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Time doesn't permit me to pursue this further right now, so I will
report back after trying a couple other things doing some research.
thanks
tim

mwiegand 08-10-2011 10:15 AM

Tim,
I encounter the same problem.
If you specify a different install directory:
../bootstrap --prefix=/opt/cmake-2.8.5

Then the install works OK:
/opt/cmake-2.8.5/bin/cmake --version
cmake version 2.8.5

mule.ear 10-15-2014 03:31 PM

Same problem when I installed cmake 3.0
 
As a user, I could not run cmake.

CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/bin
Segmentation fault (core dumped)

My solution
as root:

cd /usr/local/share
chmod o+rx cmake-3.0/
cd cmake-3.0/
chmod o+rx ./*

I guess the other way would be to change root's umask when doing the install.


All times are GMT -5. The time now is 03:01 PM.