Personal tools
You are here: Home Forum Install & build how to install salome in linux ubuntu 18.04, kindlly do the needful

how to install salome in linux ubuntu 18.04, kindlly do the needful

Up to Install & build

how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by shubham tiwari at June 13. 2018

jua@jua24:~/Desktop/Salome/SALOME-8.3.0-UB16.04$ ./salome
runSalome running on jua24
Error when trying to access active network connections.
Traceback (most recent call last):
  File "/home/jua/Desktop/Salome/SALOME-8.3.0-UB16.04/BINARIES-UB16.04/KERNEL/bin/salome/PortManager.py", line 111, in __isNetworkConnectionActiveOnPort
    p = Popen(cmd, stdout=PIPE, stderr=STDOUT)
  File "/home/jua/Desktop/Salome/SALOME-8.3.0-UB16.04/BINARIES-UB16.04/Python/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/home/jua/Desktop/Salome/SALOME-8.3.0-UB16.04/BINARIES-UB16.04/Python/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Searching for a free port for naming service: 2811 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Kernel/Session in Naming Service +Warning, no type found for resource "localhost", using default value "single_machine"
SALOME_Session_Server: error while loading shared libraries: libicui18n.so.55: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/home/jua/Desktop/Salome/SALOME-8.3.0-UB16.04/BINARIES-UB16.04/KERNEL/bin/salome/runSalome.py", line 625, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/home/jua/Desktop/Salome/SALOME-8.3.0-UB16.04/BINARIES-UB16.04/KERNEL/bin/salome/runSalome.py", line 570, in startSalome
    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
  File "/home/jua/Desktop/Salome/SALOME-8.3.0-UB16.04/BINARIES-UB16.04/KERNEL/bin/salome/orbmodule.py", line 174, in waitNSPID
    raise RuntimeError, "Process %d for %s not found" % (thePID,theName)
RuntimeError: Process 7850 for /Kernel/Session not found


--- Error during Salome launch ---
jua@jua24:~/Desktop/Salome/SALOME-8.3.0-UB16.04$

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by Gregor Simic at June 15. 2018

Hello,

For now all that I can think of is, that you require the following package: net-tools. Install it simply by calling

 

sudo apt-get update

sudo apt-get install net-tools

 

That is why you get the first error: Error when trying to access active network connections.

 

Cheers

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by shubham tiwari at June 16. 2018

Previously Gregor Simic wrote:

Thanks for response, but it's already installed in my PC.

"jua@jua21:~$ sudo apt-get install net-tools
[sudo] password for jua:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
net-tools is already the newest version (1.60-26ubuntu1).
The following packages were automatically installed and are no longer required:
  libllvm3.8 libmircommon5 linux-headers-4.4.0-31
  linux-headers-4.4.0-31-generic linux-headers-4.4.0-87
  linux-headers-4.4.0-87-generic linux-image-4.4.0-31-generic
  linux-image-4.4.0-87-generic linux-image-extra-4.4.0-31-generic
  linux-image-extra-4.4.0-87-generic linux-signed-image-4.4.0-31-generic
  linux-signed-image-4.4.0-87-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
jua@jua21:~$ "

Hello,

For now all that I can think of is, that you require the following package: net-tools. Install it simply by calling

 

sudo apt-get update

sudo apt-get install net-tools

 

That is why you get the first error: Error when trying to access active network connections.

 

Cheers

 

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by shubham tiwari at June 20. 2018
Hey,
 
I figured out how to install Salome in ubuntu 18.04.

These are following steps,

Cntrl + Alt + T for terminal.

1. First thing is that your system should be up to date.
run this command " sudo apt-get update, sudo apt-get upgrade "

2. Create salome directory in home.
run this command " mkdir salome " make sure you are in system home directory"

3. Download Salome universal package from this link,
"https://www.salome-platform.org/downloads/current-version" just copy-paste.

4. After downloading you have like this in your download directory "Salome-V8_4_0-univ_public.run"

5. Then make a file as a program.
run this command " chmod +x Salome-V8_4_0-univ_public.run ".

6. Now type "ls" in terminal and see 2 files.

7. Then install salome in your PC.
run this command " ./Salome-V8_4_0-univ_public.run "

8. press Just "Enter" and choose language English or French.

9. after that you have a salome icon in your PC screen.

Thanks to all.

If you have any problem regarding this, please mail me. " shubham.tiwarifs@gmail.com"

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by James Wright at July 10. 2018

So I've fixed (I think) the issues I've had. tl;dr is that there's a dependency on using Python 2.X, but all references to that are simply "python" instead of "python2". That basically screwed up everything, nor do I understand why they didn't just specify "python2".

I'm currently running into an error with the installation. Here's the message that I get:

<pre>

<code>

=======================================
Self Extracting Salome V8_4_0 Installer
=======================================

