Installation code_saturne 4.0.4 with salome-meca 2015.1

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Oliveira77
Posts: 26
Joined: Fri Feb 27, 2015 10:15 pm

Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Attachments
config.log
(218.69 KiB) Downloaded 310 times
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Oliveira77
Posts: 26
Joined: Fri Feb 27, 2015 10:15 pm

Re: Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Oliveira77
Posts: 26
Joined: Fri Feb 27, 2015 10:15 pm

Re: Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Oliveira77
Posts: 26
Joined: Fri Feb 27, 2015 10:15 pm

Re: Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Oliveira77
Posts: 26
Joined: Fri Feb 27, 2015 10:15 pm

Re: Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Installation code_saturne 4.0.4 with salome-meca 2015.1

Post 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
Post Reply