Modules for Centos/Fedora/Redhat: Difference between revisions
From NEOSYS Dev Wiki
Jump to navigationJump to search
(Created page with '#!/bin/bash set -e #------------------------------- #--- MUST Install Swig First --- #------------------------------- yum -y install pcre-devel wget http://downloads.sourceforge…') |
m (moved Modules for Centos to Modules for Centos/Fedora/Redhat) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre> | |||
#!/bin/bash | #!/bin/bash | ||
set -e | set -e | ||
Line 5: | Line 6: | ||
#--- MUST Install Swig First --- | #--- MUST Install Swig First --- | ||
#------------------------------- | #------------------------------- | ||
yum -y install pcre-devel | sudo yum install -y swig | ||
wget http://downloads.sourceforge.net/project/swig/swig/swig- | if [ "`swig -version | grep 1.3`" != "" ]; then | ||
tar xf swig- | sudo yum -y install pcre-devel | ||
cd swig- | cd ~ | ||
./configure --prefix=$HOME/local | export SWIG_VER=2.0.4 | ||
make && make install | 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 | cd ~/exodus/swig | ||
Line 17: | Line 23: | ||
#--- Perl --- | #--- Perl --- | ||
#------------ | #------------ | ||
sudo yum install perl-devel | |||
./make.sh perl && sudo ./install.sh perl && ./test.pl | ./make.sh perl && sudo ./install.sh perl && ./test.pl | ||
Line 22: | Line 29: | ||
#-- Python --- | #-- Python --- | ||
#------------- | #------------- | ||
yum install -y python-devel | sudo yum install -y python-devel | ||
./make.sh python && sudo ./install.sh python && ./test.py | ./make.sh python && sudo ./install.sh python && ./test.py | ||
Line 28: | Line 35: | ||
#--- PHP --- | #--- PHP --- | ||
#----------- | #----------- | ||
yum install php-devel php-cli | sudo yum install -y php-devel php-cli | ||
./make.sh php && sudo ./install.sh php && ./test.php | ./make.sh php && sudo ./install.sh php && ./test.php | ||
service httpd restart || echo "service httpd restart" failed | service httpd restart || echo "service httpd restart" failed | ||
Line 35: | Line 42: | ||
#--- Java --- | #--- Java --- | ||
#------------ | #------------ | ||
yum install java java-devel | sudo yum install -y java java-devel | ||
./make.sh java && sudo ./install.sh java && ./testjava.sh | ./make.sh java && sudo ./install.sh java && ./testjava.sh | ||
Line 41: | Line 48: | ||
#--- C# --- | #--- C# --- | ||
#---------- | #---------- | ||
yum install -y mono-devel | sudo yum install -y mono-devel | ||
./make.sh csharp && sudo ./install.sh csharp && ./testc#.sh | ./make.sh csharp && sudo ./install.sh csharp && ./testc#.sh | ||
</pre> |
Latest revision as of 01:45, 21 June 2011
#!/bin/bash set -e #------------------------------- #--- MUST Install Swig First --- #------------------------------- 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 #------------ #--- Perl --- #------------ sudo yum install perl-devel ./make.sh perl && sudo ./install.sh perl && ./test.pl #------------- #-- Python --- #------------- sudo yum install -y python-devel ./make.sh python && sudo ./install.sh python && ./test.py #----------- #--- PHP --- #----------- 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 #------------ #--- Java --- #------------ sudo yum install -y java java-devel ./make.sh java && sudo ./install.sh java && ./testjava.sh #---------- #--- C# --- #---------- sudo yum install -y mono-devel ./make.sh csharp && sudo ./install.sh csharp && ./testc#.sh