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 Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2010, 09:41
Default
  #341
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
I think we are still not quite there yet, there should be an error even further up. Remember we are looking for the very first error notification.

Quote:
Originally Posted by JohnMichaelKane View Post
Greetings akidess
I had another look in make.log, and further up spotted these lines regarding PV3FoamReader.

Code:
make[5]: Target `CMakeFiles/PV3FoamReader_SM.dir/build' not remade because of errors.
make[4]: *** [CMakeFiles/PV3FoamReader_SM.dir/all] Error 2
make[4]: Target `all' not remade because of errors.
make[3]: *** [all] Error 2
make[3]: Target `default_target' not remade because of errors.
make[2]: *** [PV3FoamReader] Error 2
akidess is offline   Reply With Quote

Old   May 10, 2010, 10:28
Default
  #342
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Quote:
Originally Posted by akidess View Post
I think we are still not quite there yet, there should be an error even further up. Remember we are looking for the very first error notification.
This is the first error regarding PV3FoamReader.
Code:
make[5]: Target `CMakeFiles/PV3FoamReader.dir/build' not remade because of errors.
make[4]: *** [CMakeFiles/PV3FoamReader.dir/all] Error 2
The above was followed by script proceeding, the next error was the one posted before.

Additionally: What exactly are you looking for?
JohnMichaelKane is offline   Reply With Quote

Old   May 10, 2010, 10:47
Default
  #343
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
What you are posting is just a notification at the end of the build process that the build didn't complete due to errors. What I am looking for is the error description that might give us a clue how to fix things. I'm sorry I can't give more details because there is not standard scheme what the description will look like. Might be something like "./Allwmake: cmake: command not found" or could be "error: mpi.h: no such file or directory" or might be even something else. Can you upload your logfile somewhere? Then I could have a look at it myself.
akidess is offline   Reply With Quote

Old   May 10, 2010, 11:22
Default
  #344
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Quote:
Originally Posted by akidess View Post
What you are posting is just a notification at the end of the build process that the build didn't complete due to errors. What I am looking for is the error description that might give us a clue how to fix things. I'm sorry I can't give more details because there is not standard scheme what the description will look like. Might be something like "./Allwmake: cmake: command not found" or could be "error: mpi.h: no such file or directory" or might be even something else. Can you upload your logfile somewhere? Then I could have a look at it myself.
Here is the log-file.
Attached Files
File Type: gz make.log.txt.tar.gz (89.0 KB, 4 views)
JohnMichaelKane is offline   Reply With Quote

Old   May 10, 2010, 12:15
Default
  #345
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

John:
  • the first "Error " comes from "wmake libso tecio/tecsrc".
  • PV3FoamReader also won't build. But those two are the only libraries/utilities that didn't build.
  • in Ubuntu 10.04 you will need to install the package "libxt-dev". It's needed for both the tecplot utility as well as Paraview. It comes as standard in previous Ubuntu versions, but for some reason it isn't included in 10.04.
  • You will also need to rebuild Paraview in Ubuntu 10.04, but you can use Qt that comes with it.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 10, 2010, 16:04
Default
  #346
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

John:
  • the first "Error " comes from "wmake libso tecio/tecsrc".
  • PV3FoamReader also won't build. But those two are the only libraries/utilities that didn't build.
  • in Ubuntu 10.04 you will need to install the package "libxt-dev". It's needed for both the tecplot utility as well as Paraview. It comes as standard in previous Ubuntu versions, but for some reason it isn't included in 10.04.
  • You will also need to rebuild Paraview in Ubuntu 10.04, but you can use Qt that comes with it.
Best regards,
Bruno
I installed libxt-dev.

After rerunning the script, I rebuilt Paraview using.
Code:
./makeParaView
Here is the log-file from the OpenFoam reinstall.
Attached Files
File Type: gz make.log-II.txt.tar.gz (88.0 KB, 2 views)
JohnMichaelKane is offline   Reply With Quote

