CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   ParaView Installation (http://www.cfd-online.com/Forums/openfoam-installation/107183-paraview-installation.html)

pbarc September 19, 2012 15:32

ParaView Installation
 
Hello,

I am attempting to install OpenFOAM 2.1.1 on the Redhat scientific version of Linux.

I receive this error when I attempt execute the command wmSET:

-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/etc/config/settings.sh: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/etc/config/aliases.sh: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory



I also get this error when I run ./Allwmake from the PV3Readers directory.

vtkPV3Foam.C:194: error: ‚partId‚ was not declared in this scope
vtkPV3Foam.C:194: error: ‚forAll‚ was not declared in this scope
vtkPV3Foam.C:195: error: expected ‚;‚ before ‚{‚ token
vtkPV3Foam.C:179: warning: unused variable ‚selection‚
vtkPV3Foam.C:828: error: expected ‚}‚ at end of input
make: *** [Make/linux64GccDPOpt/vtkPV3Foam.o] Error 1
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
PV3FoamReader/Allwmake: line 12: cmake: command not found
+ make
make: *** No targets specified and no makefile found. Stop.


Any help on how to proceed would be much appreciated

wyldckat September 19, 2012 17:26

Greetings pbarc and welcome to the forum!

Quote:

Redhat scientific version of Linux
Which specific version? Is it in the 5.x or 6.x series?

Either way, the dedicated project to OpenFOAM +RedHat Linux and derived versions is CentFOAM: http://sourceforge.net/apps/mediawik...itle=Main_Page

Associated to this subject, there is at least this thread: http://www.cfd-online.com/Forums/ope...tml#post359479

Good luck!
Bruno

pbarc September 20, 2012 10:23

Thanks for the help Bruno,

I am running the 6.x version.

The problems seem to be when I run makeParaview. During the output it says that:

etc/tools/ParaViewFunctions: line 422: cmake: command not found
Starting make
make: *** No targets specified and no makefile found. Stop.

I have installed the most recent version of cmake locally and added the dir of cmake to the .bashrc file.

But when I execute the command which cmake it says no cmake in (then list a bunch of directorys) but I checked the directory that cmake is in and it is listed in the directories that the which command says it is not in.

Any ideas?

Thanks,
Paul

wyldckat September 23, 2012 11:39

Greetings Paul,

Sorry for taking so long to answer you, but only today did I get around to test this. You'll find the resulting instructions from my endeavor at http://openfoamwiki.net/index.php/In...HEL#CentOS_6.3

Skip to point #7 for building CMake and ParaView.

Best regards,
Bruno

pbarc September 24, 2012 09:52

Thanks Bruno,

So I now have Paraview and cmake built, but when I run the wmSET command an error shows up saying:

>> $ wmSET $FOAM_SETTINGS
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/etc/config/settings.sh: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/etc/config/aliases.sh: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory
-bash: /data/app/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory



If I skip the wmSET and go onto ./Allwclean and ./Allwmake, Error 2 shows up while building:

[ 64%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/moc_pqPV3FoamReaderPanelImplementation.cxx.o
[ 70%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPV3FoamReader.cxx.o
In file included from /home/pbarc/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx:43:
/home/pbarc/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/../vtkPV3Foam/vtkPV3Foam.H:64:23: error: className.H: No such file or directory
/home/pbarc/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/../vtkPV3Foam/vtkPV3Foam.H:65:22: error: fileName.H: No such file or directory ...
Reader/vtkPV3FoamReader.cxx:349: error: ‚debug‚ is not a member of ‚Foam::vtkPV3Foam‚
make[2]: *** [CMakeFiles/PV3FoamReader_SM.dir/vtkPV3FoamReader.cxx.o] Error 1
make[1]: *** [CMakeFiles/PV3FoamReader_SM.dir/all] Error 2
make: *** [all] Error 2


Any idea on to why that may happen?

Thanks,
Paul

wyldckat September 24, 2012 10:11

Hi Paul,

Start a new terminal and try the last block once again, without the wmSET command, i.e.:
Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers 
./Allwclean
./Allwmake

Additionally, you should check if you have ParaView properly built:
Code:

which paraview
If this command returned nothing, then something went wrong.

The reason why wmSET worked in such a very wrong way was probably because you didn't follow the instructions from the beginning, where the settings are being defined in a different way.

Best regards,
Bruno

pbarc September 24, 2012 10:45

I ran ./Allwclean and ./Allwmake without running wmSET and the installation seems to have worked and I was able to open paraFoam while running the first tutorial.

Thanks for your help Bruno!


All times are GMT -4. The time now is 08:23.