I did many attempts to build CS6.0.2 with Salome ( in my machine, I installed Salome-Meca2019.0.3, SALOME-9.3.0-UB18.04-SRC and SALOME-9.4.0-UB18.04-SRC; all are working properly), using in turn each of Salome installed, but without any fortune.
Reading around this forum, where I found many different experiences, so I decided to try with newest CS6.1.0 and, finally, I was able to join together cs6.1.0 with SALOME-9.4.0-UB18.04-SRC.
I decided to use the Ubuntu version of Salome because SalomeMeca.19.0.3 Universal Version isn’t so Universal!.
For the moment, for me is enough to have cs6.1 embedded in Salome9.4. In a future, I will try with Code_Aster too.
I needed some preliminary steps, but I have to say that a complete installation of cs6.0.2 was already completed (without Salome) and it is working fine, so, all of prerequisites are already installed in my Ubuntu System, residing in /opt directory.
Another general annotation: because my /opt directory has 777 rights, it is not requested to use 'sudo'.
Step 1: I started using a Salome Shell, as suggested in various posts.
Step 2: I launched a configuration step with these options, using these commands:
Code: Select all
>cd /home/pici/Scaricati/CodeSaturne/code_saturne-6.1.0
>mkdir code_saturne-6.1.0_build
>cd code_saturne-6.1.0_build
>mkdir prod_2
>cd prod_2
>source configura.sh
Code: Select all
SRC_PATH=/home/pici/Scaricati/CodeSaturne
INSTALL_DIR=/opt/Code_Saturne/6.1.0
CS_OPT=/opt
#
#
$SRC_PATH/code_saturne-6.1.0/configure --disable-option-checking \
--prefix=/opt/Code_Saturne/6.1.0 \
--with-salome=/opt/SALOME-9.4.0-UB18.04-SRC \
--with-hdf5=/opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/hdf5 \
--with-cgns=/opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/cgns \
--with-med=/opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/medfile \
--with-scotch=/opt/scotch-6.0.6/arch/Linux_x86_64 \
--with-metis=/opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/metis \
--with-parmetis=/opt/parmetis-4.0.3/arch/Linux_x86_64 \
--with-salome-gui=/opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/GUI
Step 3: make : anything was right.
Step 4: make install: it exited with some error, just at last part of the execution.
The error was very strange: somewhere there is a call to a python executable that isn’t in /opt/SALOME-9.4.0-UB18.04-SRC directory, while ‘make install’ is searching for a directory named:
/volatile/salome/jenkins/workspace/Salome9_UB18/SALOME-9.4.0-UB18.04/INSTALL/Python/bin/python
In effect, I don’t have this path in my machine, but perhaps it exists in mr. Jenkins machine!

The solution is easy to say (but a little bit hard to do): I located any occurrence of this directory name in /opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04 source code and I changed it redirecting installation to the one of the correct Python path.
Step 5: again make install: now all is perfect.
Step 6: first test: in a new salome shell window, I wrote:
Code: Select all
>/opt/Code_Saturne/6.1.0/bin/salome_cfd
I hope to be of help for other users.
Best Regards, many thanks and ciao
Piero
Attached files:
/opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/omniORB/bin/omniidl (modified)
/opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/PyQt/bin/pylupdate5 (modified)
/opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/PyQt/bin/pyrcc5 (modified)
/opt/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/PyQt/bin/pyuic5 (modified)