Problem installing ParaView3.3-cvs
I'm trying to install OpenFoam-1.5 on my 64-bit RHEL5 machine and I've followed the README.html up to step 6.
When I try the 3 commands in Step 6, blockMesh and icoFoam runs ok but paraFoam returned an error like "paraview: command not found." So I figure I should proceed to step 7 and install paraview3.3 and PV3FoamReader.
When I ran "buildParaView3.3-cvs" I received an error saying that my gcc is "broken" and "is not able to compile a simple test program." What gives? Please see screen capture below:
[peter@cfddeepthought ThirdParty]$ buildParaView3.3-cvs
MPI support : OFF
Python support : OFF
MESA support : OFF
Source : /home/peter/OpenFOAM/ThirdParty/ParaView3.3-cvs
Target : /home/peter/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc
-- Check for working C compiler: /home/peter/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
-- Check for working C compiler: /home/peter/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -- broken
CMake Error: The C compiler "/home/peter/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc" is not able to compile a simple test program.
It fails with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake: Entering directory `/home/peter/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/CMakeTmp'
/home/peter/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux64/bin/cmake -E cmake_progress_report /home/peter/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o
/home/peter/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c /home/peter/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/CMakeTmp/testCCompiler.c
/home/peter/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.3.1/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
gmake: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1
gmake: Leaving directory `/home/peter/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
-- Configuring done
make: *** No targets specified and no makefile found. Stop.
I tried installing gcc-4.3.1 from source but I had to change the gcc path in /etc/settings.sh in order for the system to recognise it (otherwise it'll keep calling the gcc in /ThirdParty). I then tried buildParaView3.3-cvs but it failed to find multiple files and crashed af 12%. I've also read up on alternative installation method using ccmake but I have no idea how to get it work.
Can someone please point out how I can tackle the problem? Thanks in advance!
1) Use the system compiler. However, I don't think the one in RHEL5 is sufficient;
2) Upgrade the system;
4) Compile gcc 4.2.x;
3) Compile gcc 4.3.x and statically link mpfr & gmp. I never tried myself and it doesn't sound easy.
It's your choice.
Thank you henrik!
I've recompiled gcc, gmp and mpfr. I finally managed to build paraview with the help of ccmake, but I'm now getting this error when I run paraFoam:
[peter@cfddeepthought cavity]$ paraFoam
paraview: symbol lookup error: paraview: undefined symbol: _ZN5QFont16staticMetaObjectE
Does anyone know what's causing this and how to get around it? Thanks again! :p
can you please post how you recompiled gcc including gmp and mpfr. This might be interesting to others.
My feeling is that your new problem is related to Qt. Please check that you have an appropriate version. You might have to compile the right one.
Sorry about the late reply, I was away for a few days.
I still have the same problem as of this morning. I've double-checked my Qt and I've got version 4.3.1 on my machine:
[peter@cfddeepthought cavity]$ qmake --version
QMake version 2.01a
Using Qt version 4.3.1 in /usr/local/Trolltech/Qt-4.3.1/lib
This Qt version should be fine for my machine running RHEL 5 I hope?
As for recompiling gcc etc, I have a little confession to make: I am a windows user and I've only started playing with Linux about a month ago, so I am still very inexperienced and fuzzy about technical terms used in the Linux platform. When I say "compile," I was drawing an equal sign to the term "install" in windows machines.
All that I've done is to download GMP, MPFR and GCC from source provider and run "./configure", "make" and "make install" for each package. Everytime a program complains about missing library or "command unknown" I just add a path into the environmental variables such as $PATH or $LD_LIBRARY_PATH. There was a lot of trial and error involved and I cannot write down exactly what I've done. Sorry to disappoint you......:(
@Qt: 4.3.1 is fine according to the README
@paraFoam: I am running out of ideas here. Since you recompiled the compiler, it might be worth a try to recompile everything from scratch.
@compile Linux: "./configure", "make" and "make install" is exactly what the community refers to as "compile & install from source" - Welcome to the Linux expirience.
Thank you Henrik! I will keep poking around for a solution :)
Just to let you know that my OpenFOAM-1.5 is finally working!
I did as you suggested: I removed OpenFOAM completely and compiled from scratch. This time the installation went really smoothly thanks to all those packages I installed earlier (Qt-4.3.1, GCC, MPFR and GMP) and it finished without any error! Now I can finally do the tutorials :D
Thanks for your help, I really appreciate that!
|All times are GMT -4. The time now is 23:18.|