[CentOS7] How to cmake 3.8.2 build (Required minimum version) - 1

in gcc •  6 years ago 

How to install Cmake 3.8.2 build (Required minimum version)

  • Step

$ wget http://www.cmake.org/files/v3.8/cmake-3.8.2.tar.gz
$ tar -zxvf cmake-3.6.1.tar.gz
$ cd cmake-3.6.1
$ ./bootstrap (Required gcc Compiler)
$ make
$ make install
$ \cp -f ./bin/cmake ./bin/cpack ./bin/ctest /bin
$ cmake -version


  • Problem (in installed course)


To install Gcc Compiler

*How To Install GCC on CentOS 7
: (https://linuxhostsupport.com/blog/how-to-install-gcc-on-centos-7/)


$ yum -y install gcc //Gcc Compiler Default install
$ gcc --version //Maybe gcc compiler 4.8.x
$ yum -y install gcc-c++ //C++ Compiler Default install


Manual Installation(Required sudo Permission)

$ wget http://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-7.3.0/gcc-7.3.0.tar.gz
$ tar zxf gcc-7.3.0.tar.gz
$ cd gcc-7.3.0
$ yum -y install bzip2
$ ./contrib/download_prerequisites
$ ./configure --disable-multilib --enable-languages=c,c++ --prefix=/usr/local/bin
$ make -j 4 //[The number of core]
$ make install


Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!