Old   May 10, 2010, 16:17
Default
  #347
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings John,

Well, at least the utility for tecplot built nicely this time

Actually, just a few hours ago, Nicolas has posted what other packages are missing (source: Missing packages on ubuntu 10.04):
Quote:
Originally Posted by nsf View Post
(...)had to install the following packages:

libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev
Sorry about that, I didn't know that Ubuntu 10.04 had so many changes in its packaging system

After installing those packages, you will only need to run the following commands:
Code:
cd "$FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader"
./Allwclean
./Allwmake
And voilá, paraFoam should now work


Additionally, if you want the Paraview's help up and running, you'll also need to install the package "qt4-dev-tools" and then rebuild Paraview

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 10, 2010, 18:01
Default
  #348
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings John,

Well, at least the utility for tecplot built nicely this time

Actually, just a few hours ago, Nicolas has posted what other packages are missing (source: Missing packages on ubuntu 10.04):

Sorry about that, I didn't know that Ubuntu 10.04 had so many changes in its packaging system

After installing those packages, you will only need to run the following commands:
Code:
cd "$FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader"
./Allwclean
./Allwmake
And voilá, paraFoam should now work


Additionally, if you want the Paraview's help up and running, you'll also need to install the package "qt4-dev-tools" and then rebuild Paraview

Best regards,
Bruno
Greetings Bruno.

I re-ran the process, with all additional packages.

Upon completion, I entered the directory below.
Code:
~/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/platforms/linuxGcc/bin$
Then ran.
Code:
./paraview
The application opened without error.

Additionally, if further information / testing is need please let me know.
JohnMichaelKane is offline   Reply With Quote

Old   May 11, 2010, 05:33
Default
  #349
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
So consensus is that we need to add these packages to the apt-get section:

libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev


and then the script works with 10.4?

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

Old   May 11, 2010, 13:23
Default
  #350
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 16
CedricVH is on a distinguished road
Quote:
Originally Posted by MadsR View Post
So consensus is that we need to add these packages to the apt-get section:

libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev


and then the script works with 10.4?

/Mads
Not really, when I install OpenFOAM with your 9.10 script (with the included apt-gets) on my 64bit 10.04 system and then do:

sudo apt-get install libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev

Followed by

Code:
cd "$FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader"
./Allwclean
./Allwmake
Then it still gives an error, as seen in the attachment.
Attached Files
File Type: txt compile.txt (12.9 KB, 7 views)
CedricVH is offline   Reply With Quote

Old   May 11, 2010, 13:47
Default
  #351
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 16
CedricVH is on a distinguished road
Ok, my compilation error is solved, but an extra package was needed. When I also install libpng12-dev (and maybe libpng12-0, but that was already on my system), then it compiles.

All these things should be tested on a freshly installed Ubuntu 10.04 system as everybody has different configurations with different apps and thus different installed libraries.
CedricVH is offline   Reply With Quote

Old   May 11, 2010, 13:52
Default
  #352
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Ooops:
Quote:
Originally Posted by nsf View Post
I searched the ubuntu package repository and found that the package libpng12-dev provided libpng.so.
I'm sorry about that, I didn't quote all of the necessary text from Nicolas post from the other thread

edit: Cedric, can you confirm that foamToTecplot360 built properly?
__________________
wyldckat is offline   Reply With Quote

Old   May 11, 2010, 14:17
Default
  #353
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 16
CedricVH is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Ooops:

I'm sorry about that, I didn't quote all of the necessary text from Nicolas post from the other thread

edit: Cedric, can you confirm that foamToTecplot360 built properly?
Yes, it is properly compiled. Following packages need to be installed minimally:

sudo apt-get install -y binutils-dev flex git-core build-essential python-dev libqt4-dev qt4-dev-tools libreadline5-dev wget zlib1g-dev cmake libxt-dev libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev libpng12-dev

It should be tested if more packages are needed on a completely fresh Ubuntu 10.04 installation.

