Installation failed because of libgdal.so.30

Hello,

I use Ubuntu 22.10 via a virtual machine VMware.
I have follow the installation guide, all is ok when I check the system with

./sat/sat config SALOME-9.9.0-native --check_system

But I have an error message when running ./salome or ./mesa_salome

julien@julien-virtual-machine:~/salome/SALOME-9.9.0-native-UB22.04-SRC-22b4348cf247e9a72539dca3b6f2d65f/SALOME-9.9.0-native-UB22.04-SRC$ ./mesa_salome
SALOME_Session_Server_No_Server: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No such file or directory

I see that I have a libgal.so.31, libgal.so.31.0.1 and ligdal.so
in my system installed in usr/lib/x86_64-linux-gnu but no libgdal.30.

What can I do ?

Julien

Hello,

Nobody has meet this issue?
I am not really experienced in Linux OS. Maybe the issue is not related to Salome, just a variable definition, but I don’t know how to solve this.

Julien

it seems that the version of gdal differs between 22.04 and 22.10 which uses libgdal31.
you can:

  • compile again SALOME on this platform and share your experience.
  • see if with apt, you cannot simply uninstall gdal31 and install gdal30
  • try a quick but dirty trick and see if it helps

Easiest would be to try second approach, but if you choose the third approach, here is what you need to do:

mkdir -p SALOME-9.9.0-native-UB22.04-SRC/BINARIES-UB22.04/gdal/lib
cd  SALOME-9.9.0-native-UB22.04-SRC/BINARIES-UB22.04/gdal/lib
ln -sf /usr/lib/libgdal.so.31 libgdal.so.30

Then edit file mesa_salome and right after:
context.setVariable(r"LD_LIBRARY_PATH", out_dir_Path + r"/BINARIES-UB22.04/CAS/lib", overwrite=True)
add:
context.addToLdLibraryPath(out_dir_Path + r"/BINARIES-UB22.04/gdal/lib")

regards.

Hi Julien,

you can also try to use the version Linux Universal which comes with all the required librairies.

Christophe

Thank you for your answer.
I switch for the Linux unversal version