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

OpenFOAM-1.6 install cookbook

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   January 27, 2010, 07:49
Default
  #261
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 175
Rep Power: 9
MadsR is on a distinguished road
I don't quite follow you. The wget commands you state seem to be correct, no?

Note: I just changed the scripts for Ubuntu 9.10: the fixup section should now auto-detect det version number of libstdc-files. Let me know if there is any problems, or if anyone have unresolved issues.

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

Old   February 1, 2010, 22:09
Default
  #262
New Member
 
Eric
Join Date: Jan 2010
Posts: 1
Rep Power: 0
eweber2 is on a distinguished road
I just installed OpenFoam1.6 on a brand new computer with 64-bit Ubuntu 9.10.

Everything in the cookbook worked for me.

On my old computer Paraview didn't work correctly (had to use vtk converter), now it works just fine.

Thanks Mads!
eweber2 is offline   Reply With Quote

Old   February 2, 2010, 04:18
Default
  #263
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 175
Rep Power: 9
MadsR is on a distinguished road
Great Eric! Happy foamin' :-)

I also installed on a new/fresh Ubuntu 9.10-64bit yesterday with the script, and everything works as it should. I never use paraFoam but always the foamToVTK and paraview method.

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

Old   February 2, 2010, 20:41
Default
  #264
Member
 
Join Date: Nov 2009
Posts: 48
Rep Power: 7
farhagim is on a distinguished road
Hey Guys,

I am new OpenFoam and Linux user. I have downloaded the OpenFoam1.6 and Install it successfully on Ubunto 9.1. and I Think I Install the Qt 4.3.5 correctly. Because When I type this Commend: qmake --version

I get this message:
QMake version 2.01a
Using Qt version 4.5.2 in /usr/lib

Then When I wanna use ParaView by typing this command:

paraFoam -case $FOAM_RUN/tutorials/incompressible/icoFoam/cavity { or typing the paraFoam}

I get this Error:

created temporary 'cavity.OpenFOAM'
/home/mehran/OpenFOAM/OpenFOAM-1.6/bin/paraFoam: 132: paraview: not found

I would be so grateful if you guys help me and tell exaclty what should I do with detail please ( Since I am new user ..)

Thanks,
farhagim is offline   Reply With Quote

Old   February 3, 2010, 03:50
Default
  #265
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 175
Rep Power: 9
MadsR is on a distinguished road
Hi farhagim - are you the same person who just wrote me a private email? Anyways, it is not clear whether you follow my script or not. So, are you? I haven't seen the error you mention when the script is used (at least not recently :-) ).

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

Old   February 3, 2010, 04:03
Default
  #266
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
Quote:
Originally Posted by dado View Post
Hi Mads,
I am trying to run script on the new Ubuntu 9.04 (64 bit) but I get a lot of:

/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld return 1 exit status
make: *** [/home/ninja/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libdynamicMesh.so] Error 1
Hi Mads,

My errors:

/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [/home/myfolds/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gcc/dirToStr
ing] Error 1
....

In addition, when I run:

ln -s `locate libgcc_s.so.` libgcc_s.so.1

it gave the information:

