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

Installation problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2005, 14:19
Default I was trying to install the O
  #1
Andrei Smirnov (Smirnov)
Guest
 
Posts: n/a
I was trying to install the OpenFOAM on Linux P4 Dell computer:

$ uname -a
Linux smirnov 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux

It did not work. First, running
bin/foamInstallationTest
reports a critical error, which I don't know how to correct:

-------------------------------------------------
Software Version Location
-------------------------------------------------
gcc 3.2.3 /usr/bin/gcc
java 1.4.2_05 /usr/java/j2sdk1.4.2_05/bin/java
gzip 1.3.3 /usr/bin/gzip
tar 1.3.3 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR
----------------------------------------------

Secondly, running Allmake produces these errors:

/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status

I also wonder if it is possible not to install
the package into $HOME/OpenFOAM as recommended
in README, but to use /usr/local/OpenFOAM instead?
If so, how to do that?

I would appreciate your help very much. Thanks,

A.Smirnov
  Reply With Quote

Old   January 29, 2005, 17:28
Default The downloadable binaries of
  #2
Eugene de Villiers (Eugene)
Guest
 
Posts: n/a
The downloadable binaries of OpenFOAM have been compiled using gcc-3.4.3 with Glibc-2.3+. This means you need a relatively new version of linux (Redhat 9+, Suse 9+, etc.) on which you also need to install gcc-3.4.3 as instructed on the download page. Alternatively you have to compile the source code yourself.

To install OpenFOAM in a directory other than the default one, you need to edit 2 things. First change the enviromental variable WM_PROJECT_INST_DIR= in OpenFOAM-1.0.2/.OpenFOAM-1.0.2/bashrc (cshrc if you are using tc- or cshell) to your new install directory. Secondly, you need to source this bashrc file from you personal configuration file i.e.
". /usr/local/OpenFOAM/OpenFOAM-1.0.2/.OpenFOAM-1.0.2/bashrc"
to set up your OpenFOAM enviroment.
  Reply With Quote

Old   January 30, 2005, 15:32
Default > Alternatively you have to co
  #3
Andrei Smirnov (Smirnov)
Guest
 
Posts: n/a
> Alternatively you have to compile the source
> code yourself.

That's exactly what I was trying to do. But
running Allmake would produce many errors with
unresolved libraries. Here are examples of the last ones I could see in the Allmake terminal output:

....
/usr/bin/ld: cannot find -lfoamUtil
collect2: ld returned 1 exit status
make: *** [/home/andrei/OpenFOAM/OpenFOAM-1.0.2/applications/bin/linuxOpt/foamDebugSwitches] Error 1

For this one I tried to locate foamUtil inside the OpenFOAM directory, but did not find any libraries, only sources:

[OpenFOAM-1.0.2]$ find . -name "*foamUtil*"
./src/foamUtil
./src/foamUtil/lnInclude/libfoamUtil.C
./src/foamUtil/libfoamUtil.C

Another set of errors relates to lam:

....
/home/andrei/OpenFOAM/OpenFOAM-1.0.2/lib/linuxOpt/lam-7.1.1/libPstream.so: undefined reference to `lam_mpi_comm_world'
/home/andrei/OpenFOAM/OpenFOAM-1.0.2/lib/linuxOpt/lam-7.1.1/libPstream.so: undefined reference to `lam_mpi_packed'
collect2: ld returned 1 exit status
make: ***
[/home/andrei/OpenFOAM/OpenFOAM-1.0.2/applications/bin/linuxOpt/chemkinToFoam] Error 1

I checked on the lam package, and it is instanlled:
[andrei@smirnov OpenFOAM-1.0.2]$ lamboot -V

LAM 6.5.9/MPI 2 C++ - Indiana University

Arch: i386-redhat-linux-gnu
RPI: usysv

However, $LAMHOME points to the lam-7.1.1 inside
$HOME/OpenFOAM tree:
/home/andrei/OpenFOAM/OpenFOAM-1.0.2/src/lam-7.1.1

It appears to be the sourses. However, the installed version comes in binaries. I'm not sure what I should do about this.

Also, after the compilation the
foamInstallationTest only one
critical error:

icoFoam *** not installed ***
CRITICAL ERROR

Again, I saw icoFoam.C source, bu could not find any *icoFoam*.so library files.

Do you think it will still be partially working given all these problems? Any suggestions on how to correct these?

Best regards,

Andrei
  Reply With Quote

Old   January 31, 2005, 07:52
Default Heya, It looks like the sh
  #4
Hrvoje Jasak (Hjasak)
Guest
 
Posts: n/a
Heya,

It looks like the shell did not pick up the new libraries. Open another shell, update the environment and run Allwmake again:

