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
#!/bin/bash
# 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"
else
echo "ERROR: Unversal Binaries Installer not in place. Are you sure there is only a *.run file?"
exit 1
fi
# Ensure Permissions:
chmod +x $FILE
# Extrapolate Version:
RAWVER=$(echo $FILE | grep -o -P '(?<=Salome-V).*(?=-public.run)') # X_Y_Z
COLVER=${RAWVER//_/} # XYZ
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]
Encoding=UTF-8
Type=Application
Name=salome-${COLVER}
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
Icon=/home/${USER}/Salome-${COLVER}/Salome-V${RAWVER}-public/icon.png
Terminal=false
StartupNotify=false
Categories=Education;Science;Math;;
EOF
#TIP:
# If the launcher does not work, open /home/$USER/Salome-$COLVER/appli_V$RAWVER/runAppli, find the line export export APPLI=`${APPLI_HOME}/getAppliPath.py`, comment it and write below: export APPLI="/Salome-$COLVER/appli_V$RAWVER". Then, execute runApply
echo "ALL FINISHED!"
Hope it helps!