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   January 12, 2010, 18:16
Default
  #241
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 16
bookie56 is on a distinguished road
Hi guys

CedricVH

I noticed your little addition for the updated karmic, so I added it before runnng the script.

I am working on a Swedish version of Ubuntu. I ran the script and the funny thing is it worked itself through the list and then closed the terminal .....taking only five minutes tops?

Have I done something wrong? Is it compiling even if the terminal is closed? Not seeing much activity from the processor?

Sorry for so many questions...got my customer waiting for his computer...and he has just worked out that I am bookie56...LOL

Can someone give me some clarity on this....Please!

bookie56
bookie56 is offline   Reply With Quote

Old   January 13, 2010, 03:14
Default
  #242
New Member
 
Calobra's Avatar
 
Ruben Wetind
Join Date: Dec 2009
Location: Alnö Sweden
Posts: 6
Rep Power: 16
Calobra is on a distinguished road
Hi all - and bookie56.
I'm sure CedricVH and wyldckat gave you a deadly virusscript - effectively eating all your customers computers up by now .

So what happened after that bookie? Could you restart with better results?

Calobra - the actual quite friendly "customer"
Calobra is offline   Reply With Quote

Old   January 13, 2010, 03:46
Default
  #243
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 16
83_Ale_83 is on a distinguished road
Hi Bookie,
It's very strange because the installation on my notebook with intel T9300 takes almost 1hour and half and at the end the console doesn't close , Have you check the log file? Have you ceck the installation?
__________________

83_Ale_83 is offline   Reply With Quote

Old   January 13, 2010, 04:40
Default
  #244
Member
 
Wolfram Kretzschmar
Join Date: Dec 2009
Posts: 71
Rep Power: 16
Wolle is on a distinguished road
Hi,

try to run every step with

$ processname 2>&1 | tee processnamelogfile

That way you can observe all the messages (stdout and errout) while running and write them in a logfile at the same time. This might give further information, even after the strange closing of the terminal.

Cheers
Wolle
Wolle is offline   Reply With Quote

Old   January 13, 2010, 06:42
Default
  #245
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 16
bookie56 is on a distinguished road
Hi guys

Thanks for your great response! I am at a loss to be able to say what I did wrong...

I have just run ./foamInstallationTest and that came up with

Quote:

FATAL ERROR: OpenFOAM environment not configured

Please refer to installation section of the readme file....bla bla bla

OK! before running the script ...I made the change that I have already mentioned.

But before that I had changed a couple of settings according to other info I had seen....might be that that is affecting the output now...?

At the moment ...I feel like just reinstalling Ubuntu Karmic 64bit and follow this thread so that we have more chance of finding the problem...

Wolle

OK! I am no idiot but...can you show me how to devide up the script in smaller individual commands so that I see where to start.


83_Ale_83

Where do I find the log...so that we can look at that..


Calobra

I will admit that the script went its cycle in about 5 minutes tops and then went back to user mode...waiting for next job...LOL

I ran the script again and then it just went through it quickly and then shut the terminal...

Could do with some input so that my customer don't send out a search party after his computer...LOL

bookie56
bookie56 is offline   Reply With Quote

Old   January 13, 2010, 07:53
Default
  #246
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 16
83_Ale_83 is on a distinguished road
Quote:
Originally Posted by bookie56 View Post
83_Ale_83

Where do I find the log...so that we can look at that..

If you use MadsR script is autogenerate inside the folder OpenFoam/OpenFoam-1.6.x ---> "make.log"
__________________

83_Ale_83 is offline   Reply With Quote

Old   January 13, 2010, 08:54
Default
  #247
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 16
bookie56 is on a distinguished road
Hi 83_Ale_83

Thanks for the info...going to have a looksee.

bookie56
bookie56 is offline   Reply With Quote

Old   January 13, 2010, 09:00
Default
  #248
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 16
bookie56 is on a distinguished road
Hi again

No log has been generated?

I am going to do a reinastall to clean the decks and we can take it from there..

bookie56
bookie56 is offline   Reply With Quote

Old   January 13, 2010, 11:09
Default
  #249
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 16
bookie56 is on a distinguished road
Hi guys

Still no joy?!! I reinstalled Ubuntu but as I said before ...Swedish version. I did the standard update after install and then ran the script from a terminal by writing sudo and then pasting in the script. It ran for maximum 3 minutes and then went back to user again.

The following is the last piece of the run...which is actually in English:

Quote:

ldconfig deferred processing now taking place
ruben@ruben-desktop:~$
The script was only changed wher the library was 10 and now 13:

Quote:

