LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-19-2009, 06:18 PM   #1
LiNuXMaN31509
LQ Newbie
 
Registered: Jun 2009
Location: Houston Texas (Born in Brooklyn NY)
Distribution: CentOS
Posts: 25

Rep: Reputation: 0
cmake command missing


Hello:

I am new to CentOS and when I try running cmake .. -DCMAKE_INSTALL_PREFIX=/usr I got the following error:

bash: cmake: command not found

Is there something that I am missing and have to installed? I used Yum to search for it like I found the "git" on there to install but I didn't find anything for cmake? Any ideas? Thanks to all in advance!

-LiNuXMaN31509
 
Old 06-19-2009, 06:38 PM   #2
noctilucent
Member
 
Registered: Jun 2009
Distribution: slackware
Posts: 123

Rep: Reputation: 25
LiNuXMaN31509, tHeRe Is SoMeThInG yOu ArE mIsSiNg, AnD yOu HaVe "To InStAlLeD", mAiNlY: cMaKe ItSeLf. RhEl/CeNtOs DoEs NoT sUpPlY cMaKe By DeFaUlT. pErHaPs GoOgLe CaN pOiNt YoU tO sOmE 3rD pArTy RePoSiToRy. TsChUsS.

- NoCtIlUcEnT

Last edited by noctilucent; 06-19-2009 at 06:42 PM.
 
Old 06-20-2009, 02:59 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,619

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
Quite simple :

# yum search cmake
# yum -y install cmake


Good luck !
 
Old 06-20-2009, 07:27 PM   #4
LiNuXMaN31509
LQ Newbie
 
Registered: Jun 2009
Location: Houston Texas (Born in Brooklyn NY)
Distribution: CentOS
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Quite simple :

# yum search cmake
# yum -y install cmake


Good luck !

When I did the following commands it did not find anything for cmake. I have the files to make cmake, but when I try to configure it I get this message:

---------------------------------------------
CMake 2.6-4, Copyright (c) 2007 Kitware, Inc., Insight Consortium
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.


I tried looking for CXX or anything to do with it but I cant find it anywhere.
 
Old 06-20-2009, 11:45 PM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
you'll need to install the g++-4.3 package (or something like that) and you may also need the gcc (c-compiler installed as well). I don't know what these packages are called in Centos but it should be easy enough for you to find out.
cheers,
jdk
 
Old 06-21-2009, 02:26 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,619

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
C++ : The yum search is for all packages !

# yum search c++
# yum -y install gcc-c++

And entering CXX in Wikipedia, you get .... c++
http://en.wikipedia.org/wiki/Cxx
.....
Good luck !
 
Old 06-21-2009, 04:03 AM   #7
LiNuXMaN31509
LQ Newbie
 
Registered: Jun 2009
Location: Houston Texas (Born in Brooklyn NY)
Distribution: CentOS
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jdkaye View Post
you'll need to install the g++-4.3 package (or something like that) and you may also need the gcc (c-compiler installed as well). I don't know what these packages are called in Centos but it should be easy enough for you to find out.
cheers,
jdk

Thank you I will try and see what I find, thank you for your help!
 
Old 06-21-2009, 04:19 AM   #8
LiNuXMaN31509
LQ Newbie
 
Registered: Jun 2009
Location: Houston Texas (Born in Brooklyn NY)
Distribution: CentOS
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
C++ : The yum search is for all packages !

# yum search c++
# yum -y install gcc-c++

And entering CXX in Wikipedia, you get .... c++
http://en.wikipedia.org/wiki/Cxx
.....
Good luck !

Wow that worked very well thank you so much for your help. I needed the cmake to install LMMS. Its an audio program and when I went to install it it started and then I got this:

CMake Error at /usr/local/share/cmake-2.6/Modules/FindQt4.cmake:1625 (MESSAGE):
Qt qmake not found!
Call Stack (most recent call first):
CMakeLists.txt:95 (FIND_PACKAGE)




Any ideas? lol
 
Old 06-22-2009, 02:03 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,619

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
Lmms requires 'qmake-qt4' :
The qt4 supplied by e.g. CentOS 5.3 is too old !
1) Latest version ... if you wish, takes hours (many) to compile :
http://www.qtsoftware.com/downloads
http://www.qtsoftware.com/downloads/linux-x11-cpp
> > "Download Qt libraries 4.5 for Linux/X11(114 Mb)"
... > qt-x11-opensource-src-4.5.1.tar.gz , actually 118 MB !
> grows beyond 2.2 GB by compiling.

