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

OpenFOAM-1.6 install cookbook

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2009, 16:51
Default
  #41
New Member
 
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 16
Aurel is on a distinguished road
Hi Mads,

first of all I like to thank you for your "cookbook".
Brilliant!
I'm working on a 64-bit ubuntu 9.04 version.
After three attempts of installation it seems that I'm pretty close to a successful installation.
At the moment I've got still two critcal errors. As a newbie I'm a little helpless.
It would be very kind if you could give me an advise.
Attached find below a excerpt of the "Checking Installation Script".

------------------------------------------------------
Checking installation - you should see NO criticals...
------------------------------------------------------
Executing /home/aurel/OpenFOAM/OpenFOAM-1.6.x/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: aurel-desktop
OS: Linux version 2.6.28-15-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/aurel/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/aurel/OpenFOAM/aurel-1.6.x yes no
$WM_THIRD_PARTY_DIR /home/aurel/OpenFOAM/ThirdParty-1.6.x yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/aurel/OpenFOAM/OpenFOAM-1.6.x yes yes yes

$FOAM_APPBIN ...6.x/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.6.x/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...6.x/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR .../aurel/OpenFOAM/OpenFOAM-1.6.x/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...M/OpenFOAM-1.6.x/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.6.x/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...FOAM/aurel-1.6.x/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...nmpi-1.3.3/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version :
Minimum required: 4.3.1

gcc
WARNING: Conflicting installations:
OpenFOAM settings : /home/aurel/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/aurel/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

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


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

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

done.

Regards

Aurel
Aurel is offline   Reply With Quote

Old   October 13, 2009, 23:49
Default Linux version and OF must be consistency
  #42
New Member
 
M. Li
Join Date: Apr 2009
Posts: 13
Rep Power: 16
cnlimin is on a distinguished road
Quote:
Originally Posted by Aurel View Post
Hi Mads,

first of all I like to thank you for your "cookbook".
Brilliant!
I'm working on a 64-bit ubuntu 9.04 version.
After three attempts of installation it seems that I'm pretty close to a successful installation.
At the moment I've got still two critcal errors. As a newbie I'm a little helpless.
It would be very kind if you could give me an advise.
Attached find below a excerpt of the "Checking Installation Script".

------------------------------------------------------
Checking installation - you should see NO criticals...
------------------------------------------------------
Executing /home/aurel/OpenFOAM/OpenFOAM-1.6.x/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: aurel-desktop
OS: Linux version 2.6.28-15-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/aurel/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/aurel/OpenFOAM/aurel-1.6.x yes no
$WM_THIRD_PARTY_DIR /home/aurel/OpenFOAM/ThirdParty-1.6.x yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/aurel/OpenFOAM/OpenFOAM-1.6.x yes yes yes

$FOAM_APPBIN ...6.x/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.6.x/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...6.x/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR .../aurel/OpenFOAM/OpenFOAM-1.6.x/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...M/OpenFOAM-1.6.x/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.6.x/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...FOAM/aurel-1.6.x/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...nmpi-1.3.3/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version :
Minimum required: 4.3.1

gcc
WARNING: Conflicting installations:
OpenFOAM settings : /home/aurel/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/aurel/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

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


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

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

done.

Regards

Aurel
Hi, Aurel,
I also met the same problem above when I install OF. the problem is resulted probably by the version disagreement between OF and Linux.
Suggest you carefully check the downloaded OF version (32 or 64 bit) and your installed Linux version (32 or 64 bit).

Good luck!!

Michael, Min LI
cnlimin is offline   Reply With Quote

Old   October 14, 2009, 03:20
Default
  #43
New Member
 
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 16
Aurel is on a distinguished road
Quote:
Originally Posted by cnlimin View Post
Hi, Aurel,
I also met the same problem above when I install OF. the problem is resulted probably by the version disagreement between OF and Linux.
Suggest you carefully check the downloaded OF version (32 or 64 bit) and your installed Linux version (32 or 64 bit).

Good luck!!

Michael, Min LI



Good morning Michael,

I'm working with Ubuntu 9.04 64-bit version and I used the 64-bit installation script of Mads. What did I wrong?

Regards

Aurel
Aurel is offline   Reply With Quote

Old   October 14, 2009, 03:36
Default
  #44
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
I am glad you liked the script, although you are still facing some trouble. Let's get you pass that bump in the road.

I remember such error, and first thing that comes to my mind is that you may not have sourced the file
. ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
Secondly, is the following link created:
ln -s ~/OpenFOAM/ThirdParty-1.6 ~/OpenFOAM/ThirdParty-1.6.x
Third (I could go on here :-)), are you positive, that Allwmake is successful? Try to run it again, and it will update whatever file is not compiled.

