I need to install cmake when I install MySQL.
But there's a lot of detail to install, so here's how.
Software: cmake-2.8.5.tar.gz wget http://www.cmake.org/files/v2.8/cmake-2.8.5.tar.gz
[email protected]/]# Yum install gcc-c++[email protected]/]# Yum install ncurses-develInstalling CMakeupload the cmake-2.8.10.2.tar.gz file to the/usr/local to do the following: [email protected] local]# cd/usr/local[[email protected] local]# tar-zxv-f cmake-2.8.5.tar.gz//Decompression pack[[email protected] local]# RM-RF cmake-2.8.5.tar.gz//Delete compressed package[email protected] local]# CD cmake-2.8.5[email protected] cmake-2.8.5]#./configure[[email protected] cmake-2.8.5]# make[[email protected] cmake-2.8.5]# make install[[email protected] local]# mv cmake-2.8.5 cmake//Modify folder nameAdding environment VariablesAdd the variable in the file/etc/profile file with VI to make it permanent: [[email protected] local]# vi/etc/profile//Modify environment variableappend the following two lines of code to the end of the file: Path=/usr/local/cmake/bin: $PATHExport PATHthen perform the following actions: [[email protected] local]# source/etc/profile//Make changes effective[[email protected] local]# echo $PATH//view PATH valueInspection CMake Installation[email protected] local]# CMake--versionOuke, that should be all right.
Installing CMake under CentOS