source ~/.login ; source ~/.cshrc ; rehash
foam ; Allwmake

icoFoam is a top-level code and will produce an executable, not a library. Mine lives in:

/home/coyote/hjasak/OpenFOAM/OpenFOAM-1.0/applications/bin/linuxOpt/icoFoam

Good luck,

Hrv
  Reply With Quote

Old   January 31, 2005, 11:10
Default I saw you were using csh, so
  #5
Andrei Smirnov (Smirnov)
Guest
 
Posts: n/a
I saw you were using csh, so I switched to tcsh,
and sourced
$HOME/OpenFOAM/OpenFOAM-1.0/.OpenFOAM-1.0/cshrc
as recommended in README.
After this ./Allmake worked without a glitch and
bin/foamInstallationTest did not produce any errors.
It appears that something must be wrong with
bschrc files. I wonder if anyone really used bash
during the installation?

Andrei
  Reply With Quote

Old   January 31, 2005, 14:41
Default I am attempting to use bash.
  #6
Norma McKee (Mckee)
Guest
 
Posts: n/a
I am attempting to use bash. I am building from source now. Is it ok to use bash?
  Reply With Quote

Old   January 31, 2005, 16:36
Default Foam should build both with t
  #7
Hrvoje Jasak (Hjasak)
Guest
 
Posts: n/a
Foam should build both with tcsh and bash. The deal in the old days was that Henry was using bash and I'm using tcsh, i.e. both environments are used and updated regularly.

To my knowledge, both shells should build and run fine - any errors (with as much details as possible) would be appreciated.

Hrv
  Reply With Quote

Old   February 22, 2005, 13:23
Default Hello. I'm new to OpenFOAM. Th
  #8
Ervin Adorean (Adorean)
Guest
 
Posts: n/a
Hello. I'm new to OpenFOAM. The installationtest gives 1 critical error: icoFoam *** not installed *** . Can anybody help me? Thanks.
Ervin

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: isi014.mot.upv.es
OS: Linux version 2.6.3-7mdk
User: ervin
User_config: /home/ervin/.bashrc
Foam_config: /home/ervin/.OpenFOAM-1.0.2/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/ervin/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/ervin/OpenFOAM/ervin-1.0.2 no no
$FOAM_JOB_DIR /home/ervin/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/ervin/OpenFOAM/OpenFOAM-1.0.2 yes yes yes

$FOAM_USER_APPBIN ...rvin-1.0.2/applications/bin/linuxOpt no no
$FOAM_APPBIN ...FOAM-1.0.2/applications/bin/linuxOpt yes yes yes
$WM_DIR .../ervin/OpenFOAM/OpenFOAM-1.0.2/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes yes yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /home/ervin/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH ...2/src/mico-2.3.11/platforms/linuxOpt no yes
$LAM_ARCH_PATH ...0.2/src/lam-7.1.1/platforms/linuxOpt no 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 ...OpenFOAM/OpenFOAM-1.0.2/lib/linuxOpt yes yes yes
$FOAM_USER_LIBBIN ...in/OpenFOAM/ervin-1.0.2/lib/linuxOpt no no
$LAM_ARCH_PATH ...0.2/src/lam-7.1.1/platforms/linuxOpt no yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 3.4.3 /home/ervin/OpenFOAM/linux/gcc-3.4.3/bin/gcc
java 1.4.2_05 /home/ervin/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H
gzip /bin/gzip
tar /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR

-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_isi014.mot.upv.es Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

[ervin@isi014 bin]$
  Reply With Quote

Old   April 6, 2005, 08:11
Default i have the same problem, i hav
  #9
anton322322
Guest
 
Posts: n/a
i have the same problem, i have
bash, RH9-standard installation
  Reply With Quote

Old   April 6, 2005, 08:36
Default Have you installed both the so
  #10
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Have you installed both the source and the binaries?
eugene is offline   Reply With Quote

Old   April 6, 2005, 23:18
Default I have the same issue. I have
  #11
New Member
 
Ron W Cresswell
Join Date: Mar 2009
Posts: 18
Rep Power: 17
roncresswell is on a distinguished road
I have the same issue. I have installed source, binaries and third party tools (except paraview). Is it possible that the binary distribution for 1.1 is incomplete? Does one *have* to compile everything just to get icoFoam to be recognized?