Let me know how it works out while I try to remember what this error is caused by. Maybe someone else remembers?

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   October 14, 2009, 05:04
Default
  #45
New Member
 
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 16
Aurel is on a distinguished road
Hi Mads,

the above listed bash commands are exactly the same like in your installation script. I see no difference at all. (only that: in the installation script behind the "ln -s" command are two blanks! could this be responsible for the error?)
I'm pretty sure that the "Allwmake" worked successfully. Compiling time took at least 3 hours. But this is probably no indication for a complete installation.
Anyway, in the evening I will try your suggestions.

Best regards

Aurel







/Mads[/QUOTE]
Aurel is offline   Reply With Quote

Old   October 14, 2009, 05:16
Default
  #46
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
They are the exact same commands but I have experienced that some times, when running the script by manually copying each line and inserting them into the command window, one tends to loose a line or a command is not recognised. It was just to make sure that didn't happen in your case.

The Allwmake can easily take more than 3 hours, depending on your hardware.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   October 14, 2009, 13:39
Default
  #47
New Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
luka is on a distinguished road
Hi MadsR,

Couple of questions regarding your cookbook. The thing is, I'm total Linux newb (downloaded Ubuntu 9.04 couple of hours ago) and it looks like I'm doing something wrong. I started your scipt in terminal (did c/p since didn't know better) and it started to "do its thing". The procedure didn't last as long as you said (all in all 20-30 mins. max), didn't get any errors (think). The problem is, I don't know where to start openFoam, so I suspected the script wasn't finished (but then again, I didn't get the message I would kill the process). Obviously I'm doing something wrong. If you have time, could you please give me step-by-step procedure for complete linux newb.

Thanks.
luka is offline   Reply With Quote

Old   October 15, 2009, 03:47
Default
  #48
New Member
 
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 16
Aurel is on a distinguished road
Quote:
Originally Posted by MadsR View Post
They are the exact same commands but I have experienced that some times, when running the script by manually copying each line and inserting them into the command window, one tends to loose a line or a command is not recognised. It was just to make sure that didn't happen in your case.

The Allwmake can easily take more than 3 hours, depending on your hardware.

/Mads
Good morning Mads,

I did what you told me and it seems to work. There are still some "no's" in the checking installation script.
Is it neccessary that there are only "yes"?
Below find the checking installation print. What is your opinion? Does it look ok? Are there still some installation work neccessary?

Best regards

Aurel

Checking installation - you should see NO criticals...
------------------------------------------------------
Executing /home/aurel/OpenFOAM/OpenFOAM-1.6.x/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: aurel-desktop
OS: Linux version 2.6.28-15-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/aurel/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/aurel/OpenFOAM/aurel-1.6.x yes no
$WM_THIRD_PARTY_DIR /home/aurel/OpenFOAM/ThirdParty-1.6.x yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/aurel/OpenFOAM/OpenFOAM-1.6.x yes yes yes

$FOAM_APPBIN ...6.x/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.6.x/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...6.x/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR .../aurel/OpenFOAM/OpenFOAM-1.6.x/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...M/OpenFOAM-1.6.x/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.6.x/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...FOAM/aurel-1.6.x/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...nmpi-1.3.3/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.3.3 ...M/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.20 /bin/tar
icoFoam 1.6.x ...penFOAM-1.6.x/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

Critical systems ok.


done.

: command not foundine 48:
aurel@aurel-desktop:~$

Aurel is offline   Reply With Quote

Old   October 15, 2009, 03:57
Default
  #49
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
Aurel: I have never seen ": command not foundine 48: " before. Apart from that, you should be fine. Does it work? :-)

Luka: what does c/p mean? :-) if it only took 30 minutes you either have a very fast computer or the script died somewhere. Try copying each line with the mouse and paste them into the command window, and see what happens at each command. This should work. Remember to be logged in as the user who are going to run OpenFOAM (that is not as root or anything else).

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   October 15, 2009, 05:27
Default
  #50
New Member
 
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 16
Aurel is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Aurel: I have never seen ": command not foundine 48: " before. Apart from that, you should be fine. Does it work? :-)


/Mads

Hi Mads,

are there any test cases available for running the program to see previously if the system is working?
Do have a guidance about that?
I know that on the OF homepage are informations given.
Before I'm able to start my own case I have to learn to work with OF.

Best regards

Aurel
Aurel is offline   Reply With Quote

Old   October 15, 2009, 05:34
Default
  #51
New Member
 
Jan
Join Date: Oct 2009
Location: Copenhagen, Denmark
Posts: 1
Rep Power: 0
JanJ is on a distinguished road
Hi Mads

Thanks for the excelent script. Saved my butt in a tight spot... Worked perfectly!

The FORCE is still with you

/Jan
JanJ is offline   Reply With Quote

