← Back to team overview

dorsal team mailing list archive

rhel5.5/CentOS5.5 update

 

Hello!

I have now instaled FEniCS (agian) on a CentOS5 using rhel5.platform as a 
template. Attached is a diff that "worked" for me. Not sure why but several of 
the suggested rmp packages were not available from CentOS yum so I had to add 
them as packages for dorsal to install. That went smooth!

I installed most of the packages one by one, and I used python2.6, because I 
needed that for other reasons. So the suggestion is not fool proofed...

I also added a bunch of packages to dorsal: sympy, matplotlib, cppunit, 
ipython, python2.6

Most of these are not strictly needed by FEniCS but can be nice :) 

I also modified python and numpy by adding a shared lib option and a symlink. 

It would be cool if we were able to use PYTHONVER to set which Python version 
is chosen. We need that variable set for the symlink in the numpy script. Not 
exactly sure how the logic should work out. Someone with better Bash/Dorsal 
skills might have suggestions. Maybe using some python2.X.package files which 
get loaded dependent on the PYTHONVER variable? 

How can one set variables in on package file which should be looked for in 
another file? For example we could hardcode PYTHONVER in the python2.X files 
and then skip it as an option in the platform file, which I am using now.

Johan

=== added file 'FEniCS/packages/cppunit.package'
--- FEniCS/packages/cppunit.package	1970-01-01 00:00:00 +0000
+++ FEniCS/packages/cppunit.package	2011-06-18 06:57:28 +0000
@@ -0,0 +1,8 @@
+NAME=cppunit-1.12.1
+SOURCE=http://downloads.sourceforge.net/cppunit/
+PACKING=.tar.gz
+BUILDCHAIN=autotools
+
+package_specific_register () {
+    export CPPUNIT_DIR=${INSTALL_PATH}
+}
\ No newline at end of file

=== added file 'FEniCS/packages/ipython.package'
--- FEniCS/packages/ipython.package	1970-01-01 00:00:00 +0000
+++ FEniCS/packages/ipython.package	2011-06-18 06:49:59 +0000
@@ -0,0 +1,7 @@
+http://ipython.scipy.org/dist/0.10.2/ipython-0.10.2.tar.gz
+VERSION=0.10.2
+NAME=ipython-$VERSION
+SOURCE=http://ipython.scipy.org/dist/$VERSION/
+PACKING=.tar.gz
+BUILDCHAIN=python
+

=== added file 'FEniCS/packages/matplotlib.package'
--- FEniCS/packages/matplotlib.package	1970-01-01 00:00:00 +0000
+++ FEniCS/packages/matplotlib.package	2011-06-18 06:48:37 +0000
@@ -0,0 +1,4 @@
+NAME=matplotlib-1.0.1
+SOURCE=http://sourceforge.net/projects/matplotlib/files/matplotlib/$NAME/
+PACKING=.tar.gz
+BUILDCHAIN=python

=== modified file 'FEniCS/packages/numpy.package'
--- FEniCS/packages/numpy.package	2011-02-09 12:14:28 +0000
+++ FEniCS/packages/numpy.package	2011-06-18 06:49:34 +0000
@@ -1,4 +1,4 @@
-NAME=numpy-1.5.1
+NAME=numpy-1.6.0
 SOURCE=http://downloads.sourceforge.net/numpy/
 PACKING=.tar.gz
 BUILDCHAIN=python
@@ -8,3 +8,7 @@
     echo "library_dirs = ${LAPACKANDBLAS_DIR}" >> site.cfg
     echo "atlas_libs = lapack, blas" >> site.cfg
 }
+
+package_specific_register () {
+    ln -s ${INSTALL_PATH}/lib/python${PYTHONVER}/site-packages/numpy/core/include/numpy ${INSTALL_PATH}/include/python${PYTHONVER}
+}

