Install the latest CMake version in Ubuntu with apt-get install. The latest version of CMake 2.8.9 is required in the project. This version is packaged with CPack. to experience the convenience of publishing a CPack, try it out. First uninstall the installed old version of CMake apt-get autoremove cmake and then download: cd/usr wget http://www.cmake.org/files/v2.8/cmake-2.8.9-Linux-i386.tar.gz unzip: tar zxvf cmake-2.8.9-Linux-i386.tar.gz, take a look at the directory structure after decompression: # tree-L 2. ├ ── bin │ ├ ── ccmake │ ── cmake │ ├ cmake-gui │ ── cpack │ └ ── ctest ├ ── doc │ ── cmake-2.8 ── man │ ── manman1 └ ── share ── aclocal ├ ── applications ── cmake-2.8 ├ ── mime maps ── pixmaps 11 directorie S, 5 files bin has a variety of cmake family product programs, cpack also has. Very good. It is needed for the subsequent project. Now create the link: ln-s/usr/cmake-2.8.9-Linux-i386/bin/*/usr/bin/and then run the command to check: # cmake -- version cmake version 2.8.9 OK. The latest cmake version is successfully installed.