LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-05-2010, 08:27 PM   #1
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Rep: Reputation: 30
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
 
Old 04-05-2010, 09:12 PM   #2
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
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.
 
Old 04-06-2010, 07:39 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I thought cmake now comes with Slackware, at least in 13.0, you should get the official package.
 
Old 04-06-2010, 10:18 AM   #4
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by XGizzmo View Post
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.
 
Old 04-06-2010, 10:19 AM   #5
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by H_TeXMeX_H View Post
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.
 
Old 04-07-2010, 07:54 AM   #6
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
my CMAKE_ROOT root points to /usr/share/cmake-2.8, the modules directory is in there
 
Old 04-07-2010, 10:16 AM   #7
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by a4z View Post
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
 
Old 04-07-2010, 10:34 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
It looks like a variable so you could do:

Code:
export CMAKE_ROOT=/usr/local/share/cmake-2.8
 
Old 04-07-2010, 03:20 PM   #9
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by H_TeXMeX_H View Post
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
 
Old 08-10-2011, 10:15 AM   #10
mwiegand
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 10-15-2014, 03:31 PM   #11
mule.ear
LQ Newbie
 
Registered: Jul 2009
Distribution: Fedora 11
Posts: 1

Rep: Reputation: 0
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.

Last edited by mule.ear; 10-17-2014 at 07:35 PM. Reason: mistake while removing 'sensitive' portions of text
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cmake: Using find_package(Boost) when FindBoost.cmake is not in the default location damien_d Programming 3 10-27-2010 03:40 PM
Need surefire way to build 64-bit libs with cmake -> /usr/lib64 H_TeXMeX_H Linux - Software 1 03-21-2010 01:01 AM
Running VMwareŽ Workstation 6.5.2 build-156735 on Debian Lenny as normal user cstrieder Linux - Software 1 07-25-2009 04:46 PM
Is it ok to build latest cmake dir in personal directory? agentchange Linux - Software 8 09-06-2008 06:35 AM
LXer: The Road to KDE 4: CMake, a New Build System for KDE LXer Syndicated Linux News 0 02-22-2007 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration