CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   GCC Critical Error. (http://www.cfd-online.com/Forums/openfoam-installation/64654-gcc-critical-error.html)

masb May 18, 2009 16:26

GCC Critical Error.
 
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.

akidess May 23, 2009 19:58

Marco, did you edit your .bashrc file? To me it looks like the environment variables are not set correctly.

masb May 25, 2009 06:20

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.

akidess May 25, 2009 13:17

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"?

masb May 27, 2009 21:10

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 May 28, 2009 07:08

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.

akidess May 28, 2009 13:08

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 ?

masb June 6, 2009 21:42

OpenFOAM install.
 
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.

akidess June 6, 2009 21:47

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.

riderman June 11, 2009 04:55

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?

masb June 11, 2009 15:51

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 June 11, 2009 16:11

Sucess!
 
Anton,

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

Regards,

Marco.:D:D:D:D:D

Quote:

Originally Posted by akidess (Post 218459)
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 June 11, 2009 19:29

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?

riderman June 12, 2009 10:33

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.

akidess June 12, 2009 13:29

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

riderman June 16, 2009 11:39

Thank you!!!
 
Yeahhhhhhhhhh at least it works!!!
Thank you very much Akidess, you can't imagine (or perhaps yes :D) 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.:confused:

akidess June 16, 2009 14:57

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

riderman June 18, 2009 07:17

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?

akidess June 18, 2009 13:07

Did you use paraview, or paraFoam? Latter is the correct command.

riderman June 19, 2009 05:29

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?


All times are GMT -4. The time now is 14:26.