Arch Linux Binary Installer for Salome

Mesh generators, CAD programs, and other tools

Arch Linux Binary Installer for Salome

Postby CrocoDuck » 15 Jul 2016, 18:06

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!
Posts: 40
Joined: 12 May 2016, 13:15

Re: Arch Linux Binary Installer for Salome

Postby mzenker » 18 Jul 2016, 10:38

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.

Posts: 1578
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Arch Linux Binary Installer for Salome

Postby hauptmech » 10 Nov 2016, 01:07

Thanks for posting this CrocoDuck!
Posts: 8
Joined: 06 Nov 2016, 07:17

Return to External tools

Who is online

Users browsing this forum: No registered users and 1 guest