Ubuntu source code compilation and installation cmake-2.8.10.2

Source: Internet
Author: User
Region, address http://www.cmake.org/cmake/resources/software.html Www.2cto. com1, unzip the cmake-2.8.10.2.ta ubuntu source code to compile and install the cmake-2.8.10.2 from the cmakeofficial network download the latest cmake.pdf, the pen download is cmake-2.8.10.2.tar.gz, address http://www.cmake.org/cmake/resources/software.html Www.2cto.com 1← decompress the cmake-2.8.10.2.tar.gz tar-xvf cmake-2.8.10.2.tar.gz2, create a new build directory mkdir cmake-bulid cd cmake-2.8.10.2 under the same directory of the cmake-build3, compile cmake .. /. /bootstrap www.2cto.com note: the following error may occur:/usr/lib/libstdc ++. so.6: version 'glibcxx _ 3.4.15 'not found. this is because I updated the ubuntu gcc compiler. Solution: a. Check that libstdc ++. so.6 supports GLIBC strings/usr/lib/libstdc ++. so.6 | grep GLIBCoutput: found that GLIBCXX_3.4.15 is not supported. Here, the author installed gcc 4.7 ls/usr/local/gcc-4.7.2/output in ubuntu: bin include lib libexec share will/usr/local/gcc-4.7.2/lib/directory under libstdc ++. so.6 and libstdc ++. so.6.0.17 copy to/usr/lib/directory: sudo cp/usr/local/gcc-4.7.2/lib/libstdc ++. so.6/usr/lib/sudo cp/usr/local/gcc-4.7.2/lib/libstdc ++. so.6.0.17/usr/lib/sudo rm-f/usr/lib/libstdc ++. so.6.0.13 delete libstdc ++. create a new link and delete libstdc ++. so.6.0.13: sudo ln-sf/usr/lib/l Ibstdc ++. so.6.0.17/usr/lib/libstdc ++. so.6sudo rm-f/usr/lib/libstdc ++. so.6.0.13. now let's go back to compiling cmake. Repeat the command: www.2cto.com .././bootstrap. note: We are still in the cmake-bulid directory. After the above is successful, run the following two commands: makesudo make install to check whether cmake is successfully installed: cmake -- versionoutput: cmake version 2.8.10.2 congratulations, the installation is successful.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.