Personal tools
You are here: Home Forum Install & build Salome on Fedora 18

Salome on Fedora 18

Up to Install & build

Salome on Fedora 18

Posted by razvan curtean at January 26. 2013

Hello

 

I've installed salome binaries on Fedora 18 and I get folowwing error:

 ~$ /opt/appli_V6_6_0/runAppli
runSalome running on localhost.localdomain
Searching for a free port for naming service:
Traceback (most recent call last):
  File "/home/razvan/../../opt/appli_V6_6_0/bin/salome/runSalome.py", line 920, in <module>
    clt,args = main()
  File "/home/razvan/../../opt/appli_V6_6_0/bin/salome/runSalome.py", line 846, in main
    searchFreePort(args, save_config)
  File "/opt/Salome-V6_6_0-LGPL-x86_64/modules/KERNEL_V6_6_0/bin/salome/searchFreePort.py", line 38, in searchFreePort
    (stdout, stderr) = Popen(['netstat','-an'], stdout=PIPE).communicate()
  File "/opt/Salome-V6_6_0-LGPL-x86_64/prerequisites/Python_266/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/opt/Salome-V6_6_0-LGPL-x86_64/prerequisites/Python_266/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

 

Thanks!

Razvan

Re: Salome on Fedora 18

Posted by Alex Fortier at July 08. 2013

Any solution?

 

Re: Salome on Fedora 18

Posted by jeanpierreaubry at July 08. 2013

hello

can you post here the content of this file

/etc/hosts

jean pierre aubry

Re: Salome on Fedora 18

Posted by jeanpierreaubry at July 08. 2013

looking a second time, your /opt directory seems strange to me 

you typed "/opt/appli_V6_6_0/runAppli" this means /appli_V6_6_0 is directly under /opt?

Re: Salome on Fedora 18

Posted by Alex Fortier at July 09. 2013

Hello Jean-pierre,

Since I'm the one that "bumped" the issue on the forums, I'll give you my point of you of the problem.

First of all, here's my exact error :

fortier@arch appli_V7_2_0]$ PATH=~/bin:$PATH ./runAppli
runSalome running on arch
Traceback (most recent call last):
  File "/home/fortier/software/salome7/appli_V7_2_0/bin/salome/runSalome.py", line 920, in <module>
    clt,args = main()
  File "/home/fortier/software/salome7/appli_V7_2_0/bin/salome/runSalome.py", line 846, in main
    searchFreePort(args, save_config, args.get('useport'))
  File "/home/fortier/software/salome7/Salome-V7_2_0-LGPL-x86_64/modules/KERNEL_V7_2_0/bin/salome/searchFreePort.py", line 37, in searchFreePort
    (stdout, stderr) = Popen(['netstat','-an'], stdout=PIPE).communicate()
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[fortier@arch appli_V7_2_0]$ uname -a
Linux arch 3.9.9-1-ARCH #1 SMP PREEMPT Wed Jul 3 22:45:16 CEST 2013 x86_64 GNU/Linux
 
as you asked, here is my /etc/hosts
 
 
 
#
# /etc/hosts: static lookup table for host names
#
 
#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost
127.0.0.2       localhost.localdomain   arch
#::1            localhost.localdomain   localhost
 
# End of file
 
I've installed the V7 and the V6 of salome, both do the same error. I use the "trick" of creating a symlink 'python' to python2 that is why you see the command 
 
PATH=~/bin:$PATH 
 
 
I hope you have anough information to help me :)
 
Best regards

Re: Salome on Fedora 18

Posted by jeanpierreaubry at July 09. 2013

in a terminal type hostname -f

the answer should be

fortier.arch

then add this line in /etc/hosts (as root)

127.0.0.3       fortier.arch   arch

if it does not work try deleting 

127.0.0.2       localhost.localdomain   arch

NEVER run Salome as root !

 

i doubt the symlink to Python is of any use, maybe worse tha noting

Re: Salome on Fedora 18

Posted by jeanpierreaubry at July 09. 2013

replace the previous post by this (i was typing too fast)

in a terminal type hostname -f

the answer should be

machine_name.domain_name     machine_name

then add this line in /etc/hosts (as root)

127.0.0.3       machine_name.domain_name     machine_name

if it does not work try deleting 

127.0.0.2       localhost.localdomain   arch

NEVER run Salome as root !

 

i doubt the symlink to Python is of any use, maybe worse than nothing

Re: Salome on Fedora 18

Posted by Christophe Bourcier at July 09. 2013

Hi,

Can you check that netstat is installed? Type netstat in a terrminal.

If it is not, do:

yum install net-tools

Christophe

Re: Salome on Fedora 18

Posted by Alex Fortier at July 09. 2013
IT WORKS!!!!!
 
@Jeanpierre - The hostname -f gave me :     localhost.localdomain
So I had nothing to change in my /etc/hosts/
 
@Christophe -   YES!! That was the missing package!!! 
 
I reinstalled using the PATH=~/bin:$PATH ./salome7.run and the installation went perfectly well!
 
Thanks for the fast responses guys I can now start working !!!
 
Best regards,
 
Alex
Powered by Ploneboard
Document Actions