Personal tools
You are here: Home Forum Install & build How to install Salome / Salome installation on Linux

How to install Salome / Salome installation on Linux

Up to Install & build

Re: How to install Salome / Salome installation on Linux

Posted by William Tougeron at July 17. 2014

Hello everybody,

I would like to make a general answer to the very common question from Linux beginners: How to install Salome on Linux?

Here are "step by step" and detailed instructions.

IMPORTANT: all these actions should NOT be made as root.

Best regards,

William

 

1-Install Wizard Process ( deprecated since 7.6.0 - Site Administrator )

Using the Install Wizard is the classical way to install Salome. In case of failure, the user can then try to use the universal binaries instead (see the next section).

1- First, go to the download page and select the file to download at the top of the page (under >> Binaries for officially supported Linux platforms (Installation Wizard):) according to your Linux distribution.

2- Once downloaded, open a Linux terminal/console and go where this file is (using the cd command).

3- Extract the file using the following command: (adapt the following command lines to your case)

tar -xvf InstallWizard_7.4.0_Ubuntu_13.10_64bit.tar.gz

4- Go inside the extracted folder and launch the runInstall file:

cd InstallWizard_7.4.0_Ubuntu_13.10_64bit

./runInstall

NB: If you get the error: bash: ./SOME_FILE: Permission denied, make this file executable by typing:

chmod +x ./SOME_FILE

and try again. 

5- The Install Wizard appears. Click on Next, letting the default setup. At a certain point, it can be necessary to select a "installation platform". In this case, select the only one which is available and go on.

Click on Start and wait for the end of the installation process.

At the end, you can maybe see an error message saying some libraries are absent. This does not mean that Salome won't work properly. You can note somewhere the name of these libraries in case you really need them in the future, then close the error message.

Click on Next and Finish.

6- To launch Salome, go inside the Salome folder:

cd ~/salome_7.4.0

source the env_product.sh file:

source env_products.sh

and execute the runSalome command:

runSalome

7- To speed up the launch of Salome, the user can create a custom script. There are many ways to do it. Here is one possibility:

a) Create a bin folder in the home directory:

mkdir ~/bin

b) Create a script called salome and launching Salome:

echo -e '#!/bin/bash\n. ~/salome_7.4.0/env_products.sh\nrunSalome $*\nexit 0' > ~/bin/salome

c) Make it executable:

chmod +x ~/bin/salome

d) Declare that the bin folder contains terminal commands by adding its path to the $PATH variable in the .bashrc file which is read each time a new terminal is opened:

echo -e '\nexport PATH="$PATH:$HOME/bin/"' >> ~/.bashrc

Then, the user can open a new terminal and launch Salome by typing directly:

salome


2- Universal Binaries Process

If the Install Wizard method failed, the user can try to use universal binaries.

1- Download it from the the download page. (under >> Universal binaries for Linux:).

2- Once downloaded, open a Linux terminal and go were this file is (using the cd command).

3- Run the downloaded file:

./Salome-V7_4_0-LGPL-x86_64.run

NB: If you get the error: bash: ./Salome-V7_4_0-LGPL-x86_64.run: Permission denied, make this file executable by typing:

chmod +x ./Salome-V7_4_0-LGPL-x86_64.run

and try again.

4- Let the default values and press [Enter] until the installation begins.

5- To launch Salome, go to the Salome "appli" folder:

cd ~/salome/appli_V7_4_0

and execute the runAppli file:

./runAppli

6- To speed up the launch of Salome, you can create an alias in your .bashrc file:

echo -e '\nalias salome="~/salome/appli_V7_4_0/runAppli"' >> ~/.bashrc

Then, the user can open a new terminal and launch Salome by typing directly:

salome

Re: How to install Salome / Salome installation on Linux

Posted by jeanpierreaubry at July 18. 2014

hello William

 

good job, that was needed!

 

may i had that creating a launching script

step 7 in 1- Install Wizard Process 

applies as well to 2- Universal Binaries Process

 

may i say also that all these actions should NOT be made as root

as this makes a mess of the omniOrb permissions

(at least to my experience)

 

jean pierre aubry

Re: How to install Salome / Salome installation on Linux

Posted by William Tougeron at July 18. 2014

Yes, Jean-Pierre,

You'r right. Nothing must be done as root !

I thought it was not necessary to mention it explicitly, but maybe it is.

All the best :)

William

Re: How to install Salome / Salome installation on Linux

Posted by Marco Conte at July 25. 2014

Hi,

 

I have a misfunctioning launcing salome:

 

 

linux:~/salome/appli/V7_4_0 # ./runAppli

(gconftool-2:5331): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Error setting value: No D-BUS daemon running


(gconftool-2:5332): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Error setting value: No D-BUS daemon running

runSalome running on linux.site
Searching for a free port for naming service: 2810 2811 2812 - OK
Searching Naming Service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Failed to narrow the root naming context
Traceback (most recent call last):
  File "/root/salome/appli/V7_4_0/bin/salome/runSalome.py", line 677, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/root/salome/appli/V7_4_0/bin/salome/runSalome.py", line 447, in startSalome
    clt=orbmodule.client(args)
  File "/root/salome/Salome-V7_4_0-LGPL-x86_64/modules/KERNEL_V7_4_0/bin/salome/orbmodule.py", line 47, in __init__
    self.initNS(args or {})
  File "/root/salome/Salome-V7_4_0-LGPL-x86_64/modules/KERNEL_V7_4_0/bin/salome/orbmodule.py", line 86, in initNS
    sys.exit(1)
SystemExit: 1


--- Error during Salome launch ---

 

How can I fix it ?

MarcoC

Re: How to install Salome / Salome installation on Linux

Posted by William Tougeron at July 25. 2014

Hello,

 Traceback (most recent call last):
   File "/root/salome/appli/V7_4_0/bin/salome/runSalome.py", line 677, in useSalome

As said at the top of the first post, Salome should not be installed as root.

Best regards,

William

Re: How to install Salome / Salome installation on Linux

Posted by Marco Conte at August 17. 2014

Previously William Tougeron wrote:

Hello,

 Traceback (most recent call last):
   File "/root/salome/appli/V7_4_0/bin/salome/runSalome.py", line 677, in useSalome

As said at the top of the first post, Salome should not be installed as root.

Best regards,

William

 

Hi,

 

I have an other misfunctioning launcing salome:

 

studio@linux:~/salome/appli_V7_4_0> ./runAppli

runSalome running on linux.site

Searching for a free port for naming service: 2810 - OK

Searching Naming Service +Cannot open error log file: /tmp/logs/studio/omniNames_2810/omniNameErrors.log

 

usage: omniNames [-start [<port>]]

                 [-always]

                 [-logdir <directory name>]

                 [-nohostname]

                 [-errlog <file name>]

                 [-ignoreport]

                 [-help]

                 [<omniORB-options>...]

 

Use -start option to start omniNames for the first time.

With no <port> argument, the standard default of 2809 is used.

 

Use -always in conjunction with -start to always start omniNames, regardless

of whether the log/data files already exist.

 

Use -logdir option to specify the directory where the log/data files are kept.

 

You can also set the environment variable OMNINAMES_LOGDIR to specify the

directory where the log/data files are kept.

 

Use -nohostname to suppress the inclusion of the hostname in the log files.

 

Use -errlog option to specify where standard error output is redirected.

 

Use -ignoreport option to ignore the port specification when determining

the end points to listen on, using -ORBendPoint arguments instead.

 

To publish a specific IP address to clients, use

 -ORBendPointPublish giop:tcp:<address>:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Failed to narrow the root naming context

Traceback (most recent call last):

  File "/home/studio/salome/appli_V7_4_0/bin/salome/runSalome.py", line 677, in useSalome

    clt = startSalome(args, modules_list, modules_root_dir)

  File "/home/studio/salome/appli_V7_4_0/bin/salome/runSalome.py", line 447, in startSalome

    clt=orbmodule.client(args)

  File "/home/studio/salome/Salome-V7_4_0-LGPL-x86_64/modules/KERNEL_V7_4_0/bin/salome/orbmodule.py", line 47, in __init__

    self.initNS(args or {})

  File "/home/studio/salome/Salome-V7_4_0-LGPL-x86_64/modules/KERNEL_V7_4_0/bin/salome/orbmodule.py", line 86, in initNS

    sys.exit(1)

SystemExit: 1

 

 

--- Error during Salome launch ---studio@linux:~/salome/appli_V7_4_0> ./runAppli

runSalome running on linux.site

Searching for a free port for naming service: 2810 - OK

Searching Naming Service +Cannot open error log file: /tmp/logs/studio/omniNames_2810/omniNameErrors.log

 

usage: omniNames [-start [<port>]]

                 [-always]

                 [-logdir <directory name>]

                 [-nohostname]

                 [-errlog <file name>]

                 [-ignoreport]

                 [-help]

                 [<omniORB-options>...]

 

Use -start option to start omniNames for the first time.

With no <port> argument, the standard default of 2809 is used.

 

Use -always in conjunction with -start to always start omniNames, regardless

of whether the log/data files already exist.

 

Use -logdir option to specify the directory where the log/data files are kept.

 

You can also set the environment variable OMNINAMES_LOGDIR to specify the

directory where the log/data files are kept.

 

Use -nohostname to suppress the inclusion of the hostname in the log files.

 

Use -errlog option to specify where standard error output is redirected.

 

Use -ignoreport option to ignore the port specification when determining

the end points to listen on, using -ORBendPoint arguments instead.

 

To publish a specific IP address to clients, use

 -ORBendPointPublish giop:tcp:<address>:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Failed to narrow the root naming context

Traceback (most recent call last):

  File "/home/studio/salome/appli_V7_4_0/bin/salome/runSalome.py", line 677, in useSalome

    clt = startSalome(args, modules_list, modules_root_dir)

  File "/home/studio/salome/appli_V7_4_0/bin/salome/runSalome.py", line 447, in startSalome

    clt=orbmodule.client(args)

  File "/home/studio/salome/Salome-V7_4_0-LGPL-x86_64/modules/KERNEL_V7_4_0/bin/salome/orbmodule.py", line 47, in __init__

    self.initNS(args or {})

  File "/home/studio/salome/Salome-V7_4_0-LGPL-x86_64/modules/KERNEL_V7_4_0/bin/salome/orbmodule.py", line 86, in initNS

    sys.exit(1)

SystemExit: 1

--- Error during Salome launch ---

Best  regards,

MarcoC

Re: How to install Salome / Salome installation on Linux

Posted by jeanpierreaubry at August 18. 2014

hello

 

mixing quotes from Willam, your own comment and the bits of code makes your post almost unreadable

 

i suppose you installed as root 

tried to launch once

 

this has put such a mess in the omniOrb permissions that in becomes almost impossible to launch Salome again

 

i suggest you destroy all the directories and files whose name contains 'omniname*' or 'omniName*' which are lying in /tmp directory

 

try to launch again

and come back here

 

it is a pity that the Salome team never made a note about this feature!!

 

jean pierre aubry

Re: How to install Salome / Salome installation on Linux

Posted by William Tougeron at August 18. 2014

Hello,

I didn't know it's so problematic to install Salome as root...

Indeed, a visible warning would be great, for example on the download page...

William

Re: How to install Salome / Salome installation on Linux

Posted by jeanpierreaubry at August 18. 2014

hello Williamm

 

i am not entirely certain about this kind of trouble

 

but i had the trouble as early as 2010

with an install made as root, a first check launch as root

and a subsequent launch as regular user

 

and carefully reading the msg as described above i tried

changing the ownership of the directory /tmp/logs/$your_user_name/omniNames_2810 to 

$your_user_name : users

the number of the port "2810" may be different 

 

since these troubles i make the install like this:

as root i create a 'salome740' folder in /opt

i change its ownership to my regular user name

then as regular user i install salome in that dir

 

with this it always flawlessly as regular user

 

one question:

how do you quote a block on this Ploneboard forum?

 

jean pierre aubry

Re: How to install Salome / Salome installation on Linux

Posted by William Tougeron at August 19. 2014

Hello Jean-Pierre :)

 how do you quote a block on this Ploneboard forum?

Buttons just at the left of the "Internal link" button (little chain at the right).

(Works only if you use the Kupu editor, of course :) )

All the best :)

William

Re: How to install Salome / Salome installation on Linux

Posted by Marco Conte at August 21. 2014

Hi,

 

now  have another misfunctioning launcing salome:

 

 

studio@linux:~/salome/appli_V7_4_0> ./runAppli
runSalome running on linux.site
Searching for a free port for naming service: 2810 - OK
Searching Naming Service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Failed to narrow the root naming context
Traceback (most recent call last):
  File "/home/studio/salome/appli_V7_4_0/bin/salome/runSalome.py", line 677, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/home/studio/salome/appli_V7_4_0/bin/salome/runSalome.py", line 447, in startSalome
    clt=orbmodule.client(args)
  File "/home/studio/salome/Salome-V7_4_0-LGPL-x86_64/modules/KERNEL_V7_4_0/bin/salome/orbmodule.py", line 47, in __init__
    self.initNS(args or {})
  File "/home/studio/salome/Salome-V7_4_0-LGPL-x86_64/modules/KERNEL_V7_4_0/bin/salome/orbmodule.py", line 86, in initNS
    sys.exit(1)
SystemExit: 1


--- Error during Salome launch ---
studio@linux:~/salome/appli_V7_4_0>

 

 

Regards,

 

MarcoC

Re: How to install Salome / Salome installation on Linux

Posted by DAVID Gilles at August 27. 2014

