CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Error with opening FoamX

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2006, 03:13
Default ./FoamX Starting NameServer w
  #1
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
./FoamX
Starting NameServer with inet:console:1234 ...
/export/home/heliang/OpenFOAM/OpenFOAM-1.3/bin/runFoamXHB: line 122: nsd: command not found

when i type which nsd
/usr/bin/which: no nsd in (/export/home/heliang/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1/platforms/.....)

what can i do?
billpeace is offline   Reply With Quote

Old   October 9, 2006, 04:05
Default In my case, I have the nsd in:
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
In my case, I have the nsd in:
dragosm@lap08:~> which nsd
/fsd/home/dragosm/OpenFOAM/OpenFOAM-1.3/src/mico-2.3.11/platforms/linuxAMD64Gcc4 DPOpt/bin/nsd

Try to see first if you have it there too!

Dragos
dmoroian is offline   Reply With Quote

Old   October 9, 2006, 04:57
Default In mico-2.3.11 there is no fol
  #3
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
In mico-2.3.11 there is no folder what's name is platforms,
I havn't this file or folder
billpeace is offline   Reply With Quote

Old   October 9, 2006, 05:25
Default Probably your installation is
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Probably your installation is not complete!
Did you first install the sources and then the binaries?
If you did it the other way around it might cause you troubles.

Dragos
dmoroian is offline   Reply With Quote

Old   October 9, 2006, 05:53
Default binary pack? how to use this
  #5
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
binary pack?
how to use this pack?
billpeace is offline   Reply With Quote

Old   October 9, 2006, 07:08
Default Ok, I suspect you run a 32 bit
  #6
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Ok, I suspect you run a 32 bit machine, so on short, the installation goes as follows:
0. cd
1. wget http://ovh.dl.sourceforge.net/source...3.General.gtgz
2. wget http://switch.dl.sourceforge.net/sourceforge/foam/OpenFOAM-1.3.linuxGcc4DPOpt.gt gz
3. wget http://puzzle.dl.sourceforge.net/sou....1.0.linux.tgz
4. wget http://heanet.dl.sourceforge.net/sou....4.2.linux.tgz
5. wget http://ovh.dl.sourceforge.net/source...2_05.linux.tgz
6. mkdir -p ~/OpenFOAM/linux
7. mkdir ~/OpenFOAM/jobControl
8. cd OpenFOAM
9. tar -zxvf ../OpenFOAM-1.3.General.gtgz
10. tar -zxvf ../OpenFOAM-1.3.linuxGcc4DPOpt.gtgz
11. cd linux
12. tar -zxvf ../../gcc-4.1.0.linux.tgz
13. tar -zxvf ../../paraview-2.4.2.linux.tgz
14. tar -zxvf ../../j2sdk1.4.2_05.linux.tgz
15. cd
16. echo ". ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc" >> .bashrc

That should be all!

Dragos
dmoroian is offline   Reply With Quote

Old   October 9, 2006, 07:31
Default thanks,I have re-install accor
  #7
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
thanks,I have re-install according your list step
but I receive anthor error:

Starting NameServer with inet:console:1234 ...
nsd: error while loading shared libraries: libelf.so.0: cannot open shared object file: No such file or directory

How to solve it

regards
billpeace is offline   Reply With Quote

Old   October 9, 2006, 08:15
Default Ok, now you come around http:/
  #8
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Ok, now you come around
This error is simple to solve. Just install whatever package is available for your linux distribution, which contains the libelf.so.0.
For instance, in my case,I have Suse 9.3, and the package containing this library is libelf-0.8.5-35.rpm

Dragos
dmoroian is offline   Reply With Quote

Old   October 9, 2006, 08:43
Default my operate system is Redhat ,d
  #9
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
my operate system is Redhat ,do you what package is available for this ?

thanks very much
billpeace is offline   Reply With Quote

Old   October 9, 2006, 08:48
Default What version? Here you can fi
  #10
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
What version?
Here you can find a package for RedHat 8.0
ftp://194.199.20.114/linux/redhat/8.0/en/os/i386/RedHat/RPMS/libelf-0.8.2-2.i386 .rpm

Dragos
dmoroian is offline   Reply With Quote

Old   October 9, 2006, 09:00
Default it is ok thanks
  #11
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
it is ok
thanks
billpeace is offline   Reply With Quote

Old   October 10, 2006, 01:26
Default I cant install the rpm package
  #12
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
I cant install the rpm package yesterday because i am not administrator of that computer .
just now,after installing the package of libelf.so.0,I meet another error when runing FoamX :
[heliang@console heliang]$ FoamX
Starting NameServer with inet:console:1234 ...
Starting FoamX Host Browser with inet:console:1234 ...
FoamXHostBrowser: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required
by FoamXHostBrowser)
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 32723).

