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

OF 1.7.1 installation problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2010, 05:58
Default OF 1.7.1 installation problems
  #1
New Member
 
Manuel Goller
Join Date: Oct 2010
Posts: 11
Rep Power: 15
goma is on a distinguished road
Hy guys

I'm new in the world of OpenFoam and Linux and I have a Problem with my OF installation. I'm using Ubuntu 9.04 and I tryed the Source Pack Installation from OF hompage. The problem is, that I have done all the steps until changing the bashrc file. I changed the last line of the file: . $home/peter/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc

Then I tried if it works with icoFoam -help in a new terminal window. But I got an error.

Can anybody help me please?!
goma is offline   Reply With Quote

Old   October 4, 2010, 08:32
Default
  #2
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 Manuel and welcome to the forum!

So, did you run Allwmake? In other words, if you are installing from source, you'll need to build OpenFOAM. Without doing that, you will not be able to run icoFoam.

Additionally, for Ubuntu, the usual packages necessary for building OpenFOAM can be found here: Building OpenFOAM1.7.0 from source post #4 and onward

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 4, 2010, 08:54
Default
  #3
New Member
 
Manuel Goller
Join Date: Oct 2010
Posts: 11
Rep Power: 15
goma is on a distinguished road
Ok thank's for your support. Now I've done Allwmake and got another error:

bash: /home/peter/OpenFoam/OpenFOAM-1.7.1/etc/bashrc: Permission denied

goma is offline   Reply With Quote

Old   October 4, 2010, 09:14
Default
  #4
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
Hi Manuel,
Quote:
Originally Posted by goma View Post
Ok thank's for your support. Now I've done Allwmake and got another error:

bash: /home/peter/OpenFoam/OpenFOAM-1.7.1/etc/bashrc: Permission denied
How did running Allwmake trigger that?

OK, lets go through this step by step:
  • Is "/home/peter" your personal user folder? Or is it someone else's? If it's yours, it will be what is outputted by this command:
    Code:
    echo $HOME
  • Did you edit the file "$HOME/.bashrc" and added this to the end of it:
    Code:
    . $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc
    Notice the space between the "." and the "$".
  • Start a new terminal window. Does any error message appear?
  • Is your Ubuntu 9.04 i386/i486/i686 or x86_64? If you don't know, run this:
    Code:
    uname -a
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 4, 2010, 09:48
Default
  #5
New Member
 
Manuel Goller
Join Date: Oct 2010
Posts: 11
Rep Power: 15
goma is on a distinguished road
Thank's a lot for your help.

I started ./Allwmake from the wrong directory so that was the problem. Now it works.


thx manu
goma is offline   Reply With Quote

Old   October 5, 2010, 05:35
Default
  #6
New Member
 
Manuel Goller
Join Date: Oct 2010
Posts: 11
Rep Power: 15
goma is on a distinguished road
So new problem

I've done the whole SourcePack installation step by step. Now if I'm trying for example icoFoam he says:

Code:
bash: icoFoam: command not found
please help me before I'm throwing the whole PC out of the window.
goma is offline   Reply With Quote

Old   October 5, 2010, 05:41
Default
  #7
New Member
 
Manuel Goller
Join Date: Oct 2010
Posts: 11
Rep Power: 15
goma is on a distinguished road
Additionaly here is my foamInstallationTest

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: simulant-linux
OS: Linux version 2.6.28-13-generic
-------------------------------------------------------------------------------


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

$FOAM_APPBIN ...7.1/applications/bin/linux64GccDPOpt no yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.7.1/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...7.1/applications/bin/linux64GccDPOpt no no
$WM_DIR .../peter/OpenFOAM/OpenFOAM-1.7.1/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.7.1/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.7.1/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...FOAM/peter-1.7.1/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...1/platforms/linux64Gcc/openmpi-1.4.1 no yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
[: 514: -lt: unexpected operator
gcc /usr/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/peter/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/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.
goma is offline   Reply With Quote

Old   October 5, 2010, 07:47
Default
  #8
New Member
 
Manuel Goller
Join Date: Oct 2010
Posts: 11
Rep Power: 15
goma is on a distinguished road
thx for your patience. I've solved all problems OF is now running Now the real problems can start.

thx manu
goma is offline   Reply With Quote

Old   October 5, 2010, 08:35
Default
  #9
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
Hi Manuel,

Sorry about that, I didn't manage to answer you sooner But I'm glad you've got it working

Good luck and happy foaming
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 3, 2010, 04:49
Default conflicting installations
  #10
nhl
New Member
 
Join Date: Jun 2010
Posts: 7
Rep Power: 15
nhl is on a distinguished road
Hello

I am trying to make OpenFoam 1.7.1 working on a RHEL 5.3.


I resolved gcc problems. run the ./Allwmake correctly but it stopped. If I run the installtion diagnosis I have almsot the same results than goma. It seems unable to find icoFoam which is right as in the path, it is empty.

[...]
Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.4.4 /usr/local/bin/gcc
gzip 1.3.5 /usr/bin/gzip
tar 1.15.1 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /nishome/nhl/OpenFOAM/OpenFOAM-1.7.1/applic ations/bin/linux64GccDPOpt/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.

Any help would be great,

is that can be linked to the 1.6 that it is already installed?

Thanks,

Nicolas
nhl is offline   Reply With Quote

Old   November 4, 2010, 18:14
Default
  #11
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
Hi Nicolas,

Quote:
Originally Posted by nhl View Post
I am trying to make OpenFoam 1.7.1 working on a RHEL 5.3.
CentFOAM? Have you tried CentFOAM? It has a support thread here: http://www.cfd-online.com/Forums/ope...-released.html

Either way, lets move on to the next questions:
Quote:
Originally Posted by nhl View Post
I resolved gcc problems. run the ./Allwmake correctly but it stopped.
Run it again, but like this:
Code:
./Allwmake > make.log 2>&1
tar -czf make.log.tar.gz make.log
Then post the file "make.log.tar.gz" here.

Quote:
Originally Posted by nhl View Post
is that can be linked to the 1.6 that it is already installed?
Mmmm... do you mean to try and use the ThirdParty-1.6 folder instead of ThirdParty-1.7.1?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 5, 2010, 04:17
Default
  #12
nhl
New Member
 
Join Date: Jun 2010
Posts: 7
Rep Power: 15
nhl is on a distinguished road
Hello Bruno,

Thank for your help again.

Sorry I was not aware of CentFOAM. I will have a look

Please find in attachment the log file.

My question with the 1.6 was because my error was conflicting installations. It was one of my first diagnosis. But maybe not appropriate ! I will keep the third party 1.7.1.

Nicolas
Attached Files
File Type: gz make.log.tar.gz (29.4 KB, 3 views)
nhl is offline   Reply With Quote

Old   November 5, 2010, 10:09
Default
  #13
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
Hi Nicolas,

Well this is odd... it's the same exact error that Sale got here: http://www.cfd-online.com/Forums/ope...tml#post282120

I hope you can install CentFOAM with success, because this error isn't completely unfamiliar, but I can't remember how to fix it

As for using multiple versions of OpenFOAM, see this post: OpenFoam Installation in Redhat Enterprise linux 5 post #17

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 13, 2010, 09:08
Default
  #14
New Member
 
Thomas Koludzki
Join Date: Nov 2010
Location: Warsaw
Posts: 2
Rep Power: 0
krasnal is on a distinguished road
Send a message via Skype™ to krasnal
Hi,

I also have a problem. I am new user Debian GNome 2.23.3

When I am using
sudo apt-get install openfoam171
I get:

p { margin-bottom: 0.21cm; } openfoam171: Need: libc6 (>= 2.11) ale 2.7-18lenny6 have to be install

Need: libopenmpi1.3 but can't install it

Need: libscotch-5.1 but can't install it
Need: libstdc++6 (>= 4.4.0) ale 4.3.2-1.1 have to be install


Do you know what I am doing wrong? Can you help me?

Really sorry for my English,

Looking forward from you.

Regards,
Tom
krasnal is offline   Reply With Quote

Old   November 13, 2010, 17:10
Default
  #15
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 Thomas and welcome to the forum!

Sadly the Debian version you are using is too old for the OpenFOAM deb packages that were made available by OpenCFD. You will either have to:
  • update your Debian version to a version closer to Ubuntu 10.04;
  • or install OpenFOAM by building from source.
By what I've seen on distrowatch, with Lenny's gcc 4.3.2, you should be able to build OpenFOAM 1.7.1 from source without problems. The packages you'll need are pretty much the same as for Ubuntu: Building OpenFOAM1.7.0 from source post #4 and onward

If you want more performance out of your OpenFOAM build, then consider building gcc 4.4.4/5 or 4.5.1: Automated scripts for building gcc 4.4.x and 4.5.x for using with OpenFOAM 1.7 series

Best regards and good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 15, 2010, 06:29
Default
  #16
New Member
 
Thomas Koludzki
Join Date: Nov 2010
Location: Warsaw
Posts: 2
Rep Power: 0
krasnal is on a distinguished road
Send a message via Skype™ to krasnal
Thanks a lot, its working! I only have to learn how to use it.
krasnal is offline   Reply With Quote

Old   December 2, 2010, 10:19
Default
  #17
New Member
 
Maike
Join Date: Dec 2010
Posts: 8
Rep Power: 15
mugi is on a distinguished road
Hi,
i'm completely new in OpenFOAM and just tried to install it. I've followed the instructions on http://www.openfoam.com/download/source.php.

In the installation it only says: make: Target `application' not remade because of errors. you can find the whole log file of the compilation in attached.

The foamInstallationTest gives me:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: localhost
OS: Linux version 2.6.31.12-0.2-desktop
-------------------------------------------------------------------------------


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

$FOAM_APPBIN ...7.1/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.7.1/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...7.1/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR ...smaike/OpenFOAM/OpenFOAM-1.7.1/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.7.1/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.7.1/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...OAM/smaike-1.7.1/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...1/platforms/linux64Gcc/openmpi-1.4.1 yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.4.1 /usr/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.21 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/smaike/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/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.


I saw this error in this post before but I couldn't follow what was the solution on that. I recognized the error when I tried to check the installation with the tutorial... it didn't find blockMesch and says in the log.blockMesh: home/smaike/OpenFOAM/OpenFOAM-1.7.1/bin/tools/RunFunctions: line 45: blockMesh: command not found

I'm thankfull for every help!
Thanks,
Maike.
Attached Files
File Type: gz make.log.tar.gz (15.5 KB, 4 views)
mugi is offline   Reply With Quote

Old   December 4, 2010, 08:50
Default
  #18
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 Maike and welcome to the forum!

OK, I believe that you are running OpenSUSE 11.2 (2.6.31.12-0.2-desktop seems familiar to me). The log you posted was very helpful and it indicates that your system is missing the library "libiberty.so".

Since you are running OpenSUSE (or so I think), I suggest that you check Alberto's instructions for building OpenFOAM and ParaView in OpenSUSE: Installing OpenFOAM 1.7 on openSUSE 11.3
But I believe the most important item from that tutorial for you is this:
Quote:
Use YaST to install
With that pattern, all of the essential tools for building OpenFOAM will be installed, even those that might not have been reported missing in your previous build!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 8, 2010, 06:00
Default
  #19
New Member
 
Maike
Join Date: Dec 2010
Posts: 8
Rep Power: 15
mugi is on a distinguished road
Hi Bruno,

Thanks for your help!

By now I managed to install OpenFOAM and the PV3FoamReader but I'm still not able to install Paraview because I have no QT4 (I mean I thaught I installed it but Paraview is not able to find it.) echo $QT_QMAKE_EXECUTABLE gives nothing. So there is really nothing in it.
I'm scared to try to install QT4 by hand because there is QT3 on my system and I know that the system needs parts of QT3... So I don't know what to do... (I already crashed my linux at home with installing QT4)

Do you (or someone else) have an Idea?

The error of the ParaView compilation is:

CMake Error at CMakeLists.txt:96 (MESSAGE):
Qt 4.5.0 or greater not found. Please check the QT_QMAKE_EXECUTABLE
variable.

Thanks for any help,
Maike.
mugi is offline   Reply With Quote

Old   December 11, 2010, 07:00
Default
  #20
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
Hi Maike,

Mmm, that's odd, crashing Linux because you installed Qt4...
As for collisions between Qt3 and Qt4, there shouldn't be any, since this has been going on since Qt4 has been released.

I wrote in the previous post about Alberto's blog and there you can also find instructions for building ParaView. But if you don't want to "waste" more time in trying to build it, see this blog post of mine: Using the official pre-built ParaView 3.8.0 version with OpenFOAM...

Best regards and good luck!
Bruno
__________________
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
OF 1.7.0/CentOS/paraFoam installation problems bhh OpenFOAM Installation 6 July 14, 2010 05:45
OpenFOAM Installation Ubuntu 9.04 Problems Sumontro OpenFOAM Installation 8 July 21, 2009 21:40
Installation problems indy OpenFOAM Installation 7 April 3, 2009 09:40
installation problems on upgrade from win 3.26 to mic Siemens 5 June 20, 2007 09:40
Installation problems shellbell1999 OpenFOAM Installation 9 April 6, 2006 13:29


All times are GMT -4. The time now is 19:32.