#!/bin/bash
#
#
# USAGE: ./installOF64
#
#
# Created by Mads Reck (madstmp (a-t) gmail.com)
# with kind help (testning and revision) from Anton Kidess and Bruno Santos
# September 2009
# Revision 07, december 11, 2009, git changed to http
# Revision 06, november 28, fixup for Ubuntu 9.10
# Revision 05, november 05, git pull removed
# Revision 04, october 20, 2009
#
set -e
echo "-----------------------------------------------------"
echo " 64 BIT VERSION"
echo " 64 BIT VERSION"
echo " 64 BIT VERSION"
echo "-----------------------------------------------------"
echo "Making sure that you have all needed libraries"
echo "-----------------------------------------------------"
echo "Apparently we need to run apt-get multiple times to "
echo " be SURE that everything is installed "
sudo apt-get install binutils-dev flex git git-core build-essential python-dev libqt4-dev libreadline5-dev wget zlib1g-dev cmake
sudo apt-get install binutils-dev flex git git-core build-essential python-dev libqt4-dev libreadline5-dev wget zlib1g-dev cmake
sudo apt-get install binutils-dev flex git git-core build-essential python-dev libqt4-dev libreadline5-dev wget zlib1g-dev cmake
cd ~
mkdir OpenFOAM
cd OpenFOAM
echo "------------------------------------------------------"
echo "Downloading ThirdParty stuff"
echo "------------------------------------------------------"
wget http://downloads.sourceforge.net/foa...se_mirror=mesh
wget http://downloads.sourceforge.net/foa...se_mirror=mesh
echo "------------------------------------------------------"
echo "Untarring - this takes a while..."
echo "------------------------------------------------------"
tar xfz ThirdParty-1.6.General.gtgz
tar xfz ThirdParty-1.6.linux64Gcc.gtgz
echo "FIX up for Ubuntu 9.10"
cd ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64
mv libstdc++.so.6 libstdc++.so.6.orig
ln -s /usr/lib/libstdc++.so.6.0.13 libstdc++.so.6
mv libgcc_s.so.1 libgcc_s.so.1.orig
ln -s /lib/libgcc_s.so.1
cd ~/OpenFOAM
echo "Fix up done"
echo "------------------------------------------------------"
echo "Retrieveing OpenFOAM..."
echo "------------------------------------------------------"
ln -s ~/OpenFOAM/ThirdParty-1.6 ~/OpenFOAM/ThirdParty-1.6.x
git clone http://repo.or.cz/r/OpenFOAM-1.6.x.git
cd OpenFOAM-1.6.x/
. ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
echo . ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc >> ~/.bashrc
echo "------------------------------------------------------"
echo "Compiling OpenFOAM...output is in make.log"
echo " THIS CAN TAKE HOURS"
echo "------------------------------------------------------"
./Allwmake >make.log 2>&1
echo "------------------------------------------------------"
echo "Checking installation - you should see NO criticals..."
echo "------------------------------------------------------"
foamInstallationTest
set +e
What is going wrong? Do I need an English install of Ubuntu to make this work?

Please, please give me so help ........


bookie56
bookie56 is offline   Reply With Quote

Old   January 13, 2010, 11:22
Default
  #250
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 16
bookie56 is on a distinguished road
Hi guys

One more thing...there is no log either?

bookie56
bookie56 is offline   Reply With Quote

Old   January 13, 2010, 11:45
Default
  #251
New Member
 
Calobra's Avatar
 
Ruben Wetind
Join Date: Dec 2009
Location: Alnö Sweden
Posts: 6
Rep Power: 16
Calobra is on a distinguished road
-> bookie65
English version is totally ok for me. Just keep things as simple as possible.
Workthings - Normally I do it all in English
Calobra is offline   Reply With Quote

Old   January 13, 2010, 11:49
Default
  #252
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 16
83_Ale_83 is on a distinguished road
Hi,
No it doesn't depend on the language, I use linux Mint in italian and I haven't got problems...
Maybe you can copy-paste "line by line" the script in the terminal and see where the script crush.
__________________

83_Ale_83 is offline   Reply With Quote

Old   January 13, 2010, 16:00
Default
  #253
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 16
bookie56 is on a distinguished road
Hi guys

OK! I can say that the script is getting stuck for some reason? Let me try to give a proper account....

I reinstalled Ubuntu Karmic in English and didn't update Ubuntu...I just copied the first part of the script into a terminal and ran it...

Code:
sudo apt-get install binutils-dev flex git git-core build-essential python-dev libqt4-dev libreadline5-dev wget zlib1g-dev cmake
When this was done it was the same as I posted before:

Code:
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
ruben@ruben-desktop:~$
So basically the script doesn't go further than the first section of the install?

I then ran individual bits and much more happened until it started compiling....well no evidence of that in the terminal but I can see the hard drive indicator blinking like a crazy women....LOL sorry, bad example...LOL.

I am now going back to my Swedish install and see what gives.
bookie56 is offline   Reply With Quote

Old   January 13, 2010, 20:55
Default
  #254
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 16
bookie56 is on a distinguished road
Hi again

I have reinstalled and updated Úbuntu with latest updates and then run the script again stage by stage and this is my read out after the test...

Code:
Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:               ruben-desktop
OS:                 Linux version 2.6.31-17-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/ruben/OpenFOAM                     yes       yes
$WM_PROJECT_USER_DIR /home/ruben/OpenFOAM/ruben-1.6.x         no        no
$WM_THIRD_PARTY_DIR  /home/ruben/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/ruben/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  no        no
$WM_DIR              .../ruben/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/ruben-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.22      /bin/tar                                                 
icoFoam  1.6.x     ...penFOAM-1.6.x/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


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