Last edited by CedricVH; May 12, 2010 at 08:21.
CedricVH is offline   Reply With Quote

Old   May 18, 2010, 09:11
Default ParaFoam doesn't work fine.
  #354
Member
 
Rickard Hidefjäll
Join Date: Jun 2009
Location: Uppsala, Sweden
Posts: 39
Rep Power: 16
SkunkWorks is on a distinguished road
Hi

I've installed OpenFoam with MadsR install-cookbook script.
I've uncomment git in the apt-get line. The installation worked fin.
Ibus was installed afterword.

ParaFoam doesn't work fine, in 10.4. it starts but it complains about Ibus not find. And then I start Ibus but it still looks bad.
SimpleFoam works.

Some thing has to be added before the script works smooth

/SkunkWorks
SkunkWorks is offline   Reply With Quote

Old   May 18, 2010, 09:51
Default
  #355
Member
 
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16
Canesin is on a distinguished road
10.04 need many fixes .. Bruno has done an amazing job perfecting our project and paraview is working fine in the script..
you can download it at: http://code.google.com/p/openfoam-ubuntu
Canesin is offline   Reply With Quote

Old   May 18, 2010, 10:02
Default
  #356
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
Can you elaborate why you think it looks bad? ibus should not have any influence on the display, from what I read it only concerns keyboard input.

Quote:
Originally Posted by SkunkWorks View Post
Hi
ParaFoam doesn't work fine, in 10.4. it starts but it complains about Ibus not find. And then I start Ibus but it still looks bad.

/SkunkWorks
akidess is offline   Reply With Quote

Old   May 18, 2010, 14:41
Default The program looks fine, but...
  #357
Member
 
Rickard Hidefjäll
Join Date: Jun 2009
Location: Uppsala, Sweden
Posts: 39
Rep Power: 16
SkunkWorks is on a distinguished road
The program looks fine. But the results / visualisation looks bad.
It looks very blocky and no result about for example streamlines.
I'm running Kubuntu 10.04.
SkunkWorks is offline   Reply With Quote

Old   May 18, 2010, 15:56
Default
  #358
Member
 
Rickard Hidefjäll
Join Date: Jun 2009
Location: Uppsala, Sweden
Posts: 39
Rep Power: 16
SkunkWorks is on a distinguished road
Quote:
Originally Posted by Canesin View Post
10.04 need many fixes .. Bruno has done an amazing job perfecting our project and paraview is working fine in the script..
you can download it at: http://code.google.com/p/openfoam-ubuntu
I've used that script for a week ago, but it didn't work then.
But ! It works Fine!!! Now . Thanks a lot every one!

/ SkunkWorks
SkunkWorks is offline   Reply With Quote

Old   June 3, 2010, 02:53
Default
  #359
Member
 
Gareth
Join Date: Jun 2010
Posts: 56
Rep Power: 15
bullmut is on a distinguished road
Hi
Brand new to OpenFoam and linux so
i used the link to download in install openFoam.
When i went throught the log fiel during the "installation test section" it bnoted a few criticals. so i ran teh foamInstallationtest again and got a fatal error.

FATAL ERROR: OpenFOAM environment not configured.
For this error, the installation has given you the right hint.
*************************************
Please refer to the installation section of the README file:
<openfoam>/OpenFOAM-1.5/README
to source the OpenFOAM environment.
*******************************

I went through the readme instructions but it did not help.
Any suggestions, am i being daft should i run the installOF again...?
bullmut is offline   Reply With Quote

Old   June 3, 2010, 07:30
Default
  #360
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings bullmut and welcome to the forum!

Quote:
Originally Posted by bullmut View Post
i used the link to download in install openFoam.
OK, can you specify which link are you talking about? Because this particular thread has various links to various installation scripts And each script has its own particularities, including bugs

Additionally, what steps did you take to use that script?

Best regards,
Bruno
bullmut likes this.
__________________
wyldckat is offline   Reply With Quote

Reply


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 00:48
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 14: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 09:02.