CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM 2.1.1 installation on openSUSE 12.2 32 bit

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By wyldckat
  • 1 Post By Daniel73
  • 1 Post By linch

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 27, 2013, 18:59
Default OpenFOAM 2.1.1 installation on openSUSE 12.2 32 bit
  #1
New Member
 
Join Date: Dec 2012
Posts: 4
Rep Power: 13
saturn_53 is on a distinguished road
Dear Foamers:

I have a laptop that I recently installed openSUSE 12.2 32 bit. It runs gnome with the cinnamon flavor.

uname -a returns:

Code:
Linux 3.4.11-2.16-desktop #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87) i686 i686 i386 GNU/Linux
Following the instructions on the openFOAM.org for the SuSE RPM Pack Installation (which is for openSUSE 12.1) , I tried to install OpenFOAM 2.1.1.

1. sudo zypper in libqt4 libQtWebKit4. These libraries were already included in the installation.

2. sudo zypper in openmpi. This installs openmpi-1.5.4-4.1.4 which is not liked by openFOAM installation and complains about several libraries missing.

Code:
sudo rpm -i http://www.openfoam.org/download/sus...1.1-1.i586.rpm 

error: Failed dependencies:
       libmpi.so.0 is needed by OpenFOAM-2.1.1-1.i586
       libopen-pal.so.0 is needed by OpenFOAM-2.1.1-1.i586
       libopen-rte.so.0 is needed by OpenFOAM-2.1.1-1.i586
Adding these lines in /usr/lib/mpi/gcc/openmpi/lib did not help.

Code:
      ln -s libmpi.so.1.0.2  libmpi.so.0
      ln -s libopen-pal.so.3.0.0  libopen-pal.so.0
      ln -s libopen-rte.so.3.0.0  libopen-rte.so.0
openSUSE software manager could not un-install openmpi and kept crashing. Eventually, I used: sudo zypper remove openmpi

3. openmpi-1.4.3-18.1.2.i586.rpm was installed.

4. OpenFOAM-2.1.1-1.i586.rpm was installed.

5. cmake was installed.

6. As root, source /opt/OpenFOAM-2.1.1/etc/bashrc works?

7. As user, source /opt/OpenFOAM-2.1.1/etc/bashrc returns;

Code:
bash: /opt/OpenFOAM-2.1.1/etc/bashrc: line 143: syntax error near unexpected token `done'
bash: /opt/OpenFOAM-2.1.1/etc/bashrc: line 143: `    done'
However, if I comment my $PS1 in my ~/.bashrc, and do not source my aliases, then it also works for the user.

8. And finally, Allwmake complains about libOpenFOAM and OpenFOAM does not work. The errors in Allwmake (run several times) are given below;

Code:
grep -i error log.allwmake.txt

collect2: error: ld returned 1 exit status
make: *** [/opt/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libOpenFOAM.so] Error 1
CMake Error: The current CMakeCache.txt directory /opt/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/Make/linuxGccDPOpt/CMakeCache.txt is different than the directory /home/sergio/rpmbuild/BUILD/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/Make/linuxGccDPOpt where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/opt/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/CMakeLists.txt" does not match the source "/home/sergio/rpmbuild/BUILD/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
make[5]: *** [CMakeFiles/PV3blockMeshReader_SM.dir/depend] Error 1
make[4]: *** [CMakeFiles/PV3blockMeshReader_SM.dir/all] Error 2
make[4]: Target `all' not remade because of errors.
make[3]: *** [all] Error 2
make[3]: Target `default_target' not remade because of errors.
CMake Error: The current CMakeCache.txt directory /opt/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt/CMakeCache.txt is different than the directory /home/sergio/rpmbuild/BUILD/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/opt/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/CMakeLists.txt" does not match the source "/home/sergio/rpmbuild/BUILD/OpenFOAM-2.1.1/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
make[5]: *** [CMakeFiles/PV3FoamReader_SM.dir/depend] Error 1
make[4]: *** [CMakeFiles/PV3FoamReader_SM.dir/all] Error 2
make[4]: Target `all' not remade because of errors.
make[3]: *** [all] Error 2
make[3]: Target `default_target' not remade because of errors.
make[2]: *** [PV3Readers] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [graphics] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [postProcessing] Error 2
make: Target `application' not remade because of errors.
I think, I may need to install a lower version of the Gcc, but I am not sure which one to use.

Any suggestions on fixing this problem is greatly appreciated.

Kind regards,

K1.
saturn_53 is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) sfigato OpenFOAM Installation 22 January 31, 2013 10:16
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 07:26.