Critical systems ok.


done.

ruben@ruben-desktop:~/OpenFOAM/OpenFOAM-1.6.x$
OK! Things are looking good... Is there anyone looking in that can give me a test scenario to put OpenFOAM to work?

I have never used such a program and my customer isn't that familiar with Linux yet.

I can start a new thread for that if you want...

bookie56
bookie56 is offline   Reply With Quote

Old   January 14, 2010, 03:33
Default
  #255
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
@bookie56: It would be nice to know what really happend between installing Ubuntu and...installing it again...wierd. But, good thing it worked out. New thread would be a good idea :-) and don't forget the search button ;-)

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

Old   January 14, 2010, 04:04
Default
  #256
New Member
 
Join Date: Jan 2010
Posts: 28
Rep Power: 16
bookie56 is on a distinguished road
Hi MadsR

Yes, I agree about wanting to know what happened. The strange thing is when I tried, as suggested, to run the script in individual sections after running the whole script....couldn't get anything to happen?

I am as confused as you by this.....but the script actually supplies the nescessary info to get the job done and that I thank you for.

Of course, I will do some searching before posting a new thread.

Thanks again for all the help!

bookie56
bookie56 is offline   Reply With Quote

Old   January 16, 2010, 02:06
Default
  #257
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 17
mahaputra is on a distinguished road
Quote:
Originally Posted by MadsR View Post
@bookie56: It would be nice to know what really happend between installing Ubuntu and...installing it again...wierd. But, good thing it worked out. New thread would be a good idea :-) and don't forget the search button ;-)

/Mads
Hi Mads

I am curious why you write OpenFOAM-dev 1.6 ? for your Installation Script

is there any new release for OF-dev ? as far as i know it is still 1.5-dev

OpenFOAM-1.5-dev.General_2009-12-11.tgz

see this : http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/
mahaputra is offline   Reply With Quote

Old   January 22, 2010, 20:19
Default
  #258
New Member
 
Mike Wang
Join Date: Jan 2010
Posts: 2
Rep Power: 0
dwang is on a distinguished road
Hi! Mads,

Thank you for your OF install script. I have followed what you wrote in the script for Ubuntu 9. 10 for 32 bit and I got the problem after foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: ubuntu
OS: Linux version 2.6.31-14-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/ding/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/ding/OpenFOAM/ding-1.6.x no no
$WM_THIRD_PARTY_DIR /home/ding/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/ding/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 no no
$WM_DIR /home/ding/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 ...nFOAM/ding-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 : 4.4.1
Minimum required: 4.3.1

gcc 4.4.1
WARNING: Conflicting installations:
OpenFOAM settings : /home/ding/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.22 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/ding/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.


I read what you advised Aurel on page 3 and tried to solve it the same way, but it's frustrating only to see the same errors popping-out all the times. Could you tell me, who is totally newbie in the Linux world , how to solve this 2 critical errors. By the way I've installed the Linux 32 bit on Windows XP via Wubi. But in the warnings above of OpenFOAM settings it seems to be about Linux64. Can that be the reason (hopefully not )?

Many thanks for your reply.

regards,

Mike

Last edited by dwang; January 22, 2010 at 20:37.
dwang is offline   Reply With Quote

Old   January 25, 2010, 09:49
Default
  #259
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
Hi Mike.

Are you installing the 64 bit version of OF on a 32 bit Ubuntu? That won't work for sure. Are you sure you are using the right version of the script?

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

Old   January 27, 2010, 06:42
Red face
  #260
New Member
 
Mike Wang
Join Date: Jan 2010
Posts: 2
Rep Power: 0
dwang is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Hi Mike.

Are you installing the 64 bit version of OF on a 32 bit Ubuntu? That won't work for sure. Are you sure you are using the right version of the script?

/Mads
Hi! Mads,

a wrong version may be most suspicious. I've checked it many times. It was the 32bit Version I was using.

The only point I found is that the first link given at the command "wget" for the installation files is seemingly pretty the same for both the 32bit and 64bit versions, which confused me, if they are not meant to be the same file. They correspond the links officially given at the new OF website.

64bit:

Quote:

...
echo "------------------------------------------------------"
echo "Downloading ThirdParty stuff"
echo "------------------------------------------------------"
wget http://downloads.sourceforge.net/foa...se_mirror=mesh
wget http://downloads.sourceforge.net/foam/ThirdParty-1.6.linux64Gcc.gtgz?use_mirror=mesh
....
32bit
Quote:
...
echo "------------------------------------------------------"
echo "Downloading ThirdParty stuff"
echo "------------------------------------------------------"
wget http://downloads.sourceforge.net/foa...se_mirror=mesh
wget http://downloads.sourceforge.net/foam/ThirdParty-1.6.linuxGcc.gtgz?use_mirror=mesh ...
Anyway I'll try to install it at another PC. Hopefully it'll work. Anyway without your script I would be further away from the successful installation. Thanks for the reply!


Regards,

Mike
dwang 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 04:52.