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

OF Installation Problem - Gcc Error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 8, 2009, 15:42
Default OF Installation Problem - Gcc Error
  #1
New Member
 
Daniel Pilatti
Join Date: Apr 2009
Posts: 9
Rep Power: 8
Daniel Pilatti is on a distinguished road
Hello!

I am starting using Linux SO, so I have a problem during the installation of OpenFOAM 1.5.

Below are the errors:

Third party software

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

Software Version Location

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

WARNING: gcc version does not match gcc supplied with this release of OpenFOAM

Supplied version: 4.3.1

User version :

Minimum required: 4.2.0



gcc
WARNING: Conflicting installations:

OpenFOAM settings : /home/daniel/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc

current path :

CRITICAL ERROR


gzip 1.3.12 /usr/bin/gzip

tar 1.20 /bin/tar

icoFoam

WARNING: Conflicting installations:

OpenFOAM settings : /home/daniel/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/icoFoam

current path :

CRITICAL ERROR


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



Checking networking...

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

Action Result Crit

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

Pinging_localhost Successful yes

Pinging_localHost Successful yes

Test_rsh: Unsuccessful_connection_refused* yes

Test_ssh: Unsuccessful_connection_refused* yes

FATAL ERROR: No remote shell available.

OpenFOAM 1.5 enviroment requires either ssh and/or rsh.

Contact your system administrator.



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


The system test has evoked 1 fatal error(s).


The foam installation contains 2 critical error(s).



So, please, in this case what can I do?

Last edited by Daniel Pilatti; April 20, 2009 at 23:38.
Daniel Pilatti is offline   Reply With Quote

Old   April 11, 2009, 00:40
Default
  #2
New Member
 
Daniel Pilatti
Join Date: Apr 2009
Posts: 9
Rep Power: 8
Daniel Pilatti is on a distinguished road
In Portuguese...

Preciso saber como se instala o Gcc 4.3.1.

Obrigado!
Daniel Pilatti is offline   Reply With Quote

Old   April 11, 2009, 14:32
Default
  #3
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 9
gwierink is on a distinguished road
Hi Daniel,

The error message says you do not have any gcc c++ compiler:

Code:
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM 

         Supplied version: 4.3.1                                               

         User version    :                                                     

         Minimum required: 4.2.0
What linux distribution do you use? In Fedora you can install it with

Code:
yum install gcc gcc-c++
Or install gcc with the package manager, Synaptic in Ubuntu.

Regards,

Gijsbert
gwierink is offline   Reply With Quote

Old   April 12, 2009, 09:17
Default
  #4
New Member
 
Daniel Pilatti
Join Date: Apr 2009
Posts: 9
Rep Power: 8
Daniel Pilatti is on a distinguished road
Thanks the relply Gijsbert!

Unfortunatelly, I am using Mandriva One Linux Ditstribution so the line comands in the most part of the Forum doesn't work in my linux.

Is there a way to install Gcc compiler on Mandriva or I must install Ubuntu Linux?

Att.

Daniel

Last edited by Daniel Pilatti; April 20, 2009 at 23:40.
Daniel Pilatti is offline   Reply With Quote

Old   April 12, 2009, 10:55
Default
  #5
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 9
gwierink is on a distinguished road
Hi Daniel,

You should be able to install gcc on any linux system, although there may be small differences between distributions. Mandriva has a package manager, where you can just type "gcc" and it will install it with dependencies. Via the command line the following command should work (but I must admit I am not very familiar with Mandriva ):

Code:
urpmi gcc
or maybe like this:

Code:
urpmi gcc gcc-c++
Probably you have to do this in root. Hope this helps.

Regards, Gijsbert
gwierink is offline   Reply With Quote

Old   April 14, 2009, 10:51
Default
  #6
New Member
 
Daniel Pilatti
Join Date: Apr 2009
Posts: 9
Rep Power: 8
Daniel Pilatti is on a distinguished road
Thanks Gijsbert!

I will try to execute the code that you have wrote.

Case it doesn't work, i will install another distribution of linux!

Att.

Daniel
Daniel Pilatti is offline   Reply With Quote

Old   April 16, 2009, 16:04
Default
  #7
New Member
 
Daniel Pilatti
Join Date: Apr 2009
Posts: 9
Rep Power: 8
Daniel Pilatti is on a distinguished road
Well,

The problem whith GCC compiler continuous in my pc. The "foamInstallationTest" don't recognize that the Linux (Ubuntu and Mandriva, in my case) has the GCC compiler activated.

Att.

Daniel
Daniel Pilatti is offline   Reply With Quote

Old   April 16, 2009, 16:25
Default
  #8
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 8
martinr is on a distinguished road
Hi Daniel,
The foamInstallationTest says that OpenFoam is waiting for gcc executable file in the cited path " /home/daniel/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc", Can you see the gcc executable file in the cited path?

Martin
martinr is offline   Reply With Quote

Old   April 17, 2009, 00:02
Default
  #9
New Member
 
Daniel Pilatti
Join Date: Apr 2009
Posts: 9
Rep Power: 8
Daniel Pilatti is on a distinguished road
that's it Martin!

Does not exist the directory /home/.../linux/bin/gcc, but exist /home/.../linux64/bin/gcc.
So, in /OpenFOAM/bashrc archive I found the information I have to change.
But I still have 1 Fatal error -> No remote shell available.
And 1 Critical Error -> gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR


Att.

Daniel

Last edited by Daniel Pilatti; April 17, 2009 at 00:32.
Daniel Pilatti is offline   Reply With Quote

Old   April 17, 2009, 09:25
Default
  #10
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 8
martinr is on a distinguished road
Hi Daniel,
Is your machine 64 bits? I ask that because you say that .../linux64/.. folder exists.
Regarding gcc critical error, OF is waiting for gcc executable file in /bin/ folder and you have it at /usr/bin/, I think you should modify the path in /OpenFOAM/OpenFOAM-1.4.1/.bashrc .
The remote shell problem might be due to ssh program. Have you installed it?

Martin.
martinr is offline   Reply With Quote

Old   April 17, 2009, 10:50
Default
  #11
New Member
 
Daniel Pilatti
Join Date: Apr 2009
Posts: 9
Rep Power: 8
Daniel Pilatti is on a distinguished road
Martin,

I'm going to proceed the changes that you have proposed.
And answering your question: Yes, my machine is 64bits.
And you are wright...yes, I have to reinstall the remote shell, using synaptic packages.
Thank You.

Att.

Daniel

Last edited by Daniel Pilatti; April 21, 2009 at 09:23.
Daniel Pilatti is offline   Reply With Quote

Old   April 19, 2009, 22:07
Default
  #12
New Member
 
Daniel Pilatti
Join Date: Apr 2009
Posts: 9
Rep Power: 8
Daniel Pilatti is on a distinguished road
So,

If help for someone:
I solved the second critical error in my installation:
I have just added a single comand in line 77 of the OF bashrc file:
"export WM_COMPILER_DIR=/usr"
And I solved the remote shell problem, by reinstalling the ssh in the synaptics packages.

Now the foamInstallationTest shows me no error!

Thanks For All!

Att.
Daniel

Last edited by Daniel Pilatti; April 21, 2009 at 09:25.
Daniel Pilatti is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07
user defined function cfduser CFX 0 April 29, 2006 10:58
FOAM installation error gcc amp g hanks OpenFOAM Installation 9 January 26, 2006 15:14


All times are GMT -4. The time now is 23:39.