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 Tuesday 21:40

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 Tuesday 21:45

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

Powered by Ploneboard
Document Actions