Page 1 of 1

Arch Linux Binary Installer for Salome

Posted: 15 Jul 2016, 18:06
by CrocoDuck
Hey there!

Salome has pretty cool packages on the AUR. However, they are very time consuming to build and there are few quirks (the AUR version crashes on my machine when trying to generate second order meshes). 64 bit universal Linux binaries are released by Salome people, however the install procedure is not as simple as they describe on Arch. I wrote a simple script based on this post (mzenker is that you?). Just download the *.run file and place it in a folder with the script. It should be able to install Salome on your home directory:

Code: Select all


# Helper Script to install Salome on Arch Linux. Requires python2.7 (provided by the package python2).

FILE=$(ls *.run | grep Salome)

# Ensure that the file has been downloaded:
if [ -f $FILE ]; then
    echo "Unversal Binaries Installer in place"
    echo "ERROR: Unversal Binaries Installer not in place. Are you sure there is only a *.run file?"
    exit 1

# Ensure Permissions:
chmod +x $FILE

# Extrapolate Version:
RAWVER=$(echo $FILE | grep -o -P '(?<=Salome-V).*(?') # X_Y_Z
VER=${RAWVER//_/.} # X.Y.Z

# Set Environment Variables:
export SALOMEDIR="/home/${USER}/Salome-${COLVER}/Salome-V${RAWVER}-public"
export ROOT_SALOME="/home/${USER}/Salome-${COLVER}/Salome-V${RAWVER}-public"
export DEFAULTAPPLIDIR="/home/${USER}/Salome-${COLVER}/appli_V${RAWVER}"

# Run installer:
echo "Installing in /home/${USER}..."
./"${FILE}" -v -D -t /home/"${USER}"/Salome-"${COLVER}"

# Create a launcher:
echo "Puttin in place the Desktop Launcher: "

cat <<EOF >/home/"${USER}"/Salome-"${COLVER}"/Salome-"${COLVER}".desktop
[Desktop Entry]
Comment='an open-source software that provides a generic platform for Pre- and Post-Processing for numerical simulation'
Exec=python2.7 /home/${USER}/Salome-${COLVER}/appli_V${RAWVER}/salome

# If the launcher does not work, open /home/$USER/Salome-$COLVER/appli_V$RAWVER/runAppli, find the line export export APPLI=`${APPLI_HOME}/`, comment it and write below: export APPLI="/Salome-$COLVER/appli_V$RAWVER". Then, execute runApply

You will find a Launcher in the same folder. I will probably try to integrate this in a PKGBUILD. For the time being I post it here as I bet it could be useful to other Linux users as well.

Hope it helps!

Re: Arch Linux Binary Installer for Salome

Posted: 18 Jul 2016, 10:38
by mzenker
CrocoDuck wrote: (mzenker is that you?).
No, my name is not Matthias Schmidt... ;)
Anyway, I have to work under Windoze here in the company (Linux Mint at home), so I don't know anything on ArchLinux.


Re: Arch Linux Binary Installer for Salome

Posted: 10 Nov 2016, 01:07
by hauptmech
Thanks for posting this CrocoDuck!

Re: Arch Linux Binary Installer for Salome

Posted: 08 Jun 2019, 00:12
by CrocoDuck

The script above has been broken for a long time. I finally fixed it, and I decided I will try to maintain it. It is now on GitHub: ... -installer

By the way, this page was essential to make it work again: