Kategoriarkiv: no category

Install Octave 4.0.0 on CentOS 6.6

Download from: ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gz

tar -xzvf octave-4.0.0.tar.gz
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.51-1.b16.el6_7.x86_64
./configure --exec-prefix=/opt/octave/4.0.0 --datarootdir=/opt/octave/4.0.0/share --datadir=/opt/octave/4.0.0/share --infodir=/opt/octave/4.0.0/share/info --includedir=/opt/octave/4.0.0/include --oldincludedir=/opt/octave/4.0.0/include
make -j64 # if you want to compile on 64 cores...
make install

Create module file /etc/modulefiles/octave/4.0.0:

#%Module1.0####################################################################
##
## octave modulefile
##
##
##
prepend-path PATH /opt/octave/4.0.0/bin
prepend-path LD_LIBRARY_PATH /opt/octave/4.0.0/lib
prepend-path MANPATH /opt/octave/4.0.0/share/man

 

Install old Metis 4.0.3 for mbdyn on Centos 6.6

Get the latest version in the 4-series:

wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-4.0.3.tar.gz
tar -xzvf metis-4.0.3.tar.gz
cd metis-4.0.3
make -j4
mkdir -p /opt/metis/4.0.3/bin
mkdir /opt/metis/4.0.3/lib
mkdir /opt/metis/4.0.3/include
cp Lib/*.h /opt/metis/4.0.3/include/
cp libmetis.a /opt/metis/4.0.3/lib/libmetis.so
chmod +x /opt/metis/4.0.3/lib/libmetis.so
cp pmetis kmetis oemetis onmetis mesh2dual mesh2nodal partdmesh partnmesh graphchk /opt/metis/4.0.3/bin/
cp -r Doc/ /opt/metis/4.0.3/doc

Module file /etc/modulefiles/metis/4.0.3 :

#%Module1.0####################################################################
 ##
 ##  Discretizer AB modulefile
 ##
 ##
 ## Add directory to the path
 prepend-path PATH /opt/metis/4.0.3/bin
 prepend-path LD_LIBRARY_PATH /opt/metis/4.0.3/lib
 prepend-path CPLUS_INCLUDE_PATH /opt/metis/4.0.3/include
 prepend-path CPPFLAGS -I/opt/metis/4.0.3/include
 prepend-path LIBS -L/opt/metis/4.0.3/lib

 

Install Octave 3.8.2 on CentOS 6.6

Download from: ftp://ftp.gnu.org/gnu/octave/octave-3.8.2.tar.gz

tar -xzvf octave-3.8.2.tar.gz
export JAVA_HOME=/usr/lib/jvm/java/
./configure --exec-prefix=/opt/octave/3.8.2 --exec-prefix=/opt/octave/3.8.2  --datadir=/opt/octave/3.8.2/share
make -j64 # if you want to compile on 64 cores...

Create module file /etc/modulefiles/octave/3.8.2:

#%Module1.0####################################################################
##
## octave modulefile
##
##
##
prepend-path PATH /opt/octave/3.8.2/bin
prepend-path LD_LIBRARY_PATH /opt/octave/3.8.2/lib
prepend-path MANPATH /opt/octave/3.8.2/share/man

 

Standalone install of boost 1.49.0 on Centos 6.6

Get file: http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.gz/download

tar -xzvf
module load openmpi-x86_64
./bootstrap.sh -prefix=/opt/boost/1.49.0
./b2 -j20 # if you want to compile on 20 cores :-)
mkdir -p /opt/boost/1.49.0
cp -r stage/ /opt/boost/1.49.0/

Create module file /etc/modulefiles/boost/1.49.0

#%Module1.0####################################################################
##
## boost modulefile
##
##
##

prepend-path LD_LIBRARY_PATH /opt/boost/1.49.0/stage/lib