Kategoriarkiv: Elmer

Elmer is a FEM program: http://www.csc.fi/english/pages/elmer

Standalone FTGL installation on CentOS

ftgl-2.1.3-rc5.tar.gz
./configure –prefix=/opt/ftgl/2.1.3rc5 –exec-prefix=/opt/ftgl/2.1.3rc5 –oldincludedir=/opt/ftgl/2.1.3rc5/include
make -j4
make install

module file /etc/modulefiles/ftgl/2.1.3rc5

#%Module1.0################################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

prepend-path CPLUS_INCLUDE_PATH /opt/ftgl/2.1.3rc5/include/FTGL/
prepend-path LD_LIBRARY_PATH /opt/ftgl/2.1.3rc5/lib

Standalone freetype installation

Download freetype-2.4.10.tar.gz from http://sourceforge.net/projects/freetype/file/freetype2/2.4.10
./configure –prefix=/opt/freetype/2.4.10 –exec-prefix=/opt/freetype/2.4.10 –oldincludedir=/opt/freetype/2.4.10/include
make -j4
make install

module file /etc/modulefiles/freetype/2.4.10

#%Module1.0############################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

## Create a whatis file.
module-whatis ”Add program links, aliases and paths”

prepend-path PATH /opt/freetype/2.4.10/bin
setenv FREETYPE_ROOT_DIR /opt/freetype/2.4.10
prepend-path LD_LIBRARY_PATH /opt/freetype/2.4.10/lib

Qwt 6 standalone install

Download qwt-6.0.2.tar.bz2 from http://qwt.sourceforge.net/
module load qt/4.8.6 # from qt-installation
in qwtconfig.pri: QWT_INSTALL_PREFIX    = /opt/qwt/$$QWT_VERSION
qmake qwt.pro
make -j4
make install

module file /etc/modulefiles/qwt/6.0.2:

#%Module1.0############################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

## Create a whatis file.
module-whatis ”Add program links, aliases and paths”

## Add directory to the path
prepend-path LD_LIBRARY_PATH /opt/qwt/6.0.2/lib:/opt/qwt/6.0.2/plugins/designer
prepend-path CPLUS_INCLUDE_PATH /opt/qwt/6.0.2/include

## Set environment variables
setenv QWT_INCLUDEPATH ”/opt/qwt/6.0.2/include”
setenv QWT_LIBPATH ”/opt/qwt/6.0.2/lib”
setenv QWT_LIBS ”-lqwt”

Standalone QT 4.8 installation on Centos

Download qt-everywhere-opensource-src-4.8.6.tar.gz from http://download.qt-project.org

./configure -prefix /opt/qt/4.8.6 -prefix-install -release -opensource
gmake -j 4 # if you have 4 cores…
gmake install

module file /etc/modulefiles/qt/4.8.6:

#%Module1.0###############################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

## Create a whatis file.
module-whatis ”Add program links, aliases and paths”

setenv QT4_ROOT_DIR ”/opt/qt/4.8.6”
setenv QT_PLUGIN_PATH ”/opt/qt/4.8.6/plugins”
prepend-path PATH /opt/qt/4.8.6/bin
prepend-path LD_LIBRARY_PATH /opt/qt/4.8.6/lib

Standalone install of python 2.7 and 3.4 on CentOS

Download Python-2.7.6.tgz and Python-3.4.1.tar.xz. Unpack the xz-file with tar -xJvf Python-3.4.1.tar.xz. We use the standalone tcltk-installation we’ve made already… (here)

Python 2.7.6
./configure –prefix=/opt/python/2.7.6 –exec-prefix=/opt/python/2.7.6 –oldincludedir=/opt/python/2.7.6/include –datadir=/opt/python/2.7.6 –docdir=/opt/python/2.7.6/doc –with-system-ffi –with-tcltk-includes=”-I/opt/tcltk/8.5.13/include” –with-tcltk-libs=”-L/opt/tcltk/8.5.13/lib -ltcl8.5 -ltk8.5″ –with-pth

make -j4
make install

Module file /etc/modulefiles/python/2.7.6:

#%Module1.0##################################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

## Create a whatis file.
module-whatis ”Add program links, aliases and paths”

setenv PYTHON_ROOT_DIR ”/opt/python/2.7.6”
setenv PYTHONHOME ”/opt/python/2.7.6”
setenv PYTHON_VERSION ”2.7”
setenv PYTHON_INCLUDE /opt/python/2.7.6/include/python2.7
prepend-path PATH /opt/python/2.7.6/bin
prepend-path LD_LIBRARY_PATH /opt/python/2.7.6/lib
prepend-path PYTHONPATH /opt/python/2.7.6/lib/python2.7

Python 3.4.1
./configure –prefix=/opt/python/3.4.1 –exec-prefix=/opt/python/3.4.1 –oldincludedir=/opt/python/3.4.1/include –datadir=/opt/python/3.4.1 –docdir=/opt/python/3.4.1/doc –with-system-ffi –with-tcltk-includes=”-I/opt/tcltk/8.5.13/include” –with-tcltk-libs=”-L/opt/tcltk/8.5.13/lib -ltcl8.5 -ltk8.5″

make -j4
make install

module file /etc/modulefiles/python/3.4.1

#%Module1.0#########################################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

## Create a whatis file.
module-whatis ”Add program links, aliases and paths”

set-alias ”xmlwf” ”xmlwf21”
set-alias ”python” ”python3”
set-alias ”idle” ”idle3”
set-alias ”pip” ”pip3”
set-alias ”pydoc” ”pydoc3”
set-alias ”python-config” ”python3-config”
set-alias ”f2py” ”f2py3”

setenv PYTHON_ROOT_DIR ”/opt/python/3.4.1”
setenv PYTHONHOME ”/opt/python/3.4.1”
setenv PYTHON_VERSION ”3.4”
setenv PYTHON_INCLUDE /opt/python/3.4.1/include/python3.4
prepend-path PATH /opt/python/3.4.1/bin
prepend-path LD_LIBRARY_PATH /opt/python/3.4.1/lib
prepend-path PYTHONPATH /opt/python/3.4.1/lib/python3.4

Tcltk standalone install

Download tcl8.5.13-src.tar.gz and tk8.5.13-src.tar.gz from http://sourceforge.net/projects/tcl

Tcl
./configure –prefix=/opt/tcltk/8.5.13 –exec-prefix=/opt/tcltk/8.5.13 –oldincludedir=/opt/tcltk/8.5.13/include –enable-threads
make -j4
make install

Tk
./configure –prefix=/opt/tcltk/8.5.13 –exec-prefix=/opt/tcltk/8.5.13 –oldincludedir=/opt/tcltk/8.5.13/include
make -j4
make install

Module-file /etc/modulefiles/tcltk/8.5.13
#%Module1.0####################################################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

## Create a whatis file.
module-whatis ”Add program links, aliases and paths”

## Set alias
set-alias ”tclsh” ”tclsh8.5”
set-alias ”wish” ”wish8.5”

setenv TCLHOME ”/opt/tcltk/8.5.13”
setenv TCLLIBPATH ”/opt/tcltk/8.5.13/lib:/opt/tcltk/8.5.13/lib/tcl8.5”
prepend-path PATH /opt/tcltk/8.5.13/bin
prepend-path LD_LIBRARY_PATH /opt/tcltk/8.5.13/lib