CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   OpenFOAM and Paraview install issues (

spridal86 December 20, 2007 12:34

I'm trying to set up OpenFOAM
I'm trying to set up OpenFOAM on a first time Linux machine. SuSE 10.1 was just installed on it. OpenFOAM installs fine, but when i do a installation test, I get a fatal error stating:
Test_rsh: Unsuccessful_connection_refused* yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

When trying to install Paraview, I know i first have to install cmake and Qt, but when tryingto configure cmake 2.4.7, I get the following error message:
Error when bootstrapping CMake:
Cannot find appropriate C compiler on this system.
Please specify one using environment variable CC.
See cmake_bootstrap.log for compilers attempted.

Any help that can be provided would be much appreciated. Try to keep in mind however that I am a first time linux user and have very little experience. Thanks

dmoroian December 21, 2007 02:47

Hi Bob, The error that you ge
Hi Bob,
The error that you get is not one that you should worry about. As it says it self, if you have ssh working then you are on the right track. Anyway, having rsh or ssh up and running matters only if you do parallel computations on different nodes.
About paraview: why don't you run the binary version that comes bundled with OpenFOAM-1.4.1? You don't need to compile anything, just download and unpack everything from the web.


lillberg December 21, 2007 06:00

Seems that you don't have gcc
Seems that you don't have gcc in your path. What does 'which gcc' tell you?


r08n January 23, 2008 12:54

Hello world, I'm trying to
Hello world,

I'm trying to compile OpenFOAM-1.4.1 on Debian 4.0 (if it matters). Somewhere in the process, I get this kind of errors:

make[3]: Leaving directory `/home/rob/Install/CFD/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProces sing/graphics/PVFoamReader/vtkFoam'
+ cd PVFoamReader
+ mkdir -p Make/linuxg++DPOpt
+ cd Make/linuxg++DPOpt
+ cmake ../..
CMake Error: Error in cmake code at
/home/rob/OpenFOAM/linux/paraview-2.4.4/lib/paraview-2.4/ParaViewConfig.cmake:29 :
INCLUDE Could not find include file: /home/dm2/henry/OpenFOAM/linuxSrc/paraview-2.4.4/platforms/linuxGcc4DPOpt/ParaVi ewLibraryDepends.cmake
Current CMake stack: /home/rob/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/graphics /PVFoamReader/PVFoamReader/CMakeLists.txt;/usr/share/cmake-2.4/Modules/CMakeCInf ormation.cmake;/usr/share/cmake-2.4/Modules/CMakeCXXInformation.cmake;/home/rob/ OpenFOAM/linux/paraview-2.4.4/lib/paraview-2.4/ParaViewConfig.cmake;/home/dm2/he nry/OpenFOAM/linuxSrc/paraview-2.4.4/platforms/linuxGcc4DPOpt/ParaViewLibraryDep ends.cmake

I have the Paraview files that come with the OpenFOAM installation in the folder ~/OpenFOAM/linux/paraview-2.4.4. The file causing the above errors is ~/OpenFOAM/linux/paraview-2.4.4/lib/paraview-2.4/ParaViewConfig.cmake
and it contains the following:


SET(PARAVIEW_USE_FILE "/home/dm2/henry/OpenFOAM/linuxSrc/paraview-2.4.4/ParaViewUse.cmake")
SET(PARAVIEW_VTK_DIR "/home/dm2/henry/OpenFOAM/linuxSrc/paraview-2.4.4/platforms/linuxGcc4DPOpt/VTK")
... (skipped the rest)

The hardcoded folder "/home/dm2/henry/" implies some half-brewed development snapshot. I could edit this file and insert the correct folders, but the problem is, most of these files and folders to which ParaViewConfig.cmake refers are nowhere to be found. There are no paraview-2.4.4/Utilities/ or paraview-2.4.4/VTK folders; it seems that the entire Paraview installation is incomplete. Is it really so, or did I overlook smth? Where else could I look for errors?

andre February 10, 2008 17:12

Hi, i got exactly the same err
Hi, i got exactly the same errors.
I be glad to hear something.

philippose February 10, 2008 17:43

Hello, Good evening! I h

Good evening!

I happened to be looking through the forum, and thought I could put in some pointers regarding this issue.

In order to recompile OpenFOAM with support for paraview 2.4.x series, you need to have the Paraview 2.4.x source available, and you need to first compile Paraview on your machine before compiling OpenFOAM.

Once Paraview is compiled, a couple of files need to be copied to the Paraview installation (which is usually <openfoam>/linux/paraview-2.4.x). One of these files is the "ParaViewConfig.cmake" file, which gets generated during the Paraview compile process (The error you are currently seeing is because the ParaViewConfig.cmake file in the current paraview installation was generated on the machine on which it was compiled.)

The file I am attaching is a short set of instructions for building OpenFOAM along with the auxiliary programs (some of which are not essential in all cases). This file can also be found in the OpenFOAM SVN repository. buildInstructions.txt

Have a nice day!


r08n February 13, 2008 11:59

Hi, thanks for instructions

thanks for instructions.

I have downloaded the file paraview-2.4.4.linux.tgz from It has the following structure:

paraview-2.4.4/share/paraview-2.4/CMakeFiles/CMakeTmp/CMakeFiles/cmTryCompileExe c.dir

It seems that the file CMakeLists.txt is missing. therefore, I cannot build the paraview version supplied with OpenFOAM.
There is a newer version (3.2.1) available from, but it requires Qt-4.2.2, and I only have Qt-4.2.1 that comes with Debian 4.0. I also have libvtk-5.0.2-4. Is it possible to use these?

Considering the above, what would be the best way:
1) Try to find paraview-2.4.4 that works;
2) Upgrade libqt and build paraview-3.2.1;
3) Something else? Did I overlook something?
Any suggestions are very welcome.

philippose February 13, 2008 14:15

Hello, A Good evening! T

A Good evening!

The Paraview-2.4.4 version that you downloaded from the OpenFOAM webpage contains only the binaries... as in... it is a precompiled version, and does not contain the sources.

In order to compile Paraview-2.4.4, you need to download the sources, which can be downloaded from the following link:

In the above FTP site, the sources are contained in the file: paraview-2.4.4.tar.gz

Once you have extracted the contents of the tgz file, you need to follow the instructions given in the text file posted earlier on this thread.

As for Paraview-3.2.1 ... As of now, a plugin for Paraview-3.2.1 which can be used to postprocess OpenFOAM cases directly from within Paraview is available in the following thread (paraFoam only works with the Paraview-2.4.x series), dated 23 October, 2007 (The install process is also given there):

It would be easiest to upgrade your Qt version to 4.2.2... but if thats not possible, you can try the following:

Within the Paraview3 source files, go to the following folder: \ParaView3\Qt

Here, open the file CMakeLists.txt, and change the line in the beginning starting with STRING(REGEX MATCH.........) to (unless it already looks like this):

STRING(REGEX MATCH "^4\.[2-3]\.[0-9]+" qt_version_tmp "${QTVERSION}")

And change: SET(QT_MIN_VERSION "4.2.2") to SET(QT_MIN_VERSION "4.2.1")

The advantage with Paraview-3.2.1 is, that the interface is extremely slick and professional, and things look a lot better, though there seems to be problems with Lookmarks.

Hope all this helps :-)!



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