SALOME 9.9 archive for Ubuntu 22

We have received many requests for a SALOME 9.9 archive for Ubuntu 22.
Following the porting of SALOME to this Linux distribution, we have produced an archive, which we make available on our website : https://www.salome-platform.org/?page_id=145
Please note however that since this version was produced afterwards, it does not have the same level of qualification.
We would be grateful if you could report any problems you may encounter

2 Likes

The archive is actualy not usuable.
The .so from omniOrb package are rw only by root!!
ex:
/opt/SALOME-9.9.0-UB22.04/INSTALL/omniORB/lib/python3.10/site-packages/_omnipy.cpython-310-x86_64-linux-gnu.so: cannot open shared object file: Permission denied

Even fixing the permissions does not help much:
salome
(SALOME_Session_Server_No_Server) launch failed: 13 (Permission denied)

Hi,
i did not manage to reproduce the reported issue:

wget https://files.salome-platform.org/Salome/Salome9.9.0/SALOME-9.9.0-native-UB22.04-SRC-22b4348cf247e9a72539dca3b6f2d65f.tar.gz
tar zxf SALOME-9.9.0-native-UB22.04-SRC-22b4348cf247e9a72539dca3b6f2d65f.tar.gz
ls -ltr /home/nitawa/SALOME-9.9.0-native-UB22.04-SRC/BINARIES-UB22.04/omniORB/lib/python3.10/site-packages
total 4420
-rw-r-----+ 1 nitawa nitawa  466392 sept.  7 17:23 _omniidl.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      44 sept.  7 17:23 _omniidl.cpython-310-x86_64-linux-gnu.so.4 -> _omniidl.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      42 sept.  7 17:23 _omniidl.cpython-310-x86_64-linux-gnu.so -> _omniidl.cpython-310-x86_64-linux-gnu.so.4
drwxrwx---+ 3 nitawa nitawa    4096 sept.  7 17:23 omniidl
-rw-r-----+ 1 nitawa nitawa  166072 sept.  7 17:24 _omniZIOP.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      45 sept.  7 17:24 _omniZIOP.cpython-310-x86_64-linux-gnu.so.4 -> _omniZIOP.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      43 sept.  7 17:24 _omniZIOP.cpython-310-x86_64-linux-gnu.so -> _omniZIOP.cpython-310-x86_64-linux-gnu.so.4
-rw-r-----+ 1 nitawa nitawa 3671496 sept.  7 17:24 _omnipy.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      43 sept.  7 17:24 _omnipy.cpython-310-x86_64-linux-gnu.so.4 -> _omnipy.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      41 sept.  7 17:24 _omnipy.cpython-310-x86_64-linux-gnu.so -> _omnipy.cpython-310-x86_64-linux-gnu.so.4
drwxrwx---+ 4 nitawa nitawa    4096 sept.  7 17:24 omniidl_be
-rw-r-----+ 1 nitawa nitawa  108632 sept.  7 17:24 _omniConnMgmt.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      49 sept.  7 17:24 _omniConnMgmt.cpython-310-x86_64-linux-gnu.so.4 -> _omniConnMgmt.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      47 sept.  7 17:24 _omniConnMgmt.cpython-310-x86_64-linux-gnu.so -> _omniConnMgmt.cpython-310-x86_64-linux-gnu.so.4
-rw-r-----+ 1 nitawa nitawa   36448 sept.  7 17:24 _omnicodesets.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      49 sept.  7 17:24 _omnicodesets.cpython-310-x86_64-linux-gnu.so.4 -> _omnicodesets.cpython-310-x86_64-linux-gnu.so.4.2
lrwxrwxrwx  1 nitawa nitawa      47 sept.  7 17:24 _omnicodesets.cpython-310-x86_64-linux-gnu.so -> _omnicodesets.cpython-310-x86_64-linux-gnu.so.4
-rw-r-----+ 1 nitawa nitawa      12 sept.  7 17:24 omniORB.pth
-rw-r-----+ 1 nitawa nitawa     160 sept.  7 17:24 PortableServer.py
-rw-r-----+ 1 nitawa nitawa     185 sept.  7 17:24 PortableServer__POA.py
drwxrwx---+ 3 nitawa nitawa    4096 sept.  7 17:24 CosNaming__POA
drwxrwx---+ 3 nitawa nitawa    4096 sept.  7 17:24 CosNaming
-rw-r-----+ 1 nitawa nitawa     115 sept.  7 17:24 CORBA.py
drwxrwx---+ 4 nitawa nitawa    4096 sept. 19 14:02 omniORB
-rw-r-----+ 1 nitawa nitawa   26209 sept. 19 14:02 CosNaming_idl.py
drwxrwx---+ 2 nitawa nitawa    4096 sept. 19 14:15 __pycache__

