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

GCC Critical Error.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2009, 17:26
Default GCC Critical Error.
  #1
Member
 
Marco Bernardes
Join Date: May 2009
Posts: 59
Rep Power: 17
masb is on a distinguished road
hi Guys,

I'm trying to install OpenFoam but I could not solve the following problems:
I will appreciate any help.

Regards,

Marco.

-------------------------------------
gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /home/marco/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/marco/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR
Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_marco Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

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

Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.
masb is offline   Reply With Quote

Old   May 23, 2009, 20:58
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Marco, did you edit your .bashrc file? To me it looks like the environment variables are not set correctly.
akidess is offline   Reply With Quote

Old   May 25, 2009, 07:20
Default
  #3
Member
 
Marco Bernardes
Join Date: May 2009
Posts: 59
Rep Power: 17
masb is on a distinguished road
Anton,

thank you very much for your reply.
Yes, I have edited the .bashrc. Now I get the following:

gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

Could help me please to solve this problem?
I will appreciate it.

regards,

Marco.
masb is offline   Reply With Quote

Old   May 25, 2009, 14:17
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Are you trying to use the system compiler or the one with OpenFOAM (latter is highly recommended)? Is the OpenFOAM statement the last line in your ~/.bashrc? What is the output of "echo $WM_COMPILER_DIR" and "echo $PATH"?
akidess is offline   Reply With Quote

Old   May 27, 2009, 22:10
Default
  #5
Member
 
Marco Bernardes
Join Date: May 2009
Posts: 59
Rep Power: 17
masb is on a distinguished road
Anton,

thank you again. I'm linux newby. The output of "echo $WM_COMPILER_DIR" returns nothing. The "echo $PATH" returns:

/home/marco/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/bin:/home/marco/OpenFOAM/marco-1.5/applications/bin/linuxGccDPOpt:/home/marco/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt:/home/marco/OpenFOAM/OpenFOAM-1.5/wmake:/home/marco/OpenFOAM/OpenFOAM-1.5/bin:/usr/lib/mpi/gcc/openmpi/bin:/home/marco/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

Thanks,

Marco.
masb is offline   Reply With Quote

Old   May 28, 2009, 08:08
Default
  #6
Member
 
Marco Bernardes
Join Date: May 2009
Posts: 59
Rep Power: 17
masb is on a distinguished road
Anton,

I have changed the OpenFOAM settings to "WM_COMPILER_INST=OpenFOAM" but the error remains the same:

cc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /home/marco/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

Marco.
masb is offline   Reply With Quote

Old   May 28, 2009, 14:08
Default
  #7
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Your PATH variable is missing an entry like ~/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin. It is supposed to be set in OpenFOAM/OpenFOAM-1.5/etc/settings.sh.

OpenFOAM comes split up in four archives, two for OpenFOAM itself, two with third party applications. Did you miss either ThirdParty.General.gtgz or ThirdParty.linuxGcc.gtgz?

Is there a gcc binary in /home/marco/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin ?
akidess is offline   Reply With Quote

Old   June 6, 2009, 22:42
Thumbs up OpenFOAM install.
  #8
Member
 
Marco Bernardes
Join Date: May 2009
Posts: 59
Rep Power: 17
masb is on a distinguished road
Hi,

Finally I have got OpenFOAM installed. The ./foamInstallationTest have run without problem. I have tried to run the sample 'cavity'. The paraFoam command returns the following error message:

paraFoam: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: Error 40

Could you help me please?

Thanks,

Marco.
masb is offline   Reply With Quote

Old   June 6, 2009, 22:47
Default
  #9
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Thats good, you're done with the hard part I think To fix this problem, you need a scripting tool called Python. You can easily install it using the package manager of your Linux distribution, e.g. Synaptic on Ubuntu/Debian or Yast on SUSE.
akidess is offline   Reply With Quote

Old   June 11, 2009, 05:55
Default
  #10
New Member
 