Old   October 15, 2009, 06:44
Default
  #52
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
Aurel: sure. The first thing you could try is just to type icoFoam. You will see either 1) command not found or 2) some output from OpenFOAM which states that it can't see any case to run. Secondly you should make a directory in your home folder and copy a simple cavity-test-case to it:

cd ~
mkdir myOpenFoamCases
cd myOpenFoamCases
cp -r ~/OpenFOAM/OpenFOAM-1.6.x/tutorials/incompressible/icoFoam/cavity .
cd cavity
blockMesh (generates a predefined mesh)
icoFoam (runs icofoam)

then use paraFoam to view the results.

Jan: Hi Jan! Happy to help you. Please keep me posted on your advances with OpenFOAM :-)

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   October 15, 2009, 16:13
Default
  #53
New Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
luka is on a distinguished road
Hi MadsR,

I followed your tips and it seems that every thing went fine (Base configuration ok.

Critical systems ok.). Thanks for the script. Rep point for you.
luka is offline   Reply With Quote

Old   October 15, 2009, 16:20
Default
  #54
New Member
 
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 16
Aurel is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Aurel: sure. The first thing you could try is just to type icoFoam. You will see either 1) command not found or 2) some output from OpenFOAM which states that it can't see any case to run. Secondly you should make a directory in your home folder and copy a simple cavity-test-case to it:

cd ~
mkdir myOpenFoamCases
cd myOpenFoamCases
cp -r ~/OpenFOAM/OpenFOAM-1.6.x/tutorials/incompressible/icoFoam/cavity .
cd cavity
blockMesh (generates a predefined mesh)
icoFoam (runs icofoam)

then use paraFoam to view the results.

/Mads

Hi Mads,

again thank you for your assistance.
1) icoFoam gave me an output.
2) I copied "cavity" in the directory /myOpenFoamCases
3) blockMesh gave following output


aurel@aurel-desktop:~/myOpenFoamCases/cavity$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6.x-99d4b831e6f2
Exec : blockMesh
Date : Oct 15 2009
Time : 21:10:24
Host : aurel-desktop
PID : 7486
Case : /home/aurel/myOpenFoamCases/cavity
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time


Creating block mesh from
"/home/aurel/myOpenFoamCases/cavity/constant/polyMesh/blockMeshDict"
Creating blockCorners
Creating curved edges
Creating blocks
Creating patches
Creating block mesh topology
Default patch type set to empty
Check block mesh topology
Basic statistics
Number of internal faces : 0
Number of boundary faces : 6
Number of defined boundary faces : 6
Number of undefined boundary faces : 0
Checking patch -> block consistency
Creating block offsets
Creating merge list .
Creating points with scale 0.1
Creating cells
Creating patches
Creating mesh from block mesh
Default patch type set to empty
Writing polyMesh


4) icoFoam gave following output for a lot time steps (the first time steps are listed below):

time step continuity errors : sum local = 9.45906e-09, global = -3.01342e-19, cumulative = 3.75172e-18
ExecutionTime = 0.13 s ClockTime = 0 s

Time = 0.275

Courant Number mean: 0.116922 max: 0.852131
DILUPBiCG: Solving for Ux, Initial residual = 2.29666e-06, Final residual = 2.29666e-06, No Iterations 0
DILUPBiCG: Solving for Uy, Initial residual = 4.82143e-06, Final residual = 4.82143e-06, No Iterations 0
DICPCG: Solving for p, Initial residual = 1.17435e-06, Final residual = 7.37825e-07, No Iterations 1
time step continuity errors : sum local = 8.44922e-09, global = 6.18731e-19, cumulative = 4.37045e-18
DICPCG: Solving for p, Initial residual = 1.03418e-06, Final residual = 6.73945e-07, No Iterations 1
time step continuity errors : sum local = 7.93654e-09, global = -1.09883e-18, cumulative = 3.27162e-18
ExecutionTime = 0.13 s ClockTime = 0 s

Time = 0.28

Courant Number mean: 0.116922 max: 0.852131
DILUPBiCG: Solving for Ux, Initial residual = 2.15919e-06, Final residual = 2.15919e-06, No Iterations 0
DILUPBiCG: Solving for Uy, Initial residual = 4.5588e-06, Final residual = 4.5588e-06, No Iterations 0
DICPCG: Solving for p, Initial residual = 8.87539e-07, Final residual = 8.87539e-07, No Iterations 0
time step continuity errors : sum local = 9.6874e-09, global = 3.59741e-19, cumulative = 3.63136e-18
DICPCG: Solving for p, Initial residual = 1.11354e-06, Final residual = 7.94958e-07, No Iterations 1
time step continuity errors : sum local = 8.94508e-09, global = -8.45544e-19, cumulative = 2.78582e-18
ExecutionTime = 0.13 s ClockTime = 0 s