Hello SALOME users,

Just to inform that since version 7.4.0 Salome provides another launcher named ... salome !!!!

You can find it in the same directory as the runAppli and launch it with the same arguments.

Just run <code>./salome" -h</code> for more help ;)

Gilles

Re: How to install Salome / Salome installation on Linux

Posted by William Tougeron at September 01. 2014

Hello David,

 Just to inform that since version 7.4.0 Salome provides another launcher named ... salome !!!!

More intuitive it is, for sure ! :)

 

 

Marco,

Sorry for the late answer, but I am missing time nowadays.

I think I had a similar issue when installing Salome on OpenSUSE (v13 I think).

I solved it by modifying the /etc/hosts file as following:

- I commented the line "ip6-localhost ip6-loopback" by adding a "#" character at its beginning.

- I added the line "127.0.0.2 HOST_NAME", HOST_NAME being the name of your computer (you can get it by typing hostname in a Linux terminal).

Please, say if it solves your problem.

Best regards,

William

Re: How to install Salome / Salome installation on Linux

Posted by Iiro Nurminen at September 04. 2014

Thanks William!

I had similar problem with starting Salome on openSUSE 13.1. Your solution solved it.

BR,

Iiro

 

Re: How to install Salome / Salome installation on Linux

Posted by P Wat at September 21. 2014

How long is the installation supposed to take on step 7/8 once it has started? tlctk is the first to be installed, I'm on a fresh install of Ubuntu 13.10 but it seems to get stuck on tlctk ("Processing") for hours... is there a way to figure out what is happening here? I'm a very beginner.

Re: How to install Salome / Salome installation on Linux

Posted by jeanpierreaubry at September 22. 2014

hello

 

it looks like you are trying in install a binary version that does not suit your distribution

 

try installing the "Universal binaries for Linux"

 

jean pierre aubry

Re: How to install Salome / Salome installation on Linux

Posted by Matthew Cha at September 30. 2014

Hi,

When I try to install Salome by typing in "./runInstall", it gives me the following error.

 