Join Date: Jun 2009
Posts: 7
Rep Power: 17
riderman is on a distinguished road
Hello masb and akidess,

masb: I've exactly the same problems. Can you tell me exactly what you did to solve the following error

gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

There is a gcc binary in /home/xxx/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin


Moreover, I tried too to run the sample 'cavity' :
First, I had the same message as your :
paraFoam: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file
So I installed the librairy libpython3.0 (the most recent version). Now:
> paraFoam
paraview: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: No such file or directory

What should I do? akidess (or others), any idea?
riderman is offline   Reply With Quote

Old   June 11, 2009, 16:51
Default
  #11
Member
 
Marco Bernardes
Join Date: May 2009
Posts: 59
Rep Power: 17
masb is on a distinguished road
Anton,

After the Paraview 3.3 and the PV3FoamReader module compilation the paraview is working fine. After running the cavity sample, paraFoam starts the paraview program but I can't see any result.

Regards,

Marco.


The blockMesh returns:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : blockMesh
Date : Jun 11 2009
Time : 16:45:29
Host : linux-l0h8
PID : 5107
Case : /home/marco/OpenFOAM/marco-1.5/run/tutorials/icoFoam/cavity
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time


Reading block mesh description dictionary

Creating block mesh

Creating blockCorners

Creating curved edges

Creating blocks

Creating patches

Creating block mesh topology

Default patch type set to empty

Check block mesh topology

Basic statistics
Number of internal faces : 0
Number of boundary faces : 6
Number of defined boundary faces : 6
Number of undefined boundary faces : 0

Checking patch -> block consistency

Creating block offsets

Creating merge list .

Creating points

Creating cells

Creating patches

Creating mesh from block mesh

Default patch type set to empty

Writing polyMesh

end
************************************************** *******

The icoFoam command returns many things like this:
Time = 0.5

Courant Number mean: 0.116925 max: 0.852134
DILUPBiCG: Solving for Ux, Initial residual = 1.89493e-07, Final residual = 1.89493e-07, No Iterations 0
DILUPBiCG: Solving for Uy, Initial residual = 4.14522e-07, Final residual = 4.14522e-07, No Iterations 0
DICPCG: Solving for p, Initial residual = 1.06665e-06, Final residual = 3.39604e-07, No Iterations 1
time step continuity errors : sum local = 5.25344e-09, global = 8.60268e-20, cumulative = -1.20491e-18
DICPCG: Solving for p, Initial residual = 5.36118e-07, Final residual = 5.36118e-07, No Iterations 0
time step continuity errors : sum local = 6.86432e-09, global = -1.44128e-18, cumulative = -2.64619e-18
ExecutionTime = 0.4 s ClockTime = 3 s

End

************************************************** *
masb is offline   Reply With Quote

Old   June 11, 2009, 17:11
Default Sucess!
  #12
Member
 
Marco Bernardes
Join Date: May 2009
Posts: 59
Rep Power: 17
masb is on a distinguished road
Anton,

finally I have got the image of the results. Thank you very much for your help. The program is great!

Regards,

Marco.

Quote:
Originally Posted by akidess View Post
Thats good, you're done with the hard part I think To fix this problem, you need a scripting tool called Python. You can easily install it using the package manager of your Linux distribution, e.g. Synaptic on Ubuntu/Debian or Yast on SUSE.
masb is offline   Reply With Quote

Old   June 11, 2009, 20:29
Default
  #13
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Great Marco, good job!

Riderman, python 3 is no substitute for python 2.5. Try installing the proper version. Also, did you edit your ~/.bashrc file to include the OpenFOAM bashrc? In OpenFoam-1.5/etc/settings.sh, is WM_COMPILER_INST set to OpenFOAM?
akidess is offline   Reply With Quote

Old   June 12, 2009, 11:33
Default
  #14
New Member
 
Join Date: Jun 2009
Posts: 7
Rep Power: 17
riderman is on a distinguished road
Hello akidess,

