CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM 1.6.x Installer for Ubuntu (https://www.cfd-online.com/Forums/openfoam-installation/73805-openfoam-1-6-x-installer-ubuntu.html)

jgpeder June 25, 2010 04:31

Hi Bruno,
It worked! I just ran the new script without removing the downloaded thirdparty files and it went through smoothly. Fantastic :-)
So far I've only tested the cavity case, and it seems ok.
Thanks a lot.
-Jesper

sunlight June 25, 2010 04:59

Help
 
Quote:

Originally Posted by wyldckat (Post 264327)
Dear Xiaoguang Yang,

Sorry about that problem, but we haven't tested the script with the latest Ubuntu 9.10 and hadn't come across the problem you got :(
The problem is that (for some strange reason) the OpenFOAM's gcc 4.3.3 has become even more incompatible with Ubuntu's 9.10 system libraries.
Please do the following steps:
  1. Remove the folder "$HOME/OpenFOAM/OpenFOAM-1.6.x".
  2. And now follow the steps in this post: Installing OpenFOAM 1.6 on Ubuntu 10.4 post #6
It will lead to having to download again the git repository, but at least you now get the latest version. No other files will be necessary to download, I think. And this will make OpenFOAM be built with Ubuntu's gcc 4.4.1 :)

Best regards,
Bruno

Dear Bruno,
I did as you requested.But failed. I attached the report. It seemed that the library was not right. I do not know how to solve it. Please help me. Thanks a lot.
Best regards,
xiaoguang Yang

Executing /home/xiaoguang/OpenFOAM/OpenFOAM-1.6.x/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: xiaoguang-desktop
OS: Linux version 2.6.31-22-generic-pae
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/xiaoguang/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/xiaoguang/OpenFOAM/xiaoguang-1.6.x no no
$WM_THIRD_PARTY_DIR .../xiaoguang/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/xiaoguang/OpenFOAM/OpenFOAM-1.6.x yes yes yes

$FOAM_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...penFOAM/site/1.6.x/bin/linuxGccDPOpt no no
$FOAM_USER_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt no no
$WM_DIR ...oguang/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 ...OAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...penFOAM/site/1.6.x/lib/linuxGccDPOpt no no
$FOAM_USER_LIBBIN ...AM/xiaoguang-1.6.x/lib/linuxGccDPOpt no no
$MPI_ARCH_PATH ...penmpi-1.3.3/platforms/linuxGccDPOpt 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 /usr/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.22 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/xiaoguang/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR

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


Summary
-------------------------------------------------------------------------------
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.

done.

sunlight June 25, 2010 05:08

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 264327)
Dear Xiaoguang Yang,

