CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OF 1.7.1 installation problems (http://www.cfd-online.com/Forums/openfoam-installation/80690-1-7-1-installation-problems.html)

goma October 4, 2010 05:58

OF 1.7.1 installation problems
 
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?!

wyldckat October 4, 2010 08:32

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

goma October 4, 2010 08:54

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

:confused::confused::confused:

wyldckat October 4, 2010 09:14

Hi Manuel,
Quote:

Originally Posted by goma (Post 277677)
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

:eek: 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

goma October 4, 2010 09:48

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 October 5, 2010 05:35

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 October 5, 2010 05:41

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 October 5, 2010 07:47

thx for your patience. I've solved all problems OF is now running :) Now the real problems can start.

thx manu

wyldckat October 5, 2010 08:35

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

nhl November 3, 2010 05:49

conflicting installations
 
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

wyldckat November 4, 2010 19:14

Hi Nicolas,

Quote:

Originally Posted by nhl (Post 281980)
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 (Post 281980)
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 (Post 281980)
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? :confused:

Best regards,
Bruno

nhl November 5, 2010 05:17

1 Attachment(s)
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

wyldckat November 5, 2010 11:09

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

krasnal November 13, 2010 10:08

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

wyldckat November 13, 2010 18:10

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

krasnal November 15, 2010 07:29

Thanks a lot, its working! I only have to learn how to use it.

mugi December 2, 2010 11:19

1 Attachment(s)
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.

wyldckat December 4, 2010 09:50

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

mugi December 8, 2010 07:00

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.

wyldckat December 11, 2010 08:00

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


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