Enter the Salome install directory [default=/home/u2berggeist/salome] :
Salome is in English, do you want to be in French ? [y/N] : y
Installation of Salome V8_4_0 in /home/u2berggeist/salome/Salome-V8_4_0-univ ...
Verifying archive integrity...
All good.
Done                                                                                                                
./create_appli.sh: line 108: /salome_prerequisites.sh: No such file or directory
./create_appli.sh: line 109: /salome_modules.sh: No such file or directory
Creating Salome application in /home/u2berggeist/salome/appli_V8_4_0 ...
sed: can't read /.config_appli_template.xml: No such file or directory
sed: -e expression #1, char 109: unterminated `s' command
Setting the language to fr in the preferences file /home/u2berggeist/.config/salome/SalomeApprc.8.4.0
grep: salome_context.cfg: No such file or directory
Salome post-installation ...
./create_appli.sh: line 295: ./salome_post_install.py: No such file or directory
The Salome application was successfully created.
To run the application:
$ /home/u2berggeist/salome/appli_V8_4_0/salome

</code>

</pre>

 

So essentially, it can't find some files. The files that it names do exist though, inside "~/salome/Salome-V8_4_0-univ". It gets the directory to look up these files by using a short python expression inside "create_appli.sh":

<pre>

<code>

if test -z "$SALOMEDIR"; then                                                                                    
   SALOMEDIR=`python -c "import os; print os.path.normpath(os.path.dirname(os.path.abspath(os.path.realpath('$0')))
 )" 2>/dev/null`                                                                                                  

fi     

</code>

</pre>

A) When I run this code, it comes up with an error. I have to change "python" to "python2" to get the script to work.

B) When the script works, I get "/bin". "/bin" isn't where these files are located. Not even remotely. I'm honestly not sure what this part of the script was supposed to be doing.

 

To fix this, I just hardcoded the "$SALOMEDIR" to the "~/salome/Salome-V8_4_0-univ". After that change it worked.... sort of.

The directory it installed it into was "~/salome/Salome-V8_4_0-univ/y". Not sure where the "y" came from. I tried to run "y/salome" and again ran into python errors this time.

I'll skip the nitty gritty, but at the end, I had to replace "#! /usr/bin/env python" with ""#! /usr/bin/env python2" to get it to work. I'll look into submitting a bug report, as this seems like a pretty large oversight. Most people have installations of python 2 and 3.

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by James Wright at July 10. 2018

I spoke a little too soon. The program is in French now...

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by Wagner de Campos Galuppo at August 07. 2018

Thank you very much! This worked for me also!

Best regards!

Previously shubham tiwari wrote:

Hey,
 
I figured out how to install Salome in ubuntu 18.04.

These are following steps,

Cntrl + Alt + T for terminal.

1. First thing is that your system should be up to date.
run this command " sudo apt-get update, sudo apt-get upgrade "

2. Create salome directory in home.
run this command " mkdir salome " make sure you are in system home directory"

3. Download Salome universal package from this link,
"https://www.salome-platform.org/downloads/current-version" just copy-paste.

4. After downloading you have like this in your download directory "Salome-V8_4_0-univ_public.run"

5. Then make a file as a program.
run this command " chmod +x Salome-V8_4_0-univ_public.run ".

6. Now type "ls" in terminal and see 2 files.

7. Then install salome in your PC.
run this command " ./Salome-V8_4_0-univ_public.run "

8. press Just "Enter" and choose language English or French.

9. after that you have a salome icon in your PC screen.

Thanks to all.

If you have any problem regarding this, please mail me. " shubham.tiwarifs@gmail.com"

 

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by shubham tiwari at August 09. 2018

Thanks to all,  i am very glad to help you. If you have any problem then mail me definitely I'll help you as soon as possible.

Shubham.tiwarifs@gmail.com"

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by Ahmed Hesham at August 09. 2018

Dear All, 

Thank you for comments which are very helpful to me.

I'm a little bit confused. I've followed the steps but still have missing files for launching the application. My error is:

ahmed@ahmed-Lenovo-ideapad-320-15IKB:~/salome/appli_V8_5_0$ salome
salome: command not found
 
I entered in the folder (/home/ahmed/salome/appli_V8_5_0) and I only found 2 files: 
appli_V8_5_0.log
config_appli.xml
What should I do to launch program?
 

Any help will be appreciated.

Thanks in advance.

P.S. TErminal:


Enter the Salome install directory [default=/home/ahmed/salome] :
Salome is in English, do you want to be in French ? [y/N] : n
Installation of Salome V8_5_0 in /home/ahmed/salome/Salome-V8_5_0-univ_public_outOT ...
Verifying archive integrity...
All good.
Done                                                                          
./create_appli.sh: line 108: /salome_prerequisites.sh: No such file or directory
./create_appli.sh: line 109: /salome_modules.sh: No such file or directory
Creating Salome application in /home/ahmed/salome/appli_V8_5_0 ...
sed: can't read /.config_appli_template.xml: No such file or directory
Setting for help already set
grep: salome_context.cfg: No such file or directory
Salome post-installation ...
./create_appli.sh: line 287: ./salome_post_install.py: No such file or directory
The Salome application was successfully created.
To run the application:
$ /home/ahmed/salome/appli_V8_5_0/salome
ahmed@ahmed-Lenovo-ideapad-320-15IKB:~/Documents/SALOME-8.5.0-UB16.04-SRC$ cd /home/ahmed/salome/appli_V8_5_0
ahmed@ahmed-Lenovo-ideapad-320-15IKB:~/salome/appli_V8_5_0$ salome
salome: command not found
ahmed@ahmed-Lenovo-ideapad-320-15IKB:~/salome/appli_V8_5_0$  salome

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by Aldo Tapia at August 10. 2018