My bad. I build a docker image using:

&& cd SALOME-${VERSION}-${PLATFORM} \
&& ./install_bin.sh \
&& rm -rf BINARIES-${PLATFORM} \
&& perl -pi -e "s|BINARIES-${PLATFORM}|INSTALL|g" salome \
&& chown -R root:root . \
&& find /opt/SALOME-${VERSION}-${PLATFORM}/INSTALL/ -type d | xargs chmod go+rx \
&& find /opt/SALOME-${VERSION}-${PLATFORM}/INSTALL/ -name \*.py | xargs chmod go+r \

But still, it has worked smoothly for ub20.04 archive

It works fine if I install it as a “normal” user instead of user default root account in Dockerfile.

Why MeshGems is not 2.14-4 as for Ub20.04?

The reason is a license issue we had at the time we generated this archive.
This problem is solved now, we will switch back to 2.14-4 for salome 9.10
Nicolas

I still have a question regarding the installation.
If I want to install UB22.04 as root for salome 9.9.0 to be used on a server, let’s say.
How shall I proceed?

let me try to reproduce your issue on a docker on which I don’t map uid/gid but as root instead and get back to you.

for info:

    && perl -pi -e "s|BINARIES-${PLATFORM}|INSTALL|g" salome \
    && find /opt/SALOME-${VERSION}-${PLATFORM}/INSTALL/ -type d | xargs chmod go+rx \
    && find /opt/SALOME-${VERSION}-${PLATFORM}/INSTALL/ -name \*.py | xargs chmod go+r \
    && find /opt/SALOME-${VERSION}-${PLATFORM}/ -type f -perm 640 | xargs sudo chmod o+r \
    && find /opt/SALOME-${VERSION}-${PLATFORM}/ -type d -perm 700 | xargs chmod go+rx \
    && find /opt/SALOME-${VERSION}-${PLATFORM}/ -type f -perm 700 | xargs chmod go+r \    
    && if [ -f INSTALL/KERNEL/share/salome/resources/kernel/Anita*.ttf ]; then chmod o+r /opt/SALOME-${VERSION}-${PLATFORM}/INSTALL/KERNEL/share/salome/resources/kernel/Anita*.ttf; fi \
    && find /opt/SALOME-${VERSION}-${PLATFORM}/ -type f -perm 750 | xargs sudo chmod o+rx \
    && if [ -d INSTALL/SALOME/bin/salome/test/Testing/Temporary ]; then chmod go+w INSTALL/SALOME/bin/salome/test/Testing/Temporary; fi \

seems to work.

At least salome starts

I guess there is no need for me to try to investigate further since you resolved the issue on your side.
cheers.

It will be great to install the archive without having to bother for permissions
Could you fix the install-bin.sh so that to fix the permissions?

For the record:
sat config SALOME-9.9.0-native --check_system
missing run time dependencies : … libtbb2

On Ub22.04 it should be libtbb12 instead of libtbb2
You should update PROJECT/products/tbb.pyconf

1 Like

thanks for reporting about this libtbb2 issue. It will be fixed in next release (salome_system.pyconf and tbb.pyconf configuration files will be updated)

1 Like