Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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, 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.
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.
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
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!
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)
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,285
Rep:
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.
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.
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
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 !
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.