ln: target `libgcc_s.so.1' is not a directory


What's the matter, you think? Please help me out. Thanks.

Sandy

Last edited by sandy; February 3, 2010 at 04:26.
sandy is offline   Reply With Quote

Old   February 18, 2010, 05:35
Default
  #267
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 175
Rep Power: 9
MadsR is on a distinguished road
@sandy: Oh, I wasn't aware about this post - did it work out?

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

Old   February 18, 2010, 06:16
Default
  #268
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
Nein, I reinstalled the version to Ubuntu 9.04 but Ubuntu 9.10, now everything is very well ....
sandy is offline   Reply With Quote

Old   March 9, 2010, 07:56
Default
  #269
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 7
83_Ale_83 is on a distinguished road
I am re-installing openFoam, I don't know why I get this error

Quote:
12:46 ale@alien:~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64$ ln -s `locate libstdc++.so.6.0` libstdc++.so.6
ln: l'obiettivo "libstdc++.so.6" non una directory
12:49 ale@alien:~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64$
Ubuntu 9.10 64bit

"it's not a directory" what's up??

Thank you
__________________

83_Ale_83 is offline   Reply With Quote

Old   March 9, 2010, 08:10
Default
  #270
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Alessandro,

I was half way typing code for ensuring re-installations, but then I reread the install script...
You probably got that error because you didn't do a clean reinstall! The symbolic link probably already exists from the previous installation!
If you did do a clean install, do:
Code:
cd ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64
ls -l
And see the status of the files "libstdc++.so.6 libstdc++.so.6.orig libstdc++.so.6.0". If libstdc++.so.6 already exists as a link, then that's the problem!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 9, 2010, 08:40
Default
  #271
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 7
83_Ale_83 is on a distinguished road
Thank, this is the output,

Quote:
lrwxrwxrwx 1 ale ale 13 2010-03-09 12:44 libgcc_s.so -> libgcc_s.so.1
-rw-r--r-- 1 ale ale 486282 2009-07-02 21:31 libgcc_s.so.1.orig
-rw-r--r-- 1 ale ale 298120 2009-07-02 21:31 libgomp.a
-rwxr-xr-x 1 ale ale 1012 2009-07-02 21:31 libgomp.la
lrwxrwxrwx 1 ale ale 16 2010-03-09 12:44 libgomp.so -> libgomp.so.1.0.0
lrwxrwxrwx 1 ale ale 16 2010-03-09 12:44 libgomp.so.1 -> libgomp.so.1.0.0
-rwxr-xr-x 1 ale ale 149558 2009-07-02 21:31 libgomp.so.1.0.0
-rw-r--r-- 1 ale ale 170 2009-07-02 21:31 libgomp.spec
-rw-r--r-- 1 ale ale 1017000 2009-07-02 21:31 libiberty.a
-rw-r--r-- 1 ale ale 702846 2009-07-02 21:31 libmudflap.a
-rwxr-xr-x 1 ale ale 1033 2009-07-02 21:31 libmudflap.la
lrwxrwxrwx 1 ale ale 19 2010-03-09 12:44 libmudflap.so -> libmudflap.so.0.0.0
lrwxrwxrwx 1 ale ale 19 2010-03-09 12:44 libmudflap.so.0 -> libmudflap.so.0.0.0
-rwxr-xr-x 1 ale ale 312794 2009-07-02 21:31 libmudflap.so.0.0.0
-rw-r--r-- 1 ale ale 481888 2009-07-02 21:31 libmudflapth.a
-rwxr-xr-x 1 ale ale 1047 2009-07-02 21:31 libmudflapth.la
lrwxrwxrwx 1 ale ale 21 2010-03-09 12:44 libmudflapth.so -> libmudflapth.so.0.0.0
lrwxrwxrwx 1 ale ale 21 2010-03-09 12:44 libmudflapth.so.0 -> libmudflapth.so.0.0.0
-rwxr-xr-x 1 ale ale 323742 2009-07-02 21:31 libmudflapth.so.0.0.0
-rw-r--r-- 1 ale ale 90290 2009-07-02 21:31 libssp.a
-rwxr-xr-x 1 ale ale 1000 2009-07-02 21:31 libssp.la
-rw-r--r-- 1 ale ale 3574 2009-07-02 21:31 libssp_nonshared.a
-rwxr-xr-x 1 ale ale 982 2009-07-02 21:31 libssp_nonshared.la
lrwxrwxrwx 1 ale ale 15 2010-03-09 12:44 libssp.so -> libssp.so.0.0.0
lrwxrwxrwx 1 ale ale 15 2010-03-09 12:44 libssp.so.0 -> libssp.so.0.0.0
-rwxr-xr-x 1 ale ale 39771 2009-07-02 21:31 libssp.so.0.0.0
-rw-r--r-- 1 ale ale 12442020 2009-07-02 21:31 libstdc++.a
-rwxr-xr-x 1 ale ale 1027 2009-07-02 21:31 libstdc++.la
lrwxrwxrwx 1 ale ale 19 2010-03-09 12:44 libstdc++.so -> libstdc++.so.6.0.10
-rwxr-xr-x 1 ale ale 5154351 2009-07-02 21:31 libstdc++.so.6.0.10
lrwxrwxrwx 1 ale ale 19 2010-03-09 12:44 libstdc++.so.6.orig -> libstdc++.so.6.0.10
-rw-r--r-- 1 ale ale 765138 2009-07-02 21:31 libsupc++.a
-rwxr-xr-x 1 ale ale 965 2009-07-02 21:31 libsupc++.la
Can I continue with the installation??
__________________

83_Ale_83 is offline   Reply With Quote

Old   March 9, 2010, 09:07
Default
  #272
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by 83_Ale_83 View Post
Code:
lrwxrwxrwx 1 ale ale       19 2010-03-09 12:44 libstdc++.so ->  libstdc++.so.6.0.10
-rwxr-xr-x 1 ale ale  5154351 2009-07-02 21:31 libstdc++.so.6.0.10
lrwxrwxrwx 1 ale ale       19 2010-03-09 12:44 libstdc++.so.6.orig ->  libstdc++.so.6.0.10
Wait, you didn't say if you're trying to reinstall on top of an existing install or is it a new installation. And did you reinstall Ubuntu? Did you remove the line added to "~/.bashrc" that has ". ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc" in it?

Additionally, I should have tested this before, but when ln gives out that error, it's because locate found two libraries instead of just one. Run this:
Code:
locate libstdc++.so.6.0
It probably will output the two existing libraries.

At the very least, for things to go smoothly, you should start a new terminal after removing the added line to "~/.bashrc"

If you still get that same error, then edit the install script and change the locate part from:
Code:
locate libstdc++.so.6.0
to
Code:
locate libstdc++.so.6.0 | head -n 1
This way it'll use only the first file it finds If you want the last file found, than use tail instead of head

Mads, you might need to add this tip to your script

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 9, 2010, 09:19
Default
  #273
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 7
83_Ale_83 is on a distinguished road
First of all, thank you Bruno

So, while working I have done a mistake and I have erased all the folders/files inside the openFoam folder (rm -r *). After that I am trying to reinstall openFoam from the script, but I have got the error above.

I have deleted the line in bash file.

Quote:
locate libstdc++.so.6.0
Yes, two libraries found with this command, after that I have changed the script:
Quote:
locate libstdc++.so.6.0 | head -n 1
And I have got no errors.

Can I proceede to compile?
Thank again
__________________

83_Ale_83 is offline   Reply With Quote

Old   March 9, 2010, 09:24
Default
  #274
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by 83_Ale_83 View Post
First of all, thank you Bruno
(...)
Can I proceede to compile?
Thank again
You're welcome! And yes, I guess so... as long as you follow the script, you shouldn't run into other issues... except maybe the next locate command for the other library also giving two libraries

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 9, 2010, 10:25
Default
  #275
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 7
83_Ale_83 is on a distinguished road
A lots of errors..

Quote:
gcc -m64 -Wall -O3 -fPIC dirToString.c -o /home/ale/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gcc/dirToString
/usr/bin/ld: skipping incompatible /home/ale/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib64/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /home/ale/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [/home/ale/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gcc/dirToString] Errore 1
+ [ -n gcc ]
+ export CC=gcc
+ [ -n g++ ]
+ export CXX=g++
+ [ -n -m64 -fPIC ]
+ export CFLAGS=-m64 -fPIC
+ [ -n -m64 -fPIC ]
+ export CXXFLAGS=-m64 -fPIC
+ [ -n -m64 ]
+ export LDFLAGS=-m64
+ cd malloc
+ ./Allwmake
+ wmake libso hoard
/bin/sh: /home/ale/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gcc/wmkdep: not found
/usr/bin/ld: skipping incompatible /home/ale/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib64/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /home/ale/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [/home/ale/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libhoard.so] Errore 1
+ wmake libo fbsdmalloc
/bin/sh: /home/ale/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gcc/wmkdep: not found
ld -r -o /home/ale/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libfbsdmalloc.o Make/linux64GccDPOpt/fbsdmalloc.o
'/home/ale/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libfbsdmalloc.o' is up to date.
+ [ -r /home/ale/OpenFOAM/ThirdParty-1.6.x/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libmpi.so ]
+ echo have OPENMPI shared library
have OPENMPI shared library
+ cd scotch_5.1
+ wmake libso src/libscotch
/bin/sh: /home/ale/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gcc/wmkdep: not found
/bin/sh: /home/ale/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linux64Gcc/wmkdep: not found
and so on...

Maybe a fresh ubuntu installation will solve the problem?? Or what i have to do to reinstall openFoam without problems??

Thank you
__________________

83_Ale_83 is offline   Reply With Quote

Old   March 9, 2010, 10:43
Default
  #276
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by 83_Ale_83 View Post
Code:
/usr/bin/ld: skipping incompatible  /home/ale/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib64/libgcc_s.so  when searching for -lgcc_s
/usr/bin/ld: skipping incompatible  /home/ale/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../libgcc_s.so  when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
My guess is that the second locate of the install script failed to link to the correct library Thus the needed files for wmake to work (wmkdep and dirToString) don't get properly compiled

Quote:
Originally Posted by 83_Ale_83 View Post
Maybe a fresh ubuntu installation will solve the problem?? Or what i have to do to reinstall openFoam without problems??
Well, it would, but before you go on reinstalling the whole Ubuntu, backup the modified install script and nuke the whole OpenFOAM folder once again (or just rename/move it). Remove that line for OpenFOAM from the ~/.bashrc file (mentioned in a previous post). Launch a new terminal/console and relaunch the backed up script.

If it still breaks identically to your previous post, then check what
Code:
locate libgcc_s.so.
outputs. There are two hypothesis:
  1. locate returns two or more possible solutions, just as with the other library;
  2. for some reason, the found library is incompatible with the running gcc.

By the way, when you finally get OpenFOAM running again, I suggest doing a full backup of the OpenFOAM folders

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 9, 2010, 11:00
Default
  #277
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 7
83_Ale_83 is on a distinguished road
Delete the whole openFoam folders with rm -rf *
Edited .bashrc inside home folder

Still no solve I have the same errors

Quote:
15:58 ale@alien:~/Documenti/openFoam$ locate libstdc++.so.6.0
/home/ale/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib/libstdc++.so.6.0.10
/home/ale/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6.0.10
/home/ale/matlab2009b/sys/os/glnxa64/libstdc++.so.6.0.9
/home/ale/matlab2009b/toolbox/edalink/foundation/hdllink/scripts/linux32/libstdc++.so.6.0.9
/usr/lib/libstdc++.so.6.0.13
could be matlab the problem???
__________________

83_Ale_83 is offline   Reply With Quote

Old   March 9, 2010, 11:21
Default
  #278
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
OK, I had to go back to a few posts back, and figured out which libraries should be the correct links. Change the 2 locates on the script file to these respective versions:
Code:
locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1 
locate libgcc_s.so. | grep "^/lib" | head -n 1
Hopefully this will do the trick.
But first run these same lines in a terminal, just to confirm that they return the correct libraries.
The grep command is set here to find occurrences that start with /usr/lib and /lib, respectively.

Now use the new modified install version in a clean OpenFOAM folder, just in case
wyldckat is offline   Reply With Quote

Old   March 9, 2010, 11:23
Default
  #279
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 7
83_Ale_83 is on a distinguished road
Thank you again

Here the output

Quote:
16:23 ale@alien:~$ locate libstdc++.so.6.0 | grep "^/usr/lib" | head -n 1
/usr/lib/libstdc++.so.6.0.13
16:23 ale@alien:~$ locate libgcc_s.so. | grep "^/lib" | head -n 1
/lib/libgcc_s.so.1
16:23 ale@alien:~$
__________________

83_Ale_83 is offline   Reply With Quote

Old   March 9, 2010, 11:25
Default
  #280
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
OK, now it should work Do the changes to the script and do a new installation of OpenFOAM
wyldckat is offline   Reply With Quote

Reply

Thread Tools
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 On
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 00: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 00:48
Install openFOAM 1.6 on debian 32bit - blockMesh: command not found fossy OpenFOAM Installation 1 August 28, 2009 04:06
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial potac OpenFOAM Installation 3 August 27, 2009 09:04


All times are GMT -4. The time now is 20:26.