Sorry about that problem, but we haven't tested the script with the latest Ubuntu 9.10 and hadn't come across the problem you got :(
The problem is that (for some strange reason) the OpenFOAM's gcc 4.3.3 has become even more incompatible with Ubuntu's 9.10 system libraries.
Please do the following steps:
  1. Remove the folder "$HOME/OpenFOAM/OpenFOAM-1.6.x".
  2. And now follow the steps in this post: Installing OpenFOAM 1.6 on Ubuntu 10.4 post #6
It will lead to having to download again the git repository, but at least you now get the latest version. No other files will be necessary to download, I think. And this will make OpenFOAM be built with Ubuntu's gcc 4.4.1 :)

Best regards,
Bruno

Dear bruno,
Sorry, the report is too big. I attached the part containing 'error'.
Best regards,
xiaoguang Yang

MAMERI June 25, 2010 06:34

I can't install OpenFOAM
 
Hi all, i tried a several times to install openFOAM (my config is two Opteron dual core and 4Go ram). I always have critical, since i am new i can't resolve the problem alone.
when the installation finishes i got
Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: baki-desktop
OS: Linux version 2.6.31-22-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/baki/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/baki/OpenFOAM/baki-1.6.x no no
$WM_THIRD_PARTY_DIR /home/baki/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/baki/OpenFOAM/OpenFOAM-1.6.x yes yes yes

$FOAM_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...penFOAM/site/1.6.x/bin/linuxGccDPOpt no no
$FOAM_USER_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt no no
$WM_DIR /home/baki/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 ...OAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...penFOAM/site/1.6.x/lib/linuxGccDPOpt no no
$FOAM_USER_LIBBIN ...penFOAM/baki-1.6.x/lib/linuxGccDPOpt no no
$MPI_ARCH_PATH ...penmpi-1.3.3/platforms/linuxGccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.3.3 ...OAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.22 /bin/tar
icoFoam 1.6.x .../OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam
-------------------------------------------------------------------------------


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

Critical systems ok.



Please i need your help

Thank you

wyldckat June 25, 2010 06:51

Dear Xiaoguang,

Quote:

Originally Posted by sunlight (Post 264479)
Dear bruno,
Sorry, the report is too big. I attached the part containing 'error'.
Best regards,
xiaoguang Yang

You're getting some really strange errors :( Try running the script again, but now use "Update" option instead of "Fresh". And this time, if it still fails, try using this command for better compression:
Code:

tar -cjf make_log.tar.bz2 make.log
In other words, just change from gz to bz2 and czf to cjf.


As for MAMERI, welcome to the forum!
And, uhm... your installation seems to have gone pretty well!
Quote:

Originally Posted by MAMERI
Summary
-------------------------------------------------------------------------------
Base configuration ok.

Critical systems ok.

What exactly makes you think that something went wrong?

Best regards,
Bruno

MAMERI June 25, 2010 13:34

no thing hapens
 
Thank you for your reply,
when i try to startfoam i only have :

baki@baki-desktop:~$ startFoam
Building on 4 cores
baki@baki-desktop:~$

:confused: and that's all, i expect the launch of OpenFoam??

Thank you

wyldckat June 25, 2010 13:45

Greetings MAMERI,

Quote:

Originally Posted by MAMERI (Post 264557)
Thank you for your reply,
when i try to startfoam i only have :

baki@baki-desktop:~$ startFoam
Building on 4 cores
baki@baki-desktop:~$

:confused: and that's all, i expect the launch of OpenFoam??

Yep, that's it! OpenFOAM doesn't have a GUI since OpenFOAM 1.5, if I'm not mistaken. You should read the User Guide to get to know OpenFOAM: http://www.openfoam.com/docs/user/

Here is another information source, the Unofficial OpenFOAM Wiki: http://openfoamwiki.net

There is a project under development named Discretizer that gives the GUI capability to interact with OpenFOAM: http://www.discretizer.org/



edit: By the way:
Quote:

Originally Posted by jgpeder (Post 264473)
Hi Bruno,
It worked! I just ran the new script without removing the downloaded thirdparty files and it went through smoothly. Fantastic :-)
So far I've only tested the cavity case, and it seems ok.
Thanks a lot.
-Jesper

Jesper, it's good to know that you've got it finally up and running! :)

Best regards,
Bruno

MAMERI June 25, 2010 13:58

thank you wyldckat
 
Thank you wyldckat
for this very fast :) reply and the links, now i will read the docs and test some cases.


Best regards

MAMERI June 25, 2010 16:23

Hello all
I tried to execute my first case and that what i have :

ERROR: In /home/baki/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/VTK/Filtering/vtkExecutive.cxx, line 757
vtkCompositeDataPipeline (0x8dca8f8): Algorithm vtkPV3FoamReader(0x8d55d90) returned failure for request: vtkInformation (0x8dc6b28)
Debug: Off
Modified Time: 83308
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0


Best regards

MAMERI June 25, 2010 18:10

i resolved the problem
 
Thanks to all :o
i resolved the problem

sunlight June 28, 2010 07:52

Quote:

Originally Posted by wyldckat (Post 264497)
Dear Xiaoguang,



You're getting some really strange errors :( Try running the script again, but now use "Update" option instead of "Fresh". And this time, if it still fails, try using this command for better compression:
Code:

tar -cjf make_log.tar.bz2 make.log
In other words, just change from gz to bz2 and czf to cjf.


As for MAMERI, welcome to the forum!
And, uhm... your installation seems to have gone pretty well!

What exactly makes you think that something went wrong?

Best regards,
Bruno

Dear Bruno,
I solved the problem by installing binutils-2.19.1 in $HOME/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux. I was experiencing compatibility problems between gcc 4.3.3 and my system's default linker "/usr/bin/ld". Thank you anyway. I wish OpenFOAM-1.7 were installed easily.
Best regards,
Xiaoguang Yang

wyldckat June 28, 2010 18:42

Dear Xiaoguang Yang,

Quote:

Originally Posted by sunlight (Post 264799)
I solved the problem by installing binutils-2.19.1 in $HOME/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux. I was experiencing compatibility problems between gcc 4.3.3 and my system's default linker "/usr/bin/ld". Thank you anyway. I wish OpenFOAM-1.7 were installed easily.

I'm glad you've got it finally working! As for OpenFOAM 1.7, right now I believe it's on par with 1.6.x for the most part.
And as for OpenFOAM 1.7.x, we'll try to be up and running with it as soon as we can.

Best regards,
Bruno

casper6 July 3, 2010 08:15