I don't really know what I should do. What do you exactly mean by
- "edit your ~/.bashrc file to include the OpenFOAM bashrc". Updating the environmental variables? Yes I did it.
- "is WM_COMPILER_INST set to OpenFOAM"

I've done everything that is written in the README file (http://www.opencfd.co.uk/openfoam/doc/README.html) until >paraFoam, in 6 getting Started

The proper version of libpython isn't available: http://packages.ubuntu.com/search?la...ords=libpython. That's why a installed the version 3.0

Thank you for your help and have a nice Friday.
riderman is offline   Reply With Quote

Old   June 12, 2009, 14:29
Default
  #15
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
I recommend using ubuntu 8.04 LTS (personally I use 8.10). There are posts of problems with paraFoam and 9.04 in this Forum without a solution. Anyways, from your link it looks like Python 2.6 is available, so install that. Unlike Python 3, it should be compatible to Python 2.5.

To be more clear on what I wrote earlier:
You edited the file ~/.bashrc to include the line ". $HOME/OpenFOAM/OpenFOAM-<VERSION>/etc/bashrc"?

Is OpenFOAM installation in $HOME/OpenFoam/OpenFOAM-1.5/ ?

Now, look at $HOME/OpenFOAM/OpenFOAM-<VERSION>/etc/settings.sh: Find a line that starts with WM_COMPILER_INST and see if it's set to OpenFOAM and not system.

I'm assuming from the output you provided that you got the first two steps right, but there's something wrong in the settings.sh file.

-Anton
akidess is offline   Reply With Quote

Old   June 16, 2009, 12:39
Default Thank you!!!
  #16
New Member
 
Join Date: Jun 2009
Posts: 7
Rep Power: 17
riderman is on a distinguished road
Yeahhhhhhhhhh at least it works!!!
Thank you very much Akidess, you can't imagine (or perhaps yes ) how I'm happy. Champagne! Would you like a flute?

However, I've this error message:

>OpenFOAM/OpenFOAM-1.5/tutorials/icoFoam/cavity$ paraFoam
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
warning: Not importing directory '/usr/lib/python2.5/encodings': missing __init__.py
unknown chip id 0x94c9, can't guess

But, but, the graphic windows opened. I have got any idea of what it means.
riderman is offline   Reply With Quote

Old   June 16, 2009, 15:57
Default
  #17
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Great, I'm glad I could help . I've never come across those messages, so I'll have to refer you to your favorite search engine if no-one else knows an answer.
Some clues:
The $PYTHONHOME environment variable is not set on my computer either, so that is not the culprit.
The "unidentified chip" message sounds like a problem with your graphics driver.

Cheers,
Anton
akidess is offline   Reply With Quote

Old   June 18, 2009, 08:17
Default
  #18
New Member
 
Join Date: Jun 2009
Posts: 7
Rep Power: 17
riderman is on a distinguished road
Hello Akidess, and hello others,

I have a problem with paraview, exactly the same as in the following link: http://www.cfd-online.com/Forums/ope...afoam-bug.html

" A reader for "cavity.OpenFOAM" could not be found. Please choose one: " this is followed by a long list of file formats

However, Qt is still installed.
>~/OpenFOAM/ThirdParty$ qmake --version
QMake version 2.01a
Using Qt version 4.5.0 in /usr/lib

Should I uninstall this version and install another one?
riderman is offline   Reply With Quote

Old   June 18, 2009, 14:07
Default
  #19
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Did you use paraview, or paraFoam? Latter is the correct command.
akidess is offline   Reply With Quote

Old   June 19, 2009, 06:29
Default
  #20
New Member
 
Join Date: Jun 2009
Posts: 7
Rep Power: 17
riderman is on a distinguished road
I used paraFoam.
For the moment, in the readme (http://www.opencfd.co.uk/openfoam/doc/README.html), I'm still at the 6 point, Getting Started

Should I go to the next step?

Last edited by riderman; June 19, 2009 at 07:53.
riderman 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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31


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