CentOS-6.3 installation configuration cmake installation instructions installation environment: CentOS-6.3 installation method: Source code compilation installation software: cmake-2.8.10.2.tar.gz: http://www.cmake.org/cmake/resources/software.html Installation prerequisites the system has installed g ++ and ncurses... CentOS-6.3 installation configuration cmake installation instructions installation environment: CentOS-6.3 installation method: Source code compilation installation software: cmake-2.8.10.2.tar.gz: http://www.cmake.org/cmake/resources/software.html Before installation, g ++ and ncurses-devel are installed in the system. if not, run the following command: [root @ admin/] # yum install gcc-c ++ [root @ admin/] # yum install ncurses-develinstall cmaketo Upload The cmake-2.8.10.2.tar.gz file to/usr/local and perform the following operations: [root @ admin local] # cd/usr/local [root @ admin local] # tar-zxv-f cmake-2.8.10.2.tar.gz // Unzip the compressed package [root @ admin local] # rm-rf cmake-2.8.10.2.tar.gz // delete the compressed package [root @ admin local] # cd cmake-2.8.10.2 [root @ localhost cmake-2.8.10.2] #. /Configure [root @ localhost cmake-2.8.10.2] # make [root @ localhost cmake-2.8.10.2] # make install [root @ admin local] # mv cmake-2.8.10.2 cmake // modify the folder name to add environment variables in vi add variables to the/etc/profile file, make it permanently valid: [root @ admin local] # vi/etc/profile // modify the environment variable and append the following two lines of code at the end of the file: PATH =/usr/local/cmake/bin: $ PATHexport PATH and then perform the following operations: [root @ admin local] # source/etc/profile // make the modification take effect [root @ admin local] # echo $ PATH // Check the PATH value to install cmake [root @ Admin local] # cmake -- versioncmake version 2.8.10.2 congratulations, the installation is successful.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.