(I'm running on Fedora Core 3 and using bash, btw)
roncresswell is offline   Reply With Quote

Old   April 7, 2005, 02:50
Default The binary distribution of 1.1
  #12
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
The binary distribution of 1.1 is complete and has been installed successfully by a large number of people. However, it was compiled on a SuSE 9.1 machine not particularly for RedHat but this has not caused problems for RedHat users in the past.
henry is offline   Reply With Quote

Old   April 7, 2005, 02:54
Default I have installed OpenFoam on F
  #13
komel
Guest
 
Posts: n/a
I have installed OpenFoam on Fedora Core 3 using bash and I didn't encounter any problems.
  Reply With Quote

Old   April 7, 2005, 19:56
Default Could one of you having this p
  #14
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Could one of you having this problem please type:

ls -la $FOAM_APPBIN
ls -la $FOAM_LIBBIN
ls -la $LAM_ARCH_PATH

And let me know what the outcome of each is. If you are not picking up icoFoam, either your path is wrong (unlikely) or your binaries are installed incorrectly or incompletely.

I noticed in one of the test outputs above, the $LAM_ARCH_PATH is missing as well. This is a pretty critical component as well.
eugene is offline   Reply With Quote

Old   April 8, 2005, 00:46
Default I went through foamInstallatio
  #15
New Member
 
Ron W Cresswell
Join Date: Mar 2009
Posts: 18
Rep Power: 17
roncresswell is on a distinguished road
I went through foamInstallationTest last night to see what it was looking for, and saw that it was looking in $FOAM_APPBIN, so I checked that and it *is* set correctly, however, the directory was empty.

I then looked back through my bash history - and this is where it gets embarrasing - I'd upacked the source distribution but only *listed* the binary distribution - doh. A quick "tar xvf" later and she seems to be happy ;^)

So for the record, "icoFoam - not found CRITICAL ERROR" probably means the binary distribution hasn't been unpacked, even if you think you remember doing it!
roncresswell is offline   Reply With Quote

Old   April 28, 2005, 16:17
Default Attempt runFoamX causes system
  #16
New Member
 
Vlad Bezprozvannykh
Join Date: Mar 2009
Location: Edmonton, Alberta, Canada
Posts: 1
Rep Power: 0
vlabez is on a distinguished road
Attempt runFoamX causes system crash.
vlabez is offline   Reply With Quote

Old   May 3, 2005, 12:08
Default Does any one have good notes o
  #17
amadou
Guest
 
Posts: n/a
Does any one have good notes on installing openFoam on RedHat Enterprise. It is clear to me that I should unpack OpenFoam-1-1.general.gtgz in $HOME/OpenFoam. But it is not clear as to where to unpack the rest of the files like OpenFoam-1.1-linuxOpt.gtgz, gcc-3.4.3.tgz,paraview-1.8.5.tgz, and j2sdk1.4.2_05.tgz,
Regards,
Amadou
  Reply With Quote

Old   May 3, 2005, 12:19
Default See http://www.opencfd.co.u
  #18
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
See

http://www.opencfd.co.uk/openfoam/linux.html

(accessible through Download and click on Linux)
mattijs is offline   Reply With Quote

Old   October 23, 2006, 02:30
Default Hi, I have problem with ico
  #19
mss
Guest
 
Posts: n/a
Hi,

I have problem with icoFoam. I installed the OpenFoam-1.3(essential to all platforms) on the Linux Suse 10.1 (x86-64).

Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.0 /home/margst/OpenFOAM/linuxAMD64/gcc-4.1.0/bin/gcc
java 1.4.2_05 /home/margst/OpenFOAM/linuxAMD64/j2sdk1.4.2_05/bin/java
gzip 1.3.5 /usr/bin/gzip
tar 1.3.5 /bin/tar
icoFoam *** not installed ***
CRITICAL ERRROR

-------------------------------------------------

I would appreciate your help very much. Thanks,
Rita
  Reply With Quote

Old   May 6, 2007, 06:56
Default I have tried to install OpenFO
  #20
ranjan_1947yahoocom
Guest
 
Posts: n/a
I have tried to install OpenFOAM -1.3, but got this error
I am using bash and

. ~/.bashrc
Executing: /home/ranjan/OpenFOAM/OpenFOAM-1.3/.bashrc
Executing: /home/ranjan/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/ensightFoam/bashrc
Executing: /home/ranjan/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/paraview/bashrc

uname -a
Linux ged 2.6.18-4-686 #1 SMP Wed Feb 21 16:06:54 UTC 2007 i686 GNU/Linux

gcc-v
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

and i got this error
/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status

make: *** [/home/ranjan/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/foamInfoExec ] Error 1
  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
Installation Problem velan OpenFOAM Installation 3 December 16, 2008 04:17
installation problem Dr C.Bhasker Siemens 1 September 13, 2006 07:01
Installation Problem Sundar.M Siemens 0 June 27, 2006 23:42
Installation Problem Meenu FLUENT 2 April 22, 2006 14:29
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 04:07


All times are GMT -4. The time now is 05:43.