almost same problem, i tried the solution of James Wrightied and still had the same problem, i tried installing python 2 and 3, i had it working in a virtual machine, installing the fist time got this error, deleting the folder and installing again worked, but in my pc didnt work. so im asking for help. thanks

 

Enter the Salome install directory [default=/home/atkbane/salome] :
Salome is in English, do you want to be in French ? [y/N] : N
Installation of Salome V8_5_0 in /home/atkbane/salome/Salome-V8_5_0-univ_public_outOT ...
Verifying archive integrity...
All good.
Done                                                                          
./create_appli.sh: line 108: /salome_prerequisites.sh: No such file or directory
./create_appli.sh: line 109: /salome_modules.sh: No such file or directory
Creating Salome application in /home/atkbane/salome/appli_V8_5_0 ...
sed: can't read /.config_appli_template.xml: No such file or directory
Setting for help already set
grep: salome_context.cfg: No such file or directory
Salome post-installation ...
Warning: the directory /opt/ThirdParty-6/platforms/linux64Gcc/gperftools-svn/lib is in a path variable but does not exist
Warning: the directory /opt/ThirdParty-6/platforms/linux64GccDPInt32/lib/openmpi-system is in a path variable but does not exist
Warning: the directory /home/atkbane/OpenFOAM/atkbane-6/platforms/linux64GccDPInt32Opt/lib is in a path variable but does not exist
Warning: the directory /opt/site/6/platforms/linux64GccDPInt32Opt/lib is in a path variable but does not exist
Warning: the directory /opt/ThirdParty-6/platforms/linux64GccDPInt32/lib is in a path variable but does not exist
Warning: the directory /opt/ThirdParty-6/platforms/linux64Gcc/gperftools-svn/bin is in a path variable but does not exist
Warning: the directory /home/atkbane/OpenFOAM/atkbane-6/platforms/linux64GccDPInt32Opt/bin is in a path variable but does not exist
Warning: the directory /opt/site/6/platforms/linux64GccDPInt32Opt/bin is in a path variable but does not exist
./create_appli.sh: line 287: ./salome_post_install.py: No such file or directory
The Salome application was successfully created.
To run the application:
$ /home/atkbane/salome/appli_V8_5_0/salome

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by shubham tiwari at August 10. 2018
Dear Friend,
 
there are Salome version issue, i am sending you a link then download Salome V8.4.0 version.and follow the same step which have you.
 
But before that you have to be delete all files of Salome.

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by oliva at September 18. 2018

Hi

 

I installed Salome 8.4 on ubuntu 18.04, but it cant lunch due to the following errors. please help me:-

runSalome running on devin-VPCEH3QFX
Searching for a free port for naming service: 2813 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Kernel/Session in Naming Service +++Gtk-Message: 19:57:32.866: Failed to load module "canberra-gtk-module"
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
+++++++++++++Traceback (most recent call last):
  File "/opt/SalomeMeca/appli_V2018/bin/salome/runSalome.py", line 633, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/opt/SalomeMeca/appli_V2018/bin/salome/runSalome.py", line 578, in startSalome
    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
  File "/opt/SalomeMeca/V2018/modules/KERNEL_V8_5_0/bin/salome/orbmodule.py", line 174, in waitNSPID
    raise RuntimeError, "Process %d for %s not found" % (thePID,theName)
RuntimeError: Process 5203 for /Kernel/Session not found


--- Error during Salome launch ---

Re: how to install salome in linux ubuntu 18.04, kindlly do the needful

Posted by Jessica Muñoz at Monday 23:43

Thank you so much

Previously shubham tiwari wrote:

Hey,
 
I figured out how to install Salome in ubuntu 18.04.

These are following steps,

Cntrl + Alt + T for terminal.

1. First thing is that your system should be up to date.
run this command " sudo apt-get update, sudo apt-get upgrade "

2. Create salome directory in home.
run this command " mkdir salome " make sure you are in system home directory"

3. Download Salome universal package from this link,
"https://www.salome-platform.org/downloads/current-version" just copy-paste.

4. After downloading you have like this in your download directory "Salome-V8_4_0-univ_public.run"

5. Then make a file as a program.
run this command " chmod +x Salome-V8_4_0-univ_public.run ".

6. Now type "ls" in terminal and see 2 files.

7. Then install salome in your PC.
run this command " ./Salome-V8_4_0-univ_public.run "

8. press Just "Enter" and choose language English or French.

9. after that you have a salome icon in your PC screen.

Thanks to all.

If you have any problem regarding this, please mail me. " shubham.tiwarifs@gmail.com"

 

Powered by Ploneboard
Document Actions