Page 1 of 2
Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Sat Mar 19, 2016 9:15 pm
by Oliveira77
Hello all!
I'm installing the CFDSTUDY module of the version 4.0.4 of the code_saturne with the salome-meca 2015.1. However, in the step 'make install' occurs a problem and the installation is interrupted. Can someone help me?
The installation process is only >>configure <options> >>make >>make install?
I attached my config.log for more details.
Thanks!
Flávio
Re: Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Sun Mar 20, 2016 2:38 am
by Yvan Fournier
Hello,
The "configure" stage seems to be OK, according to your config.log (exits with value 0, meaning no error).
Do you have the error at the "make" stage ? If so, could you post your error message ?
Which system are you using (some Ubuntu version by the config.log, but which one) ?
Regards,
Yvan
Re: Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Mon Mar 21, 2016 2:55 pm
by Oliveira77
Thanks, Yvan!
The error occurs in the "make install" stage.
I'm using the LinuxMint 17 (qiana) version MATE 1.8.1.
The error message in terminal:
Making install in .
make[1]: Entrando no diretório `/home/flavio/saturne/4.0.4'
make[2]: Entrando no diretório `/home/flavio/saturne/4.0.4'
test -z "/home/flavio/saturne/4.0.4/bin" || /bin/mkdir -p "/home/flavio/saturne/4.0.4/bin"
/usr/bin/install -c bin/code_saturne '/home/flavio/saturne/4.0.4/bin'
/usr/bin/install: “bin/code_saturne” e “/home/flavio/saturne/4.0.4/bin/code_saturne” são o mesmo arquivo
make[2]: ** [install-nodist_binSCRIPTS] Erro 1
make[2]: Saindo do diretório `/home/flavio/saturne/4.0.4'
make[1]: ** [install-am] Erro 2
make[1]: Saindo do diretório `/home/flavio/saturne/4.0.4'
make: ** [install-recursive] Erro 1
Thanks,
Flávio
Re: Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Mon Mar 21, 2016 5:17 pm
by Yvan Fournier
Hello,
Could you translate ?
/usr/bin/install -c bin/code_saturne '/home/flavio/saturne/4.0.4/bin'
/usr/bin/install: “bin/code_saturne” e “/home/flavio/saturne/4.0.4/bin/code_saturne” são o mesmo arquivo
Or type "unset LANG" than run "make install" again to have the message in English.
Best regards,
Yvan
Re: Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Mon Mar 21, 2016 6:57 pm
by Oliveira77
Hello,
The message in English:
Making install in .
make[1]: Entering directory `/home/flavio/saturne/4.0.4'
make[2]: Entering directory `/home/flavio/saturne/4.0.4'
test -z "/home/flavio/saturne/4.0.4/bin" || /bin/mkdir -p "/home/flavio/saturne/4.0.4/bin"
/usr/bin/install -c bin/code_saturne '/home/flavio/saturne/4.0.4/bin'
/usr/bin/install: 'bin/code_saturne' and '/home/flavio/saturne/4.0.4/bin/code_saturne' are the same file
make[2]: *** [install-nodist_binSCRIPTS] Error 1
make[2]: Leaving directory `/home/flavio/saturne/4.0.4'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/flavio/saturne/4.0.4'
make: *** [install-recursive] Error 1
Note: I have a version 3.3.2 of code_saturne installed in usr/local.
Best regards,
Flávio
Re: Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Mon Mar 21, 2016 10:35 pm
by Yvan Fournier
Hello,
You need to use a different directory building and installation prefix, so you simply need to purge your build directory (/home/flavio/saturne/4.0.4) and configure/build from another directory (foa example /home/flavio/saturne/4.0.4_build).
Regards,
Yvan
Re: Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Tue Mar 22, 2016 2:25 pm
by Oliveira77
Hello Yvan,
Thank you for your attention!
I think which the installation is OK, no error message appears. After the installation (after "make install"), I created a file /home/flavio/salome/appli_V2015_1/env.d/configSaturne.sh with the lines:
#!/bin/bash
export CFDSTUDY_ROOT_DIR="/home/flavio/saturne/4.0.4"
cspath=$CFDSTUDY_ROOT_DIR/bin
export PATH=$cspath:$PATH
export PYTHONPATH=$CFDSTUDY_ROOT_DIR/lib/python2.7/site-packages/code_saturne:$PYTHONPATH
And I added CFDSTUDY to the lines of SalomeApp.xml. When I run Salome, the CFDSTUDY appears in the main menu, but when I try to open a case present in my computer, the GUI of the code_saturne no appears. These steps after installation (after "make install") are correct and necessary? I need to do other steps?
Thank you!
Flávio
Re: Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Tue Mar 22, 2016 4:46 pm
by Yvan Fournier
Hello,
I am not quite sure about other things you need to do to add Code_Saturne to the main SALOME Application.
To use a "local" application, you can run "code_saturne salome".
Regards,
Yvan
Re: Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Thu Mar 24, 2016 1:10 am
by Oliveira77
Hello, Yvan.
Finally, I can incorporate the code_saturne in salome-meca, installing the code_saturne in the default directory. The GUI appears and is possible to define all parameters, but in the solve process occurs the error:
/usr/local/libexec/code_saturne/cs_solver: /home/flavio/salome/V2015_1/prerequisites/debianForSalome/lib/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /usr/local/lib/libsaturne.so.0)
Do you can help me?
Thank you very much!
Flávio
Re: Installation code_saturne 4.0.4 with salome-meca 2015.1
Posted: Thu Mar 24, 2016 2:03 am
by Yvan Fournier
Hello,
Yes, we have already encountered this type of issue. I If I remember well, the problem is that SALOME and your OS do not use the same version of libgfortran. If SALOME MECA includes the Fortran compiler, you might choose to use that version when configuring
Code_Saturne, using "FC=<path_to_salome_gfortran>".
Another solution is to force
Code_Saturne to use the system gfortran, using the fact that a hard-coded runpath has higher priority than the LD_LIBRARY_PATH set by SALOME.
As the path to system gfortran libraries on Ubuntu is probably /usr/lib, try to add:
LDFLAGS="-Wl,-rpath Wl,/usr/lib"
to your configure line for
Code_Saturne.
Regards,
Yvan