I search it from forum, somebody give advice to recompile the source.
Do anyone have other method to sovle this problem?
billpeace is offline   Reply With Quote

Old   October 10, 2006, 01:28
Default I cant install the rpm package
  #13
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
I cant install the rpm package yesterday because i am not administrator of that computer .
just now,after installing the package of libelf.so.0,I meet another error when runing FoamX :
[heliang@console heliang]$ FoamX
Starting NameServer with inet:console:1234 ...
Starting FoamX Host Browser with inet:console:1234 ...
FoamXHostBrowser: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required
by FoamXHostBrowser)
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 32723).

I search it from forum, somebody give advice to recompile the source.
Do anyone have other method to sovle this problem?
billpeace is offline   Reply With Quote

Old   October 10, 2006, 04:32
Default You won't like the other metho
  #14
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
You won't like the other method: upgrade your system to something newer, like fedora core 5.

Dragos
dmoroian is offline   Reply With Quote

Old   October 10, 2006, 08:56
Default I dont understand what meaning
  #15
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
I dont understand what meaning

I have re-compiled the source completely.Another problem comes out.
[heliang@console OpenFOAM-1.3]$ FoamX
Starting NameServer with inet:console:1234 ...
Starting FoamX Host Browser with inet:console:1234 ...
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.3 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXHostBrowser
Date : Oct 11 2006
Time : 00:13:37
Host : console
PID : 782
Root :
Case :
Nprocs : 1
Caught FoamXError exception in FoamXHostBrowser::main(int argc, char **argv) :
FoamXError "Unexpected error"
In function "FoamX::NameServer::connect(CORBA:RB_ptr pOrb)"
in file "NameServer.C" at line 220
Finishing FoamXHostBrowser::main(int argc, char **argv)
/export/home/heliang/OpenFOAM/OpenFOAM-1.3/bin/runFoamXHB: line 131: 780 nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref </dev/null
runFoamXHB : cleanup
runFoamXHB: Name server is not running.
billpeace is offline   Reply With Quote

Old   October 10, 2006, 09:56
Default It seems that your FoamXHostBr
  #16
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
It seems that your FoamXHostBrowser is giving you the error.
Try to see if your compilation produced a proper executable:
ldd $(which FoamXHostBrowser)
It should not give you any "not found" message. If it does, that means you did not recompile everything.

Dragos
P.S. I still think you should upgrade your system, or you will most likely have problems with paraview
dmoroian is offline   Reply With Quote

Old   October 10, 2006, 23:14
Default yes,I did not recompile comple
  #17
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
yes,I did not recompile completely.

I want to know that it can be installed in the redhat 8, do anyone finish this before?

P.S what is the meaning "upgrade your system", upgrade the core of system, or use other system?
billpeace is offline   Reply With Quote

Old   October 11, 2006, 02:43
Default By upgrading your system, I me
  #18
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
By upgrading your system, I meant to install a newer library glibc. Though, this is not trivial so maybe you will find easier to install a newer successor of RedHat 8: Fedora Core 5 perhaps.

Dragos
dmoroian is offline   Reply With Quote

Old   October 12, 2006, 04:11
Default I have install Fedora Core 5
  #19
New Member
 
heliang
Join Date: Mar 2009
Posts: 14
Rep Power: 17
billpeace is on a distinguished road
I have install Fedora Core 5
one more problem:
FoamX
Starting NameServer with inet:localhost.localdomain:1234 ...
Starting FoamX Host Browser with inet:localhost.localdomain:1234 ...
FoamXHostBrowser: error while loading shared libraries: /home/Dario/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/libFoamX.so: cannot restore segment prot after reloc: Permission denied
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 29989).

Does anybody know what kind of touble is this?
billpeace is offline   Reply With Quote

Old   October 12, 2006, 06:16
Default Well, google is your friend!
  #20
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Well, google is your friend!
"He" says this problem is cause on modern distributions by a new security layer called selinux.
Among other solutions, the simplest is to disable this layer by issuing the following command, as root:
/usr/sbin/setenforce 0

That should do the trick!

I hope you will find it usefull.

Dragos
dmoroian is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error opening FoamX robbo OpenFOAM Pre-Processing 1 March 14, 2008 09:54
ERROR IN OPENING CFX POST VISHNU CFX 6 January 7, 2008 03:21
Error in opening the UDF library Sri FLUENT 3 December 11, 2006 16:19
Error while opening pro-star Help with Pro-Star Siemens 3 November 1, 2006 00:53
Problem with opening FoamX osimonsimon OpenFOAM Installation 0 October 4, 2006 17:07


All times are GMT -4. The time now is 01:04.