|
[Sponsors] |
March 5, 2007, 03:55 |
Hello, I have installed OpenFO
|
#1 |
Member
Shaun Darmody
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Hello, I have installed OpenFOAM-1.3 on my Ubuntu 6.06 LTS installation. I am using a Dell 490 box with intel XEON 64bit CPU's.
A little while ago I posted on here issues with getting FoamX to run on my Ubuntu installation and noted that the libelf files where already installed at /usr/lib. When attempting to run FoamX i still get the following error. Starting NameServer with inet:PhantomWorks:1234 ... nsd: error while loading shared libraries: libelf.so.0: cannot open shared object file: No such file or directory Now, I have searched through all the posts in this Installation folder on the discussion board and also looked at a number of posts on the FoamX folder as well. After this search, I attempted to disable SELinux but found it not to be installed. I also tried looking to see if SSH was installed and when typing which ssh i get /usr/bin/ssh. I then type at my prompt and receive the following error. lads@PhantomWorks:~$ ssh PhantomWorks ssh: connect to host PhantomWorks port 22: Connection refused I have then checked the firewall here in ubuntu (iptables): lads@PhantomWorks:~$ sudo iptables -L Password: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination lads@PhantomWorks:~$ Nothing is being blocked, let alone SSH. Why doesn't SSH work then? Why do I need SSH to work when I only want to run on a stand-alone box? Now, I have run the two commands: blockMesh . cavity icoFoam . cavity and had no problem what so ever in getting the solver to work. So as far as I can see I have no problem with my OpenFOAM-1.3 installation. I just can't for the life of me get this FoamX software to find the libelf.so.0 even though it is exactly where everyone here says it should be!! I have installed the 32bit version of OpenFOAM-1.3. Initially when I first ran foamInstallationTest i had to set the directory path of the gcc complier location to /home/lads/OpenFOAM/linux/gcc-4.1.0-64/bin/gc for it to find my 32bit binary I downloaded with the OpenFoam software package. Is this strange? The current foamInstallationtest gives the following output: Executing foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: PhantomWorks OS: Linux version 2.6.15-23-amd64-generic User: lads User_config: /home/lads/.bashrc Foam_config: /home/lads/.OpenFOAM-1.3/bashrc sourced correctly. ------------------------------------------------------------------------------- Checking main FOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/lads/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/lads/OpenFOAM/lads-1.3 yes no $FOAM_JOB_DIR /home/lads/OpenFOAM/jobControl no yes ------------------------------------------------------------------------------- Checking the FOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/lads/OpenFOAM/OpenFOAM-1.3 yes yes yes $FOAM_USER_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes no $FOAM_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes yes $WM_DIR /home/lads/OpenFOAM/OpenFOAM-1.3/wmake yes yes yes $FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes $CEI_HOME /usr/local/ensight/CEI no no $JAVA_PATH /home/lads/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no $MICO_ARCH_PATH ...mico-2.3.11/platforms/linuxGcc4DPOpt yes yes yes $LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes $MPICH_ARCH_PATH --------- env variable not set --------- no ------------------------------------------------------------------------------- Checking the FOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...FOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt yes yes yes $FOAM_USER_LIBBIN ...OpenFOAM/lads-1.3/lib/linuxGcc4DPOpt yes yes no $LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes ------------------------------------------------------------------------------- Software versions ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.1.0 /home/lads/OpenFOAM/linux/gcc-4.1.0-64/bin/gcc java 1.4.2_05 /home/lads/OpenFOAM/linux/j2sdk1.4.2_05/bin/java gzip 1.3.5 /bin/gzip tar 1.3.5 /bin/tar icoFoam ...M/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/icoFoam ------------------------------------------------------------------------------- Checking file/directory permissions... ------------------------------------------------------------------------------- File/directory Set Reqd Crit ------------------------------------------------------------------------------- Checking networking... ------------------------------------------------------------------------------- Action Result Crit ------------------------------------------------------------------------------- Pinging_PhantomWorks Successful yes Pinging_localHost Successful yes Test_rsh: Unsuccessful_connection_refused* yes Test_ssh: Unsuccessful_connection_refused* yes FATAL ERROR: No remote shell available. Foam1.3 enviroment requires either ssh and/or rsh. Contact your system administrator. ------------------------------------------------------------------------------- The system test has evoked 1 fatal error(s). Critical systems ok. Review the output for warning messages and consult the installation guide for trouble shooting. Now, I am getting really frustrated with this software. I have tried everything, and am at the limit of my linux knowledge/expertise. My group here at BOEING Australia are extremely interested in using this software and so I am now contemplating installing OpenSUSE 10.1 as no-one seems to have a problem once they download the libelf.so.0 from YaST. Last time I posted, some gentlemen from Adelaide Uni where kind enough to reply to my post about these issues with FoamX, libelf and Ubuntu. Yet as far as I can see, they too do not use the FoamX GUI. How can I learn OpenFoam without the GUI when all your tutes etc are using this FoamX GUI? I am stuck. Can anyone help? Please. Thanks for your time. Regards Shaun.D |
|
March 5, 2007, 04:31 |
Hi Shaun,
For me it sounds
|
#2 |
Member
rafal zietara
Join Date: Mar 2009
Location: Manchester, UK
Posts: 60
Rep Power: 17 |
Hi Shaun,
For me it sounds like you have problems with ssh not with OF. Can you use ssh (not in FOAM)? read your foamInstallationtest output carefully. you need to have either ssh or rsh. ssh preferable because it is secure. Second thing. You really do NOT need FoamX. Even if you manage to install it, you will drop it after several days of weeks(i bet). It is limited. I dropped it after two weeks and used it never again. good luck, rafal ps third thing you in the output you can also read that you do not have any mpi lib set correctly(this also can say about problems with remote shell). So far do not bother with mpi but keep this in mind when you will need to calculate something parallel. parallel, but for now do not bother. |
|
March 5, 2007, 04:37 |
Hi,
I know nothing about Ubun
|
#3 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Hi,
I know nothing about Ubuntu but is your libelf.so.0 a 32bit binary? If I'm not wrong you need 32bit libelf.so.0 to run the 32bit nsd. Basically it is preferable to install the 64bit version of OpenFOAM under a 64bit Linux. Since many of OpenFOAM users do so I think at least the probability of you getting any suggestion will be higher. |
|
March 5, 2007, 04:44 |
i didnt actually answer you qu
|
#4 |
Member
rafal zietara
Join Date: Mar 2009
Location: Manchester, UK
Posts: 60
Rep Power: 17 |
i didnt actually answer you questions
FoamX in only a front-end of OF in java. it works like a server that connects to a maschine. This is a reason why you need remote shell in FoamX and you do not need in icoFoam. You can learn everything without FoamX by typing all commands in shell. if you know what you want to do type a command in shell and output returns error and correct syntax (which you need). (list of commands you can find at the end of User Guide |
|
March 5, 2007, 18:03 |
Thanks to both of you gents fo
|
#5 |
Member
Shaun Darmody
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Thanks to both of you gents for your replys. I will install the 64bit version of OpenFOAM and will ignore trying to use FoamX.
I am unsure if my libelf.so.0 is 32bit binary. I did install the amd64bit-generic version of Ubuntu. I don't believe the MPI lib is an issue, as LAM is installed by default. Thanks again. |
|
March 6, 2007, 00:02 |
So, Takuya, I installed the 64
|
#6 |
Member
Shaun Darmody
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
So, Takuya, I installed the 64bit version of OpenFOAM 1.3 and guess what, FoamX worked straight away.
I guess your idea about the libelf being of 64bit form instead of 32bit was correct. Thanks |
|
March 14, 2007, 18:30 |
When I run the command, block
|
#7 |
New Member
Toni Toney
Join Date: Mar 2009
Posts: 15
Rep Power: 17 |
When I run the command, blockMesh . cavity, I get the following error message.
blockMesh: error while loading shared libraries: libmeshTools.so: cannot open shared object file: No such file or directory. Can someone help me with this? I just installed OpenFOAM 1.3 on AMD64 Opteron running SuSe Linux and am trying to test it. Thanks. |
|
March 14, 2007, 18:34 |
Toni, I would suggest you have
|
#8 |
Member
Shaun Darmody
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Toni, I would suggest you have not installed the OpenFoam source code either properly or not at all.
Make sure your installation is correct and that you have installed in sequence the source code and binary files in the correct location. See the readme file when you download OF 1.3 Regards Shaun.D |
|
March 14, 2007, 20:33 |
Did you set up the environment
|
#9 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Did you set up the environment variable WM_64 to indicate you are running a 64-bit version?
Installation from binaries shoule be pretty straightforward, based on the README file. Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
March 23, 2007, 06:17 |
did onebody help me!
i instal
|
#10 |
Member
hamdi
Join Date: Mar 2009
Posts: 75
Rep Power: 17 |
did onebody help me!
i installed a linux Mandriva in my loptop tosciba and i installed openfoam where i unpaked the paraview unde OpenFOAM dir not under OpenFOAM/linux/ and foaminstallationtest gives this: Shell: bash Host: localhost OS: Linux version 2.6.17-5mdv User: nacer User_config: /home/nacer/.bashrc Foam_config: /home/nacer/.OpenFOAM-1.3/bashrc sourced correctly. ------------------------------------------------------------------------------- Checking main FOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/nacer/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/nacer/OpenFOAM/nacer-1.3 yes no $FOAM_JOB_DIR /home/nacer/OpenFOAM/jobControl no yes ------------------------------------------------------------------------------- Checking the FOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/nacer/OpenFOAM/OpenFOAM-1.3 yes yes yes $FOAM_USER_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes no $FOAM_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes yes $WM_DIR /home/nacer/OpenFOAM/OpenFOAM-1.3/wmake yes yes yes $FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes $CEI_HOME /usr/local/ensight/CEI no no $JAVA_PATH /home/nacer/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no $MICO_ARCH_PATH ...mico-2.3.11/platforms/linuxGcc4DPOpt yes yes yes $LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes $MPICH_ARCH_PATH --------- env variable not set --------- no ------------------------------------------------------------------------------- Checking the FOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...FOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt yes yes yes $FOAM_USER_LIBBIN ...penFOAM/nacer-1.3/lib/linuxGcc4DPOpt yes yes no $LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes ------------------------------------------------------------------------------- Software versions ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.1.0 /home/nacer/OpenFOAM/linux/gcc-4.1.0/bin/gcc java 1.4.2_05 /home/nacer/OpenFOAM/linux/j2sdk1.4.2_05/bin/java gzip 1.3.5 /usr/bin/gzip tar 1.3.5 /bin/tar icoFoam ...M/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/icoFoam ------------------------------------------------------------------------------- Checking file/directory permissions... ------------------------------------------------------------------------------- File/directory Set Reqd Crit ------------------------------------------------------------------------------- Checking networking... ------------------------------------------------------------------------------- Action Result Crit ------------------------------------------------------------------------------- Pinging_localhost Successful yes Pinging_localHost Successful yes Test_rsh: No_telnet_running:_cannot_check* yes Test_ssh: No_telnet_running:_cannot_check* yes FATAL ERROR: No remote shell available. Foam1.3 enviroment requires either ssh and/or rsh. Contact your system administrator. and when i execute FoamX it gives me this: stareting menserver with inlet :localhost: 1234 nsd : error while loading shared libraries : libelf.so.0: cannot open object file: no such file or directory hamcer_n@hotmail.com |
|
March 23, 2007, 06:28 |
Hi hamdi!
Havn't used FoamX
|
#11 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi hamdi!
Havn't used FoamX in a long time, so I can only guess. The problem might be that nsd expects to find a libelf.so.0, but there is none on your system. Check with ls /usr/lib/libelf* which version are on your system. Then you might cheat with a symbolic link: ln -s /usr/lib/libelf.so.0.97 /usr/lib/libelf.so.0 (use a version that exists on your system)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
March 23, 2007, 09:09 |
thank you Bernhard Gschaider f
|
#12 |
Member
hamdi
Join Date: Mar 2009
Posts: 75
Rep Power: 17 |
thank you Bernhard Gschaider for your help;
i do what you sugget : when i type :ls /usr/lib/libelf* it gives: /usr/lib/libelf-0.120.so* (green color) /usr/lib/libelf.so.1 (blue color) and when i type: ln -s /usr/lib/libelf.so.0.97 /usr/lib/libelf.so.0 it gives: ln: creation d'un lien symbolique /usr/lib/libelf.so.0 vers /usr/lib/libelf.so.0.97 : permission non accordée (linux is in french version) hamdi. |
|
March 23, 2007, 09:55 |
You have to be root in order t
|
#13 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
You have to be root in order to create that link.
Dragos |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About FoamX | ivanyao | OpenFOAM Installation | 2 | September 21, 2008 22:24 |
Problem about FoamX | williamscn | OpenFOAM Installation | 8 | September 18, 2007 00:18 |
FoamX problem | richardhsieh | OpenFOAM Installation | 4 | September 17, 2007 23:41 |
FoamX | ianz8802 | OpenFOAM Installation | 2 | March 9, 2007 00:45 |
Run FoamX | ghazi | OpenFOAM Pre-Processing | 7 | July 9, 2006 15:48 |