"./bin/SALOME_InstallWizard: 1: ./bin/SALOME_InstallWizard: Syntax error: "(" unexpected"

 

How can I fix this problem??

 

Best regards,

Matthew

Re: How to install Salome / Salome installation on Linux

Posted by Matthew Cha at September 30. 2014

By the way, I have not touched any files after unzipping.

 

:(

 

Re: How to install Salome / Salome installation on Linux

Posted by jeanpierreaubry at September 30. 2014

lets start from the beginning

what is your Linux distribution?

which archive are you downloading?

Re: How to install Salome / Salome installation on Linux

Posted by Matthew Cha at October 02. 2014

Hi,

I am using Ubutu 14.04

I downloaded Salome 7.4.0 Ubuntu 13.10 64bit

 

Re: How to install Salome / Salome installation on Linux

Posted by jeanpierreaubry at October 02. 2014
i do not know ubuntu enough to tell you should try to install the Universal Binaries seem to be more versatile

Re: How to install Salome / Salome installation on Linux

Posted by Matthew Cha at October 02. 2014

Ok. Then I will download the Univeral Binaries. I will come back if there is an error again installing Salome Universial Binaries.

Thank you.

 

 

Re: How to install Salome / Salome installation on Linux

Posted by Matthew Cha at October 02. 2014

Hi. I installed Salome with Universal Binaries. And I followed the installation instruction. And I typed in "salome" in terminal to open Salome.... But nothing happens....

Please see the below.....

-----------------------------------------------------------------------

mcha2@ubuntu:~$ salome
/home/mcha2/bin/salome: line 2: /home/mcha2/salome_7.4.0/env_products.sh: No such file or directory
runSalome running on ubuntu
Searching for a free port for naming service: 2810 - OK
makeTmpDir '/home/mcha2/.salome/ubuntu/env_2810' 700
Searching Naming Service + found in 0.1 seconds
Searching /Registry in Naming Service + found in 0.5 seconds
Searching /Kernel/ModulCatalog in Naming Service +th. 3063437056 - Trace ../../../src/ModuleCatalog/SALOME_ModuleCatalog_Server.cxx [101] : Module Catalog Server: Naming Service was found
 found in 0.5 seconds
RunStudy
Searching /myStudyManager in Naming Service ++ found in 1.0 seconds
Searching /Containers/ubuntu/FactoryServer in Naming Service + found in 0.5 seconds
Start SALOME, elapsed time :   2.9 seconds
mcha2@ubuntu:~$
------------------------------------------------------------------------------------------------------------------------

 

But no window is popping up. No GUI..... Why....?

 

Re: How to install Salome / Salome installation on Linux

Posted by jeanpierreaubry at October 02. 2014

you should type 

$install_dir/appli_V7_4_0/salome

where $install_dir is the name of the directory you installed salome in

it should have two sub dir

Salome-v7_4_0-LGPL-x86_64

appli_V7_4_0

Re: How to install Salome / Salome installation on Linux

Posted by Matthew Cha at October 03. 2014

Thank you for your reply jeanpierreaubry.... I tried your adivce... and get the following....

Still, Salome does not pop up...

--------------------------------------------------------------------------

mcha2@ubuntu:~/salome/appli_V7_4_0$ salome
/home/mcha2/bin/salome: line 2: /home/mcha2/salome_7.4.0/env_products.sh: No such file or directory
runSalome running on ubuntu
Searching for a free port for naming service: 2810 2811 - OK
makeTmpDir '/home/mcha2/.salome/ubuntu/env_2811' 700
Searching Naming Service + found in 0.1 seconds
Searching /Registry in Naming Service + found in 0.5 seconds
Searching /Kernel/ModulCatalog in Naming Service +th. 3064014592 - Trace ../../../src/ModuleCatalog/SALOME_ModuleCatalog_Server.cxx [101] : Module Catalog Server: Naming Service was found
 found in 0.5 seconds
RunStudy
Searching /myStudyManager in Naming Service ++ found in 1.0 seconds
Searching /Containers/ubuntu/FactoryServer in Naming Service + found in 0.5 seconds
Start SALOME, elapsed time :   2.8 seconds

Re: How to install Salome / Salome installation on Linux

Posted by jeanpierreaubry at October 06. 2014
why don't you type 

install_dir/appli_V7_4_0/salome

as i told you, this is completely different from typing salome from the dir 

install_dir/appli_V7_4_0 

as you appear to have a salome file the the /home/mcha2/bin/ directory which is launched in this case
and this file is most probably not  the relevant one to salome 7.4 

 

try doing what i tell you please!!

Re: How to install Salome / Salome installation on Linux

Posted by doe eiwke at October 23. 2014
norton@ubuntu:~$ cd Desktop
norton@ubuntu:~/Desktop$ ./Salome-V7_4_0-LGPL-x86_64.run

=======================================
Self Extracting SALOME V7_4_0 Installer
=======================================

Enter the Salome install directory [default=/home/norton/salome] :
Salome is in English, do you want to be in French ? [y/N] : N
Installation of SALOME V7_4_0 in /home/norton/salome/Salome-V7_4_0-LGPL-x86_64 ...
Verifying archive integrity...
Error in MD5 checksums: 39c7a917d5e1664794abb8a1515a5688 is different from 65216dc4ee1c8d47cf9c020ad1eb420f
norton@ubuntu:~/Desktop$

so i can't install salome.

 

Re: How to install Salome / Salome installation on Linux

Posted by Vadim SANDLER at October 23. 2014

Hello,

Maybe the file was not fully dowloaded from the server.

You can check that in the following way:

- Download checksum file (.md5) for universal binaries package; you can find a link near to the link to archive itself in the download page: http://www.salome-platform.org/downloads/current-version

- Put checksum file near the archive and check it with md5sum command :

[%] ls
Salome-V7_4_0-LGPL-x86_64.run
Salome-V7_4_0-LGPL-x86_64.run.md5
[%] md5sum -c Salome-V7_4_0-LGPL-x86_64.run.md5
Salome-V7_4_0-LGPL-x86_64.run: OK

If an archive file was not broken, you should see "OK".

Regards,
Vadim.

Re: How to install Salome / Salome installation on Linux

Posted by Razi Abdul at October 30. 2014

Hi,

Just to say I successfully installed Salome 7.4 on OpenSUSE 13.1 with the Universal Binaries

I'm glad I read this thread.  I had the same "Failed to narrow the root naming context" error, but adding the line:

 127.0.0.2     <your machine name>

in /etc/hosts  as William said above resolves this. I still install as root, since I want Salome dir in /opt/salome74.  

Thanks everyone especially William :)

 

Best

Re: How to install Salome / Salome installation on Linux

Posted by jeanpierreaubry at October 30. 2014

hello

it is not necessary to install as root if you want Salome to be in opt

here is how to do it

me@machine_name:~> su

Password :

me:/home/me # cd /opt

me:/opt # mkdir ./salome74

me:/opt # chown me:users ./salome74

 

supposing me is your user name

now you have a dir salome74 with read write access as regular user

 

jean pierre aubry

Powered by Ploneboard
Document Actions