Installing cmake 2.8 on CentOS 5


If you are intending to compile and install cmake 2.8 on CentOS 5, you have to use a slightly older version of cmake 2.8.10.2 is compatible with CentOS 5. You can get it from this link

http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz

The most recent version of cmake-2.8.11 is only able to be compiled easily on CentOS 6 unless you wish to fix dependencies issues like GBLIC 2.7

Installation is quite easy to compile cmake-2.8.10.2

Step 1: You can use the bootstrap which will default the cmake to default location ie /usr/local/. If you are using bootstrap,

# tar -zxvf cmake-2.8.10.2
# cd cmake-2.8.10.2
# ./bootstrap
# make
# make install

Alternatively, I use the configure command which I’m more accustomed

# tar -zxvf cmake-2.8.10.2
# cd cmake-2.8.10.2
#./configure --prefix=/usr/local/cmake-2.8.10.2
# make
# make install
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s