=== modified file 'FEniCS/packages/openmpi.package'
--- FEniCS/packages/openmpi.package	2011-02-09 12:14:28 +0000
+++ FEniCS/packages/openmpi.package	2011-06-18 06:58:30 +0000
@@ -3,3 +3,4 @@
 PACKING=.tar.bz2
 BUILDCHAIN=autotools
 CONFOPTS='--disable-mpi-f90 --disable-mpi-profile'
+

=== modified file 'FEniCS/packages/python.package'
--- FEniCS/packages/python.package	2011-02-09 12:14:28 +0000
+++ FEniCS/packages/python.package	2011-06-18 07:06:43 +0000
@@ -3,3 +3,5 @@
 SOURCE=http://www.python.org/ftp/python/${VERSION}/
 PACKING=.tar.bz2
 BUILDCHAIN=autotools
+
+CONFOPTS="--enable-shared"

=== added file 'FEniCS/packages/python2.6.package'
--- FEniCS/packages/python2.6.package	1970-01-01 00:00:00 +0000
+++ FEniCS/packages/python2.6.package	2011-06-18 06:49:23 +0000
@@ -0,0 +1,7 @@
+VERSION=2.6.2
+NAME=Python-${VERSION}
+SOURCE=http://www.python.org/ftp/python/${VERSION}/
+PACKING=.tar.bz2
+BUILDCHAIN=autotools
+
+CONFOPTS="--enable-shared"

=== added file 'FEniCS/packages/sympy.package'
--- FEniCS/packages/sympy.package	1970-01-01 00:00:00 +0000
+++ FEniCS/packages/sympy.package	2011-06-18 06:49:30 +0000
@@ -0,0 +1,4 @@
+NAME=sympy-0.6.6
+SOURCE=http://pypi.python.org/packages/source/s/sympy/
+PACKING=.tar.gz
+BUILDCHAIN=python

=== modified file 'FEniCS/platforms/deprecated/rhel5.platform'
--- FEniCS/platforms/deprecated/rhel5.platform	2011-01-17 13:47:30 +0000
+++ FEniCS/platforms/deprecated/rhel5.platform	2011-06-18 07:20:12 +0000
@@ -17,9 +17,7 @@
 # su -c 'yum install -y libtool libxml2 libxml2-devel pkgconfig \
 # lapack-devel blas-devel gcc gcc-c++ gcc-gfortran subversion \
 # zlib-devel openssl-devel glib2-devel bzip2-devel libXt-devel \
-# libX11-devel bzr scons numpy boost-devel swig openmpi-devel \
-# python26-devel gmp-devel suitesparse-devel cmake cln-devel \
-# ginac-devel vtk-devel vtk-python' 
+# libX11-devel' 
 #
 # Also, if you're having difficulty building SuiteSparse, you may need
 # to run (as root):
@@ -29,36 +27,45 @@
 
 # Platform specific variables
 default UMFPACK_DIR=/usr
-#default PYTHONVER=2.6
+default PYTHONVER=2.7
 default PETSC_ARCH=linux-gnu-cxx-op
 default GMP_DIR=/usr
 default SCOTCH_ARCH=pc_linux2
 
-#alias python='python2.6'
-export OMPI_DIR=/usr/lib64/openmpi/1.4-gcc
-export PATH=${OMPI_DIR}/bin:${PATH}
-echo ${PATH}
-export LD_LIBRARY_PATH=${OMPI_DIR}/lib:${LD_LIBRARY_PATH}
-
 # Define the packages this platform needs
 PACKAGES=(
+python
+numpy
+scipy
+ipython
+scientificpython
+sympy
+matplotlib
+cmake
+scons
+bazaar
+vtk
+swig
+openmpi
+boost
+suitesparsewithmetis
 parmetis
-# trilinos
+trilinos
 petsc
 slepc
+cppunit
 armadillo
 # swiginac
 mtl
 scotch
 cgal
-scientificpython
 fiat
-ferari
+#ferari
 ufc
 ufl 
 ffc
-# syfi
+## syfi
 viper
 instant
 dolfin
-)
+


Follow ups