Installing cmake 2.8.8 or higher on Ubuntu 12.04 (Precise Pangolin) (转载)

转自:http://cameo54321.blogspot.com/2014/02/installing-cmake-288-or-higher-on.html

 

  1. Check the version of your Cmake using cmake --version
  2. If 2.8.7, Download the latest CMake version from the CMake web site 
  3. Uncompress it in a new folder
  4. Create a _build directory in the folder: mkdir _build
  5. From the _build directory, run the following commands to build and install CMake from sources:
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install  
sudo ldconfig

posted on 2016-05-20 10:26  次奥砖家  阅读(833)  评论(0编辑  收藏  举报

导航