CMake-3.4.3.sh 442 Bytes
Newer Older
Pablo Toharia's avatar
Pablo Toharia committed
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
# Download, compile and install cmake 3.3.1
cd $HOME/opt/src
wget http://www.cmake.org/files/v3.4/cmake-3.4.3.tar.gz
tar zxvf cmake-3.4.3.tar.gz
cd cmake-3.4.3
mkdir -p Release
cd Release
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/opt/cmake-3.4.3
make install $1
11
ln -s ~/opt/modules/modules/cmake-3.4.3 ~/opt/modules/installed/cmake-3.4.3
Pablo Toharia's avatar
Pablo Toharia committed
12 13
echo "module load cmake-3.4.3" >> $HOME/.bashrc
source $HOME/.bashrc