Modules for Centos/Fedora/Redhat

From NEOSYS Dev Wiki
Revision as of 01:44, 21 June 2011 by Steve (talk | contribs)
Jump to navigationJump to search
  1. !/bin/bash

set -e

  1. -------------------------------
  2. --- MUST Install Swig First ---
  3. -------------------------------

sudo yum install -y swig if [ "`swig -version | grep 1.3`" != "" ]; then

sudo yum -y install pcre-devel
cd ~
export SWIG_VER=2.0.4
wget http://downloads.sourceforge.net/project/swig/swig/swig-$SWIG_VER/swig-$SWIG_VER.tar.gz
tar xf swig-$SWIG_VER.tar.gz
cd swig-$SWIG_VER
./configure --prefix=$HOME/local
make && sudo make install

fi

cd ~/exodus/swig

  1. ------------
  2. --- Perl ---
  3. ------------

sudo yum install perl-devel ./make.sh perl && sudo ./install.sh perl && ./test.pl

  1. -------------
  2. -- Python ---
  3. -------------

sudo yum install -y python-devel ./make.sh python && sudo ./install.sh python && ./test.py

  1. -----------
  2. --- PHP ---
  3. -----------

sudo yum install -y php-devel php-cli ./make.sh php && sudo ./install.sh php && ./test.php service httpd restart || echo "service httpd restart" failed

  1. ------------
  2. --- Java ---
  3. ------------

sudo yum install -y java java-devel ./make.sh java && sudo ./install.sh java && ./testjava.sh

  1. ----------
  2. --- C# ---
  3. ----------

sudo yum install -y mono-devel ./make.sh csharp && sudo ./install.sh csharp && ./testc#.sh