-
Notifications
You must be signed in to change notification settings - Fork 9
Build & Install CMake 2.8.10.2 in CentOS6.3
Bin Wei edited this page May 17, 2013
·
3 revisions
-
Download CMake 2.8.10.2 from http://www.cmake.org/cmake/resources/software.html#latest
-
cd /usr/local
-
tar -zxf cmake-2.8.10.2.tar.gz
-
rpm -qa|grep ncurses-devel // to check if you installed ncurses-devel, if not, please install this firstly
-
rm -f cmake-2.8.10.2.tar.gz
-
cd cmake-2.8.10.2
-
./configure
-
make
-
make install
-
cd ..
-
mv cmake-2.8.10.2 cmake
-
vi /etc/profile
Put below 2 lines into the bottom line of /etc/profile:
PATH=/usr/local/cmake/bin:$PATH export PATH
-
source /etc/profile
-
echo $PATH // to check if cmake in the PATH.
-
cmake --version // to check if the version is right, should be cmake version 2.8.10.2
DONE~~~