Dear Bruno,
many thanks for the detailed replies you have always given.
I ma new to OPENFoam and am tryign to install on UB 10.04...I have followed the instructions but have a critical error here:

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.3
Minimum required: 4.3.1

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

gzip 1.3.12 /bin/gzip
tar 1.22 /bin/tar
icoFoam 1.6.x .../OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
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.

done.


Having read through i see some similar comments, but I have no clue how to resolve the issue, or where to even start...

Many thanks in advance

Alistair

wyldckat July 3, 2010 09:19

Hi Alistair and welcome to the forum!

Honestly, that critical error can be considered a dud! In other words, even if the expected gcc version isn't the same as the one that was picked, apparently OpenFOAM was still built properly!
Quote:

icoFoam 1.6.x .../OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam
This means message about icoFoam indicates that it was found, thusly OpenFOAM should be ready to go!

Now, the question is if you told the script to continue even if a critical error was found!? Because if you told it to continue, then you should have a fully working OpenFOAM and ParaView installation!!

By the way, what options did you choose? Because it's a bit odd that OpenFOAM's gcc wasn't available to use...

Best regards,
Bruno

casper6 July 4, 2010 13:33

I followed the instructions on the following link...

http://www.cfd-online.com/Forums/ope...tml#post260591

but i did have one problem in that the return key was constantly being pressed (activated) during the install. So in the end im not sure what got accepted, changed on the way.

Is there a file showing options chosen?

thanks again..

casper6 July 4, 2010 14:10

i think i've got it.

I tried the startFoam command and got the following output.

Warning in /home/alistair/OpenFOAM/OpenFOAM-1.6.x/etc/settings.sh:
Cannot find /home/alistair/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux installation.
Please install this compiler version or if you wish to use the system compiler,
change the 'compilerInstall' setting to 'System' in this file



so made the change and it just comes back with
Building on 2 cores

Thats seems fine... will now try some tutorials. Hopefully thats it.

Cheers

Alistair

wyldckat July 5, 2010 17:48

Hi Alistair,

I'm glad you got the handle on OpenFOAM :)

Now, hopefully your installation is fully working. The only reason that I can figure out right now for the problem you had, is that the patch responsible for "fixing" settings.sh no longer works with the latest version of OpenFOAM 1.6.x... probably due to an influence by the launch of 1.7.0.

I'll try ASAP to run the install script again and figure out if there are any major changes that reflect my deduction! Otherwise, it might have been due to the strange lock of the Return key that you had.

As for the file that shows the choices made... sadly there isn't one at the moment, but it's on the task list for a while now...

Best regards,
Bruno

benk August 28, 2010 07:50

Hi, I'm trying to install 1.6.x on a freshly installed Ubuntu 10.04 machine using the script. I keep getting an error saying that the MD5 checksum didn't work out for ThirdParty-1.6.General.gtgz. Is there a workaround for this?


Code:

--2010-08-28 07:41:07--  http://iweb.dl.sourceforge.net/project/foam/foam/1.6/ThirdParty-1.6.General.gtgz
Resolving iweb.dl.sourceforge.net... 70.38.0.134
Connecting to iweb.dl.sourceforge.net|70.38.0.134|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

Checking md5 checksum of file ThirdParty-1.6.General.gtgz ...
grep: OFpackages.md5: No such file or directory
md5sum: standard input: no properly formatted MD5 checksum lines found
File is NOT OK.

Getting the file 'ThirdParty-1.6.General.gtgz'seems to have failed for some reason. Do you want to try to download again? (yes or no):


wyldckat August 28, 2010 11:26

Greetings Ben,

I'm so sorry, but since 1.7.0 was released, we no longer had any feedback for the script and I didn't check it in a clean installation :(

I've just pushed a fix. You can download the script again and it won't need to download again those files you already downloaded!

EDIT: I didn't check nor tested the push I made :( I've been taking care of a serious makeover for the script and I've been making changes on the 'stable' script without proper checks :( ASAP in the next few hours (8h50 UTC right now) I will push a fixed and tested version of the stable script!
Once again, I'm very sorry for the inconvenience!

Best regards,
Bruno

wyldckat August 28, 2010 19:55

Greetings to All!

Ben: I've just finished testing the current version (at about 23h50 UTC) and it worked in Ubuntu 9.10 x86_64, including building Qt 4.3.5 and ParaView 3.6.1, just like it would in Ubuntu 10.04.

I haven't tested Anton Kidess's new feature: the paraFoamSys script, which allows running the Ubuntu's ParaView or the official build 3.8.0 from www.paraview.org, depending on the options during installation.

If someone can test the new features, please report back if it works or not! In the mean time, I'll try to check if it's working properly or not.

Best regards,
Bruno


All times are GMT -4. The time now is 16:58.