|
[Sponsors] |
My experiences about Installing OpenFOAM on OPENSUSE103 32bit |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 14, 2008, 22:50 |
Dear guys,
Even I've faced
|
#1 |
New Member
Chuang Gao
Join Date: Mar 2009
Posts: 12
Rep Power: 17 |
Dear guys,
Even I've faced many of the same problems posted on this forum, but finally I've successfully compiled both the openfoam and paraview without any errors. In order to check my understanding and so called experiences, I've reinstalled the Opensuse 10.3 and openfoam today, also no erros. So I'd like to share some of the lessons with you. Steps, 1. downloading the packages from the openfoam official website; for 32bit, I've 4 packages; 2. Decompressing these packages into the installation folder, I prefer the directory, home/<user-name>/OpenFOAM. 3. Following the readmefile in the folder and adding the line .$HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc 4. Before doing the ./Allwmake command, you should check whether you've installed the GCC and QT correctly with proper version. using gcc --version and qmake --version. Actually, if you don't want to recompile the paraview or pvm3reader, you don't need to install the gcc on system as their is a gcc package in the thirdparty folder. But if you want to solve the problem that the openfoam always asks for the reader, you need to install the gcc on your system. 5. Besides, GCC, you should be sure that all the related QT softwares are installed. You could just click the computer ico at the bottom left corner and then install system. And use "qt" as the key words for searching, then install all the searched software packages. Also, "gmp" and "mpfr" packages must be installed. 6. Those who meet the problem of asking "a reader couldn't be found" should recompile pvm3reader following the next instructions. enter the system folder /usr/lib with root account and run this command in the terminal. ln -s libpython2.5.so.1.0 libpython2.5.so then log out and using your former accout,and execute these commandlines. cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader ./Allwclean ./Allwmake *************************************** The lessons that I learned during this process are that all the problems are caused by improper system installation, ie. not all the packages related to QT and gmp and mpfr related to new versions of gcc are installed. Never try the command ./Allwmake before installing the above-mentioned packages. Because the problems or errors occur during the compilation are so diversal. ***************************************** Hope this help you! Thx all the foamers who helped me on this forum. *********************************************** |
|
November 20, 2008, 08:35 |
Dear all and formers
We follo
|
#2 |
New Member
sonia esteban
Join Date: Mar 2009
Posts: 12
Rep Power: 17 |
Dear all and formers
We followed above instructions for installation OF1.5, in SUSE10.3 for 32 bit. We install all packages (GCC, Cmake, mpfr, gmp) also we done the symbolic link for library python, as root. When execute ./Allwmake followed message error we obtained: make[1]: Debido a los errores, el objetivo `application' no se reconstruyó. make[1]: se sale del directorio `/home/foam5/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing' make: *** [postProcessing] Error 2 make: Debido a los errores, el objetivo `application' no se reconstruyó. + '[' '' = doc ']' We think this error is corrected with re-build paraview. So we followed the instructions of readme file about, compiling Paraview3.3 and PV3FoamReader module, when execute buildParaView3.3-cvs we get this message error: ....... [ 14%] Building CXX object VTK/Graphics/CMakeFiles/vtkGraphics.dir/vtkGraphLayoutFilter.o [ 14%] Building CXX object VTK/Graphics/CMakeFiles/vtkGraphics.dir/vtkGridSynchronizedTemplates3D.o /home/foam5/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Graphics/vtkGridSynchronized Templates3D.cxx: In function 'void ContourGrid(vtkGridSynchronizedTemplates3D*, int*, T*, vtkStructuredGrid*, vtkPolyData*, PointsType*, vtkDataArray*) [with T = vtkGridSynchronizedTemplates3D::ThreadedExecute::V TK_TT, PointsType = ContourGrid::VTK_TT]': /home/foam5/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Graphics/vtkGridSynchronized Templates3D.cxx:736: internal compiler error: Violación de segmento Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[2]: *** [VTK/Graphics/CMakeFiles/vtkGraphics.dir/vtkGridSynchronizedTemplates3D.o] Error 1 make[1]: *** [VTK/Graphics/CMakeFiles/vtkGraphics.dir/all] Error 2 make: *** [all] Error 2 done So, if anybody as an idea about this error, please help us. Are missing another packages install for? Thanks. Ana and Sonia |
|
November 28, 2008, 07:44 |
Hello,
The issue of a "good
|
#3 |
Senior Member
Rishi .
Join Date: Mar 2009
Posts: 149
Rep Power: 17 |
Hello,
The issue of a "good" Linux system has been asked often and I have tried installing OpenFOAM atleast 11 times (on a 32bit machine). So based on my experience, I would recommend the following in brief (detailed instruction/messages below): SHORT VERSION: 1. Install OpenSuSE 10.3 DVD version comes loaded with most of the required development packages,libraries, etc. Click every software during installation (maybe except GAMES). Only 2 packages are missing. 2. Install following packages from the DVD using YaST: mpfr-2.2.1-45.i586.rpm mpfr-devel-2.2.1-45.i586.rpm 3. Clean the Paraview platforms and recompile as mentioned in README. ~/OpenFOAM/ThirdParty> rm -rf ParaView3.3-cvs/platforms ~/OpenFOAM/ThirdParty> buildParaView3.3-cvs ~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/PV3FoamRe ader> ./Allwclean ~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/PV3FoamRe ader>./Allwmake 4. Ready to run first example as mentioned in Section 6(Getting Started) ! DETAILED version follows soon... ciao Rishi |
|
November 28, 2008, 08:15 |
Sorry I missed one step betwee
|
#4 |
Senior Member
Rishi .
Join Date: Mar 2009
Posts: 149
Rep Power: 17 |
Sorry I missed one step between 2 and 3.
Please follow the README file of OF-1.5 3 (Section 3 : Installation) for installation using binary files and updating bash/csh. |
|
November 28, 2008, 08:21 |
**********************
DETAIL
|
#5 |
Senior Member
Rishi .
Join Date: Mar 2009
Posts: 149
Rep Power: 17 |
**********************
DETAILED VERSION:***** ********************** Installing OpenFOAM-1.5 with OpensuSE 10.3-DVD version. Log of files created and commands tested when installing OpenFOAM-1.5 with OpensuSE 10.3-DVD version. ************************************************** *************** Testing the softare versions after a clean OpenSuSE 10.3 DVD install, with all software packages With KDE Desktop. ************************************************** *************** > qmake --version QMake version 2.01a Using Qt version 4.3.1 in /usr/lib > cmake --version cmake version 2.4-patch 7 > gcc --version gcc (GCC) 4.2.1 (SUSE Linux) > gmake --version GNU Make 3.81 > make --version GNU Make 3.81 ************************************************** *************** Install OpenFOAM 1.5 as described in Section 3 of README file. http://www.opencfd.co.uk/openfoam/doc/README.html Guess: bash might be default shell if you installed OpenSuSE as described above. ************************************************** *************** ~/OpenFOAM/OpenFOAM-1.5/bin> foamInstallationTest Executing /home/cfd/OpenFOAM/OpenFOAM-1.5/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: andr001 OS: Linux version 2.6.22.5-31-default ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/cfd/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/cfd/OpenFOAM/cfd-1.5 yes no $WM_THIRD_PARTY_DIR /home/cfd/OpenFOAM/ThirdParty yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/cfd/OpenFOAM/OpenFOAM-1.5 yes yes yes $FOAM_APPBIN ...M-1.5/applications/bin/linuxGccDPOpt yes yes yes $FOAM_USER_APPBIN ...d-1.5/applications/bin/linuxGccDPOpt yes yes no $WM_DIR /home/cfd/OpenFOAM/OpenFOAM-1.5/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...nFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt yes yes yes $FOAM_USER_LIBBIN ...d/OpenFOAM/cfd-1.5/lib/linuxGccDPOpt yes yes no $MPI_ARCH_PATH ...penmpi-1.2.6/platforms/linuxGccDPOpt yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.3.1 .../OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc gzip 1.3.12 /usr/bin/gzip tar 1.17 /bin/tar icoFoam 1.5 ...AM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/icoFoam ------------------------------------------------------------------------------- Checking networking... ------------------------------------------------------------------------------- Action Result Crit ------------------------------------------------------------------------------- Pinging_andr001 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. Critical systems ok. done. ************************************************** *************** > cd $FOAM_INST_DIR/ThirdParty ~/OpenFOAM/ThirdParty> rm -rf ParaView3.3-cvs/platforms ~/OpenFOAM/ThirdParty> buildParaView3.3-cvs Building ParaView3.3-cvs MPI support : OFF Python support : OFF MESA support : OFF Source : /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs Target : /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc -- Check for working C compiler: /home/cfd/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -- Check for working C compiler: /home/cfd/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -- broken CMake Error: The C compiler "/home/cfd/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/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[1]: Entering directory `/home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFiles/CMa keTmp' /home/cfd/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux/bin/cmake -E cmake_progress_report /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFiles/CMak eTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o /home/cfd/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFiles/CMak eTmp/testCCompiler.c /home/cfd/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/../libexec/gcc/i686- pc-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[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1 gmake[1]: Leaving directory `/home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFiles/CMa keTmp' 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. done ************************************************** *************** POSSIBLE SOLUTION TO PROBLEM: Install libmpfr mpfr-2.2.1-45.i586.rpm mpfr-devel-2.2.1-45.i586.rpm from 10.3 DVD ************************************************** *************** ~/OpenFOAM/ThirdParty> buildParaView3.3-cvs $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ It Works! Output after compiling paraview $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ... ... ... Creating paraview 3.3 soft link to /bin --- Installation complete Set environment variables: - ParaView_INST_DIR to /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs - ParaView_DIR to /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc - PV_PLUGIN_PATH to /home/cfd/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt Add /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin to PATH --- done $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Works! PATH output after installation and restarting bash $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ echo $PATH /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin:/home/cfd/O penFOAM/ThirdParty/cmake-2.4.6/platforms/linux/bin:/home/cfd/OpenFOAM/ThirdParty /openmpi-1.2.6/platforms/linuxGccDPOpt/bin:/home/cfd/OpenFOAM/ThirdParty/gcc-4.3 .1/platforms/linux/bin:/home/cfd/OpenFOAM/cfd-1.5/applications/bin/linuxGccDPOpt :/home/cfd/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt:/home/cfd/OpenFO AM/OpenFOAM-1.5/wmake:/home/cfd/OpenFOAM/OpenFOAM-1.5/bin:/opt/kde3/bin:/home/cf d/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/l ib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin ************************************************** *************** $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Compiling PV3FoamReader module $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ~/OpenFOAM/ThirdParty/ParaView3.3-cvs> cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader ~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/PV3FoamRe ader> ./Allwclean + rm -r PV3FoamReader/Make rm: cannot remove `PV3FoamReader/Make': No such file or directory + wclean libso vtkPV3Foam wclean vtkPV3Foam ~/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/PV3FoamRe ader>./Allwmake + '[' -d /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc -a -r /home/cfd/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc ']' + case "$ParaView_VERSION" in + wmake libso vtkPV3Foam wmakeLnInclude: linking include files to /home/cfd/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/P V3FoamReader/vtkPV3Foam/lnInclude Making dependency list for source file vtkPV3Foam.C ... ... ... '/home/cfd/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libvtkPV3Foam.so' is up to date. + cd PV3FoamReader + mkdir -p Make/linuxGccDPOpt + cd Make/linuxGccDPOpt + cmake ../.. -- Check for working C compiler: /home/cfd/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -- Check for working C compiler: /home/cfd/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc -- works -- Check size of void* -- Check size of void* - done -- Check for working CXX compiler: /home/cfd/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/c++ -- Check for working CXX compiler: /home/cfd/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/c++ -- works -- Loading ParaView CMake commands -- Loading ParaView CMake commands - done -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Found Qt-Version 4.3.1 -- Configuring done -- Generating done -- Build files have been written to: /home/cfd/OpenFOAM/OpenFOAM-1.5/applications/utilities/postProcessing/graphics/P V3FoamReader/PV3FoamReader/Make/linuxGccDPOpt + make [ 9%] Generating qrc_PV3FoamReader.cxx [ 18%] Generating moc_PV3FoamReaderPluginImplementation.cxx Scanning dependencies of target PV3FoamReader [ 27%] Building CXX object CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o [ 36%] Building CXX object CMakeFiles/PV3FoamReader.dir/PV3FoamReaderPluginImplementation.o [ 45%] Building CXX object CMakeFiles/PV3FoamReader.dir/qrc_PV3FoamReader.o Linking CXX shared library /home/cfd/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libPV3FoamReader.so [ 45%] Built target PV3FoamReader [ 54%] Generating vtkSMXML_PV3FoamReader_SM.h -- Generate module: PV3FoamReader_SM [ 63%] Generating vtkPV3FoamReaderClientServer.cxx Scanning dependencies of target PV3FoamReader_SM [ 72%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPV3FoamReader.o [ 81%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPV3FoamReaderClientServer.o [ 90%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/PV3FoamReader_SMInit.o [100%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPVPluginInit_PV3FoamReader_SM.o Linking CXX shared library /home/cfd/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libPV3FoamReader_SM.so [100%] Built target PV3FoamReader_SM ************************************************** *************** Running first examples, as mentioned in README Section 6 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$ mkdir -p $HOME/OpenFOAM/${USER}-${WM_PROJECT_VERSION}/run cp -r $WM_PROJECT_DIR/tutorials $HOME/OpenFOAM/${USER}-${WM_PROJECT_VERSION}/run cd $HOME/OpenFOAM/${USER}-${WM_PROJECT_VERSION}/run/tutorials/icoFoam/cavity blockMesh icoFoam paraFoam ************************************************** *************** Everything works including paraFoam |
|
December 24, 2008, 22:45 |
Dear Rishi Patil,
I got "FAT
|
#6 |
Member
Jitao Liu
Join Date: Mar 2009
Location: Jinan , China
Posts: 64
Rep Power: 17 |
Dear Rishi Patil,
I got "FATAL ERROR: OpenFOAM environment not configured" when I tried to install OF1.5 on OpenSUSE10.3 (with KDE workstop). The softare versions are : ********************************************** > qmake --version QMake version 2.01a Using Qt version 4.3.1 in /usr/lib > cmake --version cmake version 2.4-patch 7 > gcc --version gcc (GCC) 4.2.1 (SUSE Linux) > gmake --version GNU Make 3.81 > make --version GNU Make 3.81 ********************************************** My foamSystemCheck is ok. I have added "$HOME/OpenFOAM/OpenFOAM-<version>/etc/bashrc"to the end of my $HOME/.bashrc file.When sourcing the $HOME/.bashrc file,I got "bash:.... permission denied".Then I typed >> chmod -R 755 /home/OpenFOAM >> $HOME/.bashrc No problems were reported this time. But when I test the installation with by executing the 'foamInstallationTest' script,it gives: *********************************************** Executing /home/OpenFOAM/OpenFOAM/OpenFOAM-1.5/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- FATAL ERROR: OpenFOAM environment not configured. Please refer to the installation section of the README file: <openfoam>/OpenFOAM-1.5/README to source the OpenFOAM environment. *********************************************** I'm a newer in linux and OpenFOAM. Can you please suggest what should I do? Thanks a lot. |
|
December 25, 2008, 05:42 |
Hi Rishi Patil,
I have insta
|
#7 |
Member
Jitao Liu
Join Date: Mar 2009
Location: Jinan , China
Posts: 64
Rep Power: 17 |
Hi Rishi Patil,
I have installed OpenFOAM-1.5 successfully under your introduction. Thanks |
|
December 26, 2008, 09:23 |
liu, I have the same problem a
|
#8 |
New Member
Nikola Mirkov
Join Date: Mar 2009
Location: Belgrade, Serbia
Posts: 18
Rep Power: 17 |
liu, I have the same problem as you - how can I solve it???
I think Rishi gave very good instructions, but I feel I'm stuck at point 3. of README :/
__________________
www.laturbolenza.com |
|
January 19, 2009, 19:52 |
FATAL ERROR: OpenFOAM environm
|
#9 |
New Member
Chuang Gao
Join Date: Mar 2009
Posts: 12
Rep Power: 17 |
FATAL ERROR: OpenFOAM environment not configured.
For this error, the installation has given you the right hint. ************************************* Please refer to the installation section of the README file: <openfoam>/OpenFOAM-1.5/README to source the OpenFOAM environment. ******************************* I don't know why you persons didn't read the errors carefully. The above information tells you to configure the .bashrc file and source it to tell openfoam the position of related files. |
|
February 19, 2010, 00:00 |
|
#10 | |
Senior Member
|
Quote:
regards, -Louis |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can anybody help me to solve the list errors while compiling Openfoam 15 on Opensuse 103 32bit | coompressor | OpenFOAM Installation | 0 | November 12, 2008 20:53 |
Installing OpenFOAM without Paraview | quartzian | OpenFOAM Installation | 0 | September 8, 2008 10:29 |
Installing OpenFOAM | honcho | OpenFOAM Installation | 1 | April 9, 2008 07:29 |
Problem installing OpenFOAM 141 | sachin | OpenFOAM Installation | 2 | February 22, 2008 11:20 |
OpenFOAM installation problem on Linux 32bit | kumar | OpenFOAM Installation | 0 | April 27, 2007 06:41 |