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. |
Marco, did you edit your .bashrc file? To me it looks like the environment variables are not set correctly.
|
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. |
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"?
|
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. |
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. |
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 ? |
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. |
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.
|
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? |
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 ************************************************** * |
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:
|
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? |
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. |
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 |
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: |
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 |
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? |
Did you use paraview, or paraFoam? Latter is the correct command.
|
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? |
Yeah, this in not a QT problem, but a problem with the Foam reader plugin. If step 7 in the readme does not work, a remedy is to convert the results with foamToVTK and use paraview instead.
|
problem with parafoam (detailled below)
Hello Akidess,
I did what is written in the step 7 but in doesn't work : alexandre@alexandre-laptop:~/OpenFOAM/alexandre-1.5/run/tutorials/icoFoam/cavity$ paraFoam /home/alexandre/OpenFOAM/OpenFOAM-1.5/bin/paraFoam: 103: paraview: not found So, I decided to look at this file and here is the "bin/paraFoam". I added numbers of lines otherwise I would be a little be difficult for you to have marks. Can you compare it to yours and tell me whether the error comes from this file? Moreover, could you indicate me how to convert the results with foamToVTK? Kind regards Riderman 33/Script=${0##*/} 35/usage() { while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<<USAGE usage: $Script [-case dir] 40/ * start paraview $ParaView_VERSION with the OpenFOAM libraries USAGE exit 1 45/} # parse options if [ "$#" -gt 0 ]; then case "$1" in 50/ -h | -help) usage ;; -case) shift 55/ caseDir=$1 [ "$#" -ge 1 ] || usage "'-case' option requires an argument" cd "$caseDir" 2>/dev/null || usage "directory does not exist: '$caseDir'" ;; *) 60/ usage "unknown option/argument: '$*'" ;; esac fi 65/# get a sensible caseName caseName=${PWD##*/} # parent directory for normal or parallel results case "$caseName" in 70/ processor*) parentDir=".." ;; *) parentDir="." ;; esac # check existence of essential files 75/for check in system/controlDict system/fvSchemes system/fvSolution do [ -s "$parentDir/$check" ] || usage "file does not exist: '$parentDir/$check'" done 80/#caseFile="$caseName.foam" caseFile="$caseName.OpenFOAM" case "$ParaView_VERSION" in 2*) 85/ # Clean up on termination and on Ctrl-C trap "rm -f paraFoam.pvs $caseFile 2>/dev/null; exit 0" EXIT TERM INT touch $caseFile # since we are now in the cwd, %CASE% is '$PWD/$caseFile' 90/ sed -e s@%CASE%@$PWD/$caseFile@g \ $WM_PROJECT_DIR/bin/paraFoam.pvs > paraFoam.pvs paraview paraFoam.pvs ;; 95/ *) # Clean up on termination and on Ctrl-C trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT touch $caseFile 100/ paraview --data=$caseFile ;; 103/esac #-------------------- |
My paraFoam file is not altered, it is the standard script that comes with OpenFOAM. I use ubuntu 8.10 and paraFoam worked out of the box, so I did not have to recompile and cannot give you further advice. Did paraview compile without any errors? Looks like you are missing the binary file.
To view your files in VTK format, run a simulation, then execute the script foamToVTK in your case directory. This will create a new subdirectory "VTK". Now you can run paraview (not paraFoam) and open the VTK files. -Anton |
All times are GMT -4. The time now is 23:49. |