Installation of Salome 7.4.0. in Linux

Discussion about building and installing Elmer
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Installation of Salome 7.4.0. in Linux

Post by annier »

Running Salome 8.3.0 in Ubuntu 16.04 with anaconda3 and miniconda3 installed:
When anaconda and miniconda are installed in Ubuntu 16.04 with Salome 8.3.0 installed, the environmental variables default provided by anaconda installer might interfere the loading or initialization of Salome , and the error results as follow:

Code: Select all

File "/home/user/salome_version8300/SALOME-8.3.0-UB16.04/./salome", line 26
    except Exception, e:
                    ^
SyntaxError: invalid syntax
Inorder to solve the abovementioned issue, the following workout must be done in the bashrc file
1.

Code: Select all

# added by Miniconda3 installer
#export PATH="/home/user/miniconda3/bin:$PATH"
#modification made to use both  Salome 8.3.0 and miniconda3 related applications 
export PATH="$PATH:/home/user/miniconda3/bin"

# added by Anaconda3 installer
#export PATH="/home/user/anaconda3/bin:$PATH"
#modification to use both  Salome 8.3.0 and anaconda3 related applications 
export PATH="$PATH:/home/user/anaconda3/bin"
Reference: https://stackoverflow.com/questions/246 ... the-termin

2.
or alternatively, alias can be utilized to conda applicationas as provided or given in
http://agilesofttech.com/how-to-activat ... gh-python/

Code: Select all

# added by Miniconda3 installer
#export PATH="/home/user/miniconda3/bin:$PATH"
#use alias 
alias myminiconda='export PATH="/home/user/miniconda3/bin:$PATH"'

# added by Anaconda3 installer
#export PATH="/home/user/anaconda3/bin:$PATH"
#use alias 
alias myanaconda='export PATH="/home/user/anaconda3/bin:$PATH"'
To activate miniconda3 and anaconda3, the following commands must be typed respectively at terminal:
#For miniconda3

Code: Select all

$ myminiconda
For anaconda3

Code: Select all

$ myanaconda
yours sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Installation of Salome 7.4.0. in Linux

Post by annier »

For running of Salome in Ubuntu 18.04, the universal binaries can be downloaded and installed.
References:
1. https://www.salome-platform.org/forum/f ... 33331/view
2. Universal binaries for linux section in https://www.salome-platform.org/downloa ... nt-version (currently Salome 8.5.0)


Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Post Reply