CentOS install.sh: Difference between revisions

From Flooxs
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
      # Install the proper packages
# Install the proper packages
      yum -y install git gcc gcc-c++
yum -y install git gcc gcc-c++
      yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
      yum -y update && sudo yum -y upgrade
yum -y update && sudo yum -y upgrade
      yum -y install tk-devel tcl-devel suitesparse-devel openblas-devel
yum -y install tk-devel tcl-devel suitesparse-devel openblas-devel
      # See if FLXSHOME is set if not create it
# See if FLXSHOME is set if not create it
      if [ -z $FLXSHOME ]; then mkdir flooxs && export FLXSHOME=`pwd`/flooxs; else echo "FLXSHOME is set to '$FLXSHOME'"; fi
if [ -z $FLXSHOME ]; then mkdir flooxs && export FLXSHOME=`pwd`/flooxs; else echo "FLXSHOME is set to '$FLXSHOME'"; fi
 
# Clone the FLOOXS repo
git clone https://github.com/marklaw59/flooxs.git $FLXSHOME
cd $FLXSHOME
   
# Get the latest version of cmake
wget https://github.com/Kitware/CMake/releases/download/v3.15.1/cmake-3.15.1-Linux-x86_64.tar.gz
tar xf cmake-3.15.1-Linux-x86_64.tar.gz
rm cmake-3.15.1-Linux-x86_64.tar.gz
        
        
      # Clone the FLOOXS repo
# Build Plplot
      git clone https://github.com/marklaw59/flooxs.git $FLXSHOME
wget https://sourceforge.net/projects/plplot/files/plplot/5.13.0%20Source/plplot-5.13.0.tar.gz
      cd $FLXSHOME
tar xf plplot-5.13.0.tar.gz
     
cd plplot-5.13.0
      # Get the latest version of cmake
mkdir build_dir
      wget https://github.com/Kitware/CMake/releases/download/v3.15.1/cmake-3.15.1-Linux-x86_64.tar.gz
cd build_dir
      tar xf cmake-3.15.1-Linux-x86_64.tar.gz
mkdir $FLXSHOME/plplot
      rm cmake-3.15.1-Linux-x86_64.tar.gz
$FLXSHOME/cmake-3.15.1-Linux-x86_64/bin/cmake -DCMAKE_INSTALL_PREFIX=$FLXSHOME/plplot ..
     
make
      # Build Plplot
make install
      wget https://sourceforge.net/projects/plplot/files/plplot/5.13.0%20Source/plplot-5.13.0.tar.gz
cd $FLXSHOME
      tar xf plplot-5.13.0.tar.gz
 
      cd plplot-5.13.0
# Cleanup
      mkdir build_dir
rm -fr cmake-3.15.1-Linux-x86_64/ plplot-5.13.0 plplot-5.13.0.tar.gz
      cd build_dir
cd $FLXSHOME/src
      mkdir $FLXSHOME/plplot
      $FLXSHOME/cmake-3.15.1-Linux-x86_64/bin/cmake -DCMAKE_INSTALL_PREFIX=$FLXSHOME/plplot ..
# Build FLOOXS
      make
export PL_LIBRARY=$FLXSHOME/plplot/share/plplot5.13.0/tcl
      make install
make ARCH=centos new
      cd $FLXSHOME
     
      # Cleanup
      rm -fr cmake-3.15.1-Linux-x86_64/ plplot-5.13.0 plplot-5.13.0.tar.gz
      cd $FLXSHOME/src
     
      # Build FLOOXS
      export PL_LIBRARY=$FLXSHOME/plplot/share/plplot5.13.0/tcl
      make ARCH=centos new

Revision as of 11:59, 30 July 2019

# Install the proper packages
yum -y install git gcc gcc-c++
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y update && sudo yum -y upgrade
yum -y install tk-devel tcl-devel suitesparse-devel openblas-devel
# See if FLXSHOME is set if not create it
if [ -z $FLXSHOME ]; then mkdir flooxs && export FLXSHOME=`pwd`/flooxs; else echo "FLXSHOME is set to '$FLXSHOME'"; fi
  
# Clone the FLOOXS repo
git clone https://github.com/marklaw59/flooxs.git $FLXSHOME
cd $FLXSHOME
   
# Get the latest version of cmake
wget https://github.com/Kitware/CMake/releases/download/v3.15.1/cmake-3.15.1-Linux-x86_64.tar.gz
tar xf cmake-3.15.1-Linux-x86_64.tar.gz
rm cmake-3.15.1-Linux-x86_64.tar.gz
      
# Build Plplot
wget https://sourceforge.net/projects/plplot/files/plplot/5.13.0%20Source/plplot-5.13.0.tar.gz
tar xf plplot-5.13.0.tar.gz
cd plplot-5.13.0
mkdir build_dir
cd build_dir
mkdir $FLXSHOME/plplot
$FLXSHOME/cmake-3.15.1-Linux-x86_64/bin/cmake -DCMAKE_INSTALL_PREFIX=$FLXSHOME/plplot ..
make
make install
cd $FLXSHOME
  
# Cleanup
rm -fr cmake-3.15.1-Linux-x86_64/ plplot-5.13.0 plplot-5.13.0.tar.gz
cd $FLXSHOME/src

# Build FLOOXS
export PL_LIBRARY=$FLXSHOME/plplot/share/plplot5.13.0/tcl
make ARCH=centos new