--
TWikiGuest - 21 Oct 2008
%CODE{ lang="bash" num="1" }%
# The undocumented switch --disable-aio is used as was suggested by
the developers (bug report #2524 sent to the "mpich2-maint@mcs.anl.gov")
# verify the version of compilers and that they work well
# gfortran
which gfortran
gfortran --version
export GFORTRAN="/usr/local/gfortran" ; echo $GFORTRAN
echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$GFORTRAN/lib ; echo $LD_LIBRARY_PATH
# simple test
cd /usr/local/paquetes/tests
gfortran conftest.f90 -o conftest.exe
conftest.exe
# environment setting
export F77=gfortran ; echo $F77
export F90=gfortran ; echo $F90
export
F90FLAGS= ; echo $F90FLAGS
# package version
export NRO="1.0.7"
export PREFIJO=/usr/local/mpich2/$NRO ; echo $PREFIJO
export FAB=/usr/local/paquetes/mpich2-install/${NRO} ; echo $FAB
# instalacion por primera vez
cd $FAB ; pwd
tar -zxvf mpich2-${NRO}.tar.gz
mv mpich2-${NRO} fabrica
chown -R root fabrica
chgrp -R users fabrica
chmod -R 775 fabrica
cd $FAB/fabrica ; pwd
make clean
# construction
echo $FAB ; echo $PREFIJO ; pwd
./configure --enable-sharedlibs=gcc --enable-fast --enable-mpe
--enable-f77 --enable-f90 --disable-aio
--prefix=$PREFIJO 2>&1 | tee configure.log
make 2>&1 | tee make.log
make install 2>&1 | tee install.log
# adding the symbolic link in prefix/lib such as
cd $PREFIJO/lib ; pwd
ln -s $PREFIJO/lib/libmpich.a libpmpich.a
# some tests as "pepe" user
su -l pepe
which mpdboot
mpdboot -n 4 -f ~/mpd.hosts
mpdtrace
mpdringtest
echo $LD_LIBRARY_PATH
export FAB=/usr/local/paquetes/mpich2-install/1.0.7/fabrica ; echo $FAB
cd $FAB ; pwd
make testing 2>&1 | tee make_testing.log
exit
##
%ENDCODE%