Installation of Code_Saturne, Salome-meca and Syrthes
Posted: Tue Sep 15, 2015 2:43 pm
Hi everyone,
I know that this is one typical topic of this forum but I have troubles installing code_saturne-4.0.2 with Salome-meca V2015-2 and Syrthes4.3.0.
I work on the Ubuntu 14.04.1 LTS.
First, I installed Salome_meca with the SALOME-MECA-2015.2-LGPL.run and the installation did not return any error information.
I then tried to install Syrthes ang got somme errors concerning med and metis library. You can find attached the config file and the ERREUR.log file. Code_Saturne would be built under /home/jause/CS_build
Anyway, I tried to install code_saturne : compile works nicely.
The configure command is :
I installed in /usr/local the 6.0.4 version of scotch because the installation was not working with the scotch-5.1.1 of the Salome meca directory and with the scotch-6.0.2 of syrthes.
But I get this error :
Can someone help me?
Thanks!
I join the config.log of the compile step.
Regards,
CJL
I know that this is one typical topic of this forum but I have troubles installing code_saturne-4.0.2 with Salome-meca V2015-2 and Syrthes4.3.0.
I work on the Ubuntu 14.04.1 LTS.
First, I installed Salome_meca with the SALOME-MECA-2015.2-LGPL.run and the installation did not return any error information.
I then tried to install Syrthes ang got somme errors concerning med and metis library. You can find attached the config file and the ERREUR.log file. Code_Saturne would be built under /home/jause/CS_build
Anyway, I tried to install code_saturne : compile works nicely.
The configure command is :
Code: Select all
../Downloads/code_saturne-4.0.2/configure \
PYTHON=python2.7 \
--with-mpi=/usr/bin \
--with-scotch=/usr/local \
--with-hdf5=/home/jause/salome_meca/V2015_2/prerequisites/Hdf5-1810 \
--with-med=/home/jause/syrthes4.3.0/extern-libraries/opt/med-3.0.7/arch/Linux_x86_64 \
--with-cgns=/home/jause/salome_meca/V2015_2/prerequisites/Cgnslib-3134 \
--with-libxml2=/home/jause/salome_meca/V2015_2/prerequisites/Libxml2-290 \
--without-salome-med
But I get this error :
Code: Select all
libtool: link: gcc -shared .libs/cs_solver.o -Wl,--whole-archive ../../src/fvm/.libs/libfvm_filters.a ../../src/base/.libs/libcsbase.a ../../src/base/.libs/libcscore.a ../../src/base/.libs/libcsrenumber.a ../../src/pprt/.libs/libcspprt.a ../../src/alge/.libs/libcsalge.a ../../src/mesh/.libs/libcsmesh.a ../../src/mesh/.libs/libcspartition.a ../../src/turb/.libs/libcsturb.a ../../src/atmo/.libs/libcsatmo.a ../../src/cfbl/.libs/libcscfbl.a ../../src/cogz/.libs/libcscogz.a ../../src/comb/.libs/libcscomb.a ../../src/ctwr/.libs/libcsctwr.a ../../src/darc/.libs/libcsdarc.a ../../src/elec/.libs/libcselec.a ../../src/gui/.libs/libcsgui.a ../../src/lagr/.libs/libcslagr.a ../../src/rayt/.libs/libcsrayt.a ../../src/user/.libs/libcsuser.a ../../src/.libs/libcsmodules.a ../../src/mei/.libs/libmei.a ../../src/bft/.libs/libbft.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/home/jause/CS_build/libple/src/.libs -Wl,-rpath -Wl,/home/jause/syrthes4.3.0/extern-libraries/opt/med-3.0.7/arch/Linux_x86_64/lib -Wl,-rpath -Wl,/home/jause/syrthes4.3.0/extern-libraries/opt/med-3.0.7/arch/Linux_x86_64/lib -Wl,-rpath -Wl,/home/jause/salome_meca/V2015_2/prerequisites/Cgnslib-3134/lib -Wl,-rpath -Wl,/home/jause/salome_meca/V2015_2/prerequisites/Hdf5-1810/lib -Wl,-rpath -Wl,/usr/local/lib -L/home/jause/salome_meca/V2015_2/prerequisites/Cgnslib-3134/lib -L/home/jause/syrthes4.3.0/extern-libraries/opt/med-3.0.7/arch/Linux_x86_64/lib -L/home/jause/salome_meca/V2015_2/prerequisites/Hdf5-1810/lib -L/usr/bin/lib ../../libple/src/.libs/libple.so -lcgns /home/jause/syrthes4.3.0/extern-libraries/opt/med-3.0.7/arch/Linux_x86_64/lib/libmedC.so -lhdf5 -L/usr/local/lib -lptscotch -lscotch -lmpi -L/home/jause/salome_meca/V2015_2/prerequisites/Libxml2-290/lib -lxml2 -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lgfortran -lm -lquadmath -lnsl -lz -ldl -pthread -Wl,-export-dynamic -pthread -Wl,-soname -Wl,libsaturne.so.0 -o .libs/libsaturne.so.0.0.0
/usr/bin/ld: /usr/local/lib/libptscotch.a(library_dgraph.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libptscotch.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[3]: *** [libsaturne.la] Error 1
make[3]: Leaving directory `/home/jause/CS_build/src/apps'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jause/CS_build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jause/CS_build'
make: *** [all] Error 2
Thanks!
I join the config.log of the compile step.
Regards,
CJL