or better 2)
http://download.fedora.redhat.com/pu.../source/SRPMS/
> qt-4.3.4-11.fc9.src.rpm .... only 42 MB.
Unpack ( "install" ) with # rpm -Uvh qt-4.3.4-11.fc9.src.rpm

2a) .. unpack the qt-x11-opensource-src-4.3.4.tar.gz etc. etc.
( I'd prefer that, works fine with lmms.)
# ln -s <path-to-..>/qmake /usr/bin/qmake-qt4

or 3) ... may be ...
http://rpm.pbone.net/index.php3
Search > "Advanced Search", look for qt43 , qt43-devel
There are some packages, for CentOS5.x = RH EL5.x.
.....
.....
P.S.: Dependencies, options for lmms :
# yum -y install \
libsndfile-devel fftw3-devel libvorbis-devel libogg-devel \
jack-audio-connection-kit-devel pulseaudio-libs-devel \
SDL-devel freetype-devel libsamplerate-devel
.....

Last edited by knudfl; 06-22-2009 at 02:41 PM.
 
Old 06-23-2009, 04:57 AM   #10
LiNuXMaN31509
LQ Newbie
 
Registered: Jun 2009
Location: Houston Texas (Born in Brooklyn NY)
Distribution: CentOS
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Lmms requires 'qmake-qt4' :
The qt4 supplied by e.g. CentOS 5.3 is too old !
1) Latest version ... if you wish, takes hours (many) to compile :
http://www.qtsoftware.com/downloads
http://www.qtsoftware.com/downloads/linux-x11-cpp
> > "Download Qt libraries 4.5 for Linux/X11(114 Mb)"
... > qt-x11-opensource-src-4.5.1.tar.gz , actually 118 MB !
> grows beyond 2.2 GB by compiling.

or better 2)
http://download.fedora.redhat.com/pu.../source/SRPMS/
> qt-4.3.4-11.fc9.src.rpm .... only 42 MB.
Unpack ( "install" ) with # rpm -Uvh qt-4.3.4-11.fc9.src.rpm

2a) .. unpack the qt-x11-opensource-src-4.3.4.tar.gz etc. etc.
( I'd prefer that, works fine with lmms.)
# ln -s <path-to-..>/qmake /usr/bin/qmake-qt4

or 3) ... may be ...
http://rpm.pbone.net/index.php3
Search > "Advanced Search", look for qt43 , qt43-devel
There are some packages, for CentOS5.x = RH EL5.x.
.....
.....
P.S.: Dependencies, options for lmms :
# yum -y install \
libsndfile-devel fftw3-devel libvorbis-devel libogg-devel \
jack-audio-connection-kit-devel pulseaudio-libs-devel \
SDL-devel freetype-devel libsamplerate-devel
.....


Thank you very much for your reply, I will try it out and let you know how it went!
 
Old 06-24-2009, 10:54 AM   #11
rpkhere
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
How to delete default tag -D when compiling using CMake?

I am trying to build a project by using CMake on Linux. When I create a library for the compiled project , Cmake by default is adding -Dtarget_EXPORTS option during compilation. This is option is unknown to my compiler.

i.e. g++ -Dtarget_EXPORTS -Wno-error testpgm.cc

Any idea how to remove or suppress this -D tag which is added by default in CMake ??
Thanks in advance
 
Old 06-27-2009, 03:26 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,619

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
@ rpkhere : Not much info about -Dtarget_EXPORTS
Try Google .. -Dtarget_EXPORTS ..
http://www.cmake.org/pipermail/cmake...ly/015026.html
http://www.cmake.org/pipermail/cmake...ly/015029.html
http://www.cmake.org/pipermail/cmake...ly/015030.html

.....
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
Also, it is not quite clear, what you are doing.
? Adding a library to an already compiled application ?

In fact, it's also kind of against the LQ rules
to hijack a thread with a new topic.
Please start a new thread for new questions.
Makes it much easier to get an answer.
.....
And welcome to LQ !
.....
 
  


Reply

Tags
c++, qt4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Missing Auditd Command AmdMhz Linux - Newbie 1 11-19-2008 11:31 AM
Make command is missing bryle SUSE / openSUSE 4 05-07-2008 10:36 PM
cmake or make: debug output, show command Ephracis Programming 4 03-01-2008 03:28 AM
Missing command appz vwagheim Linux - Newbie 4 09-30-2005 02:03 PM
Command 'services' missing? tremend0us Fedora 3 07-11-2005 01:16 PM


All times are GMT -5. The time now is 12:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration