CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Problem installing OpenFOAM 1.5 installation on RHEL 4. (https://www.cfd-online.com/Forums/openfoam-installation/63794-problem-installing-openfoam-1-5-installation-rhel-4-a.html)

vwsj84 April 20, 2009 05:09

Problem installing OpenFOAM 1.5 installation on RHEL 4.
 
Hi Guys,

First and foremost, I would like to state that I am a first time user of a LINUX O/S and thus have very limited knowledge on how does it work and how to use commands to operate on it. I have been a windows user for as long as I remember and therefore am used to only the windows GUI.

I have posted a task to install OpenFOAM 1.5 on a RHEL 4 system at work with no connection to the internet due to security issues ( defence related work ). I am taking over from a previous staff member who has left the organisation so I do not know what has been done thus far. From what I know all packages have been installed on the system as per openFOAM 1.5 installation instructions on a home/openfoam user directory. When running foamInstalltionTest, I get 1 critical error stating that I have a GCC compatibility issue. Details are as follows

OpenFOAM 1.5 installed in home/openfoam/OpenFOAM/ . All packages that are required as per www.opencfd.co.uk installation instructions have been installed. Running openFOAM installation test with foamInstallationTest command yields one critical error. Error details are as follows.

"""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""
Third party software
---------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version: 3.4.6
Minimum required: 4.2.0

gcc 3.4.6
WARNING: Conflicting installations:
OpenFOAM settings: /home/openfoam/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux-64/bin/gcc
current path : /usr/bin/gcc

CRITICAL ERROR
"""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""

However I can't seem to find a suitable RPM to update RHEL 4 to gcc 4.3.1. When i try to complile gcc 4.3.1 on the system, i am faced with numerous dependancy issues.

Is there any quick and easy way to install openFOAM 1.5 or gcc 4.3.1 on RHEL 4 bearing in mind that I am a LINUX newbie? Thank you !

Regards,
Victor

gwierink April 21, 2009 02:18

Hi Victor,

Have you tried the following in the terminal (as root)?
Code:

yum install gcc gcc-c++
It installs gcc with its dependencies. That works on Fedora, which is similar to RHEL, so it should work ...

Regards,

Gijsbert

vwsj84 April 22, 2009 22:14

Quote:

Originally Posted by gwierink (Post 213595)
Hi Victor,

Have you tried the following in the terminal (as root)?
Code:

yum install gcc gcc-c++
It installs gcc with its dependencies. That works on Fedora, which is similar to RHEL, so it should work ...

Regards,

Gijsbert

Hi Gijsbert,

Does this require an internet connection? because the pc which i am installing in does not have an internet connection because of security issues. Thanks

Regards,
Victor

gwierink April 23, 2009 01:01

Hi Victor,

Ai, yes yum does need an internet connection. The nice thing about yum is that it will find the dependencies by itselfe, so you don't need to hunt for those. Without internet connection you need to go to GCC's website and download the appropriate version.

Regards,

Gijsbert

gschaider April 23, 2009 04:48

Quote:

Originally Posted by gwierink (Post 213595)
Hi Victor,

Have you tried the following in the terminal (as root)?
Code:

yum install gcc gcc-c++
It installs gcc with its dependencies. That works on Fedora, which is similar to RHEL, so it should work ...

On RHEL that "only" installs gcc 3.4. I'd recommend
Code:

yum install gcc4 gcc4-c++
which at lest installs gcc 4.1. The actual call for that compiler is gcc4 or similar (gcc still calls the 3.4-compiler), you'll have to choose/edit an appropriate configuration (Although I'd personally recommend compiling your own gcc into ThirdParty)

Bernhard


All times are GMT -4. The time now is 03:18.