.... and so on.5. paraFoam works, but I see no results!
Do you have an idea what did I wrong.

Best regards

Aurel



Aurel is offline   Reply With Quote

Old   October 15, 2009, 17:05
Default New to Openfoam
  #55
Member
 
m.maneshi's Avatar
 
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 16
m.maneshi is on a distinguished road
any tips??
gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
thx alot.
m.maneshi is offline   Reply With Quote

Old   October 16, 2009, 03:42
Default
  #56
Member
 
Jinbiao Xiong
Join Date: Oct 2009
Location: China/Japan
Posts: 50
Rep Power: 16
JinBiao is on a distinguished road
Send a message via MSN to JinBiao
Hi, Mads.

I am installing on OF 1.6 on Ubuntu 9.04 64 bit using your 64 bit script. But I got some errors. Follow are some of them.

Quote:
/lib/../lib64/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libscotch.so] Error 1

/usr/bin/ld: cannot find -lscotch
collect2: ld returned 1 exit status
make: *** [/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libdecompositionMethods.so] Error 1

/usr/bin/ld: cannot find -ldecompositionMethods
collect2: ld returned 1 exit status
make: *** [/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libmeshTools.so] Error 1

/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make: *** [/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libfiniteVolume.so] Error 1
I think dado had similar problems. But he got them solved with the 64-bit script. Could you give me some advices?

Thanks.

Jin
JinBiao is offline   Reply With Quote

Old   October 16, 2009, 23:46
Default
  #57
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Jin, looks like a problem with zlib. Manually execute sudo apt-get install zlib1g-dev and if that works try executing the script again. If not, post the error.
akidess is offline   Reply With Quote

Old   October 17, 2009, 02:54
Default
  #58
Member
 
Jinbiao Xiong
Join Date: Oct 2009
Location: China/Japan
Posts: 50
Rep Power: 16
JinBiao is on a distinguished road
Send a message via MSN to JinBiao
Hi Akidess, thanks for the reply. I tried to execute your script to update the zlib. But it shows my zlib is the newest version.

And I am wondering whether the error is related to the hardware configuration of my computer. This computer has 16 CPU cores. The type is Intel Xeon CPU W5590. The operation system is Ubuntu 9.04.

Here I attach the details of the first error about zlib. It may provide some information about error.

Quote:
SOURCE=library_error_exit.c ; gcc -m64 -Dlinux64 -DWM_DP -Wall -O3 -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -I../../include -DSCOTCH_VERSION=\""5.1"\" -IlnInclude -I. -I/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/library_error_exit.o

/usr/bin/ld: /lib/../lib64/libz.a(gzio.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

/lib/../lib64/libz.a: could not read symbols: Bad value

collect2: ld returned 1 exit status

make: *** [/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libscotch.so] Error 1
Thanks.

Jin

Last edited by JinBiao; October 17, 2009 at 04:10.
JinBiao is offline   Reply With Quote

Old   October 17, 2009, 15:43
Default
  #59
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Jin, this is definitely a software problem. Do you have the file OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libz.so? If so, try

export LD_LIBRARY_PATH=$HOME/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/:${LD_LIBRARY_PATH}

and then recompile with ./Allwmake.

This seems to be a problem with how the system zlib library was compiled. The installation script might have to be changed to accommodate for this...
akidess is offline   Reply With Quote

Old   October 19, 2009, 00:31
Default
  #60
Member
 
Jinbiao Xiong
Join Date: Oct 2009
Location: China/Japan
Posts: 50
Rep Power: 16
JinBiao is on a distinguished road
Send a message via MSN to JinBiao
Akidess, I can not find the libz.so under the directory $HOME/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/. But there is a file libz.so.1.2.3.3 in /lib/. So I made a link $HOME/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libz.so directing to /lib/libz.so.1.2.3.3. It does work. I successfully compiled the libscotch.so.

But now I still have one error. It is caused by cmake. The error I got is as follows.

Quote:

make[3]: Leaving directory `/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam'

+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
./Allwmake: 1: cmake: not found
+ make
make[3]: Entering directory `/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt'

make[3]: *** No targets specified and no makefile found. Stop.

make[3]: Leaving directory `/home/openfoam/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt'

make[2]: *** [PV3FoamReader] Error 2
This lead to a failure to compile the applications.

However, when I test the installation with foamInstallationTest

I got:

Quote:
Base configuration ok.

Critical systems ok.


done.


What should I do then?

Thanks.

Jin
JinBiao 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
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 01:48
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 01:48
Install openFOAM 1.6 on debian 32bit - blockMesh: command not found fossy OpenFOAM Installation 1 August 28, 2009 05:06
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial potac OpenFOAM Installation 3 August 27, 2009 10:04


All times are GMT -4. The time now is 11:06.