CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM 2.1.1 installation on openSUSE 12.2 32 bit (https://www.cfd-online.com/Forums/openfoam-installation/112385-openfoam-2-1-1-installation-opensuse-12-2-32-bit.html)

saturn_53 January 27, 2013 19:59

OpenFOAM 2.1.1 installation on openSUSE 12.2 32 bit
 
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.

wyldckat January 28, 2013 05:46

Greetings saturn_53 and welcome to the forum!

You better uninstall the RPM package and install from source: http://openfoamwiki.net/index.php/In...#openSUSE_12.2

Best regards,
Bruno

saturn_53 January 29, 2013 00:46

OpenFOAM 2.1.1 installation on openSUSE 12.2 32 bit
 
Hi Bruno:

Thank you very much for the information.

Kind regards,

K1.

Daniel73 February 12, 2014 20:43

Hi Guys,

I get many errors(target application' not remade...) when running ./Allwmake , and i cannot install the dependent packages(suggested in the install instructions) because im installing OpenFOAM on a computer at university and i cannot use 'sudo'.
Do you know how i can do that?
Thanks in advance

wyldckat February 13, 2014 17:14

Greetings Daniel73,

Please follow the steps #8 and #9... more specifically, run:
Code:

./Allwmake > make.log 2>&1

tar -czf make.log.tar.gz make.log

Then attach the file "make.log.tar.gz" to your next post.

Best regards,
Bruno

Daniel73 February 13, 2014 18:01

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 474854)
Greetings Daniel73,

Please follow the steps #8 and #9... more specifically, run:
Code:

./Allwmake > make.log 2>&1

tar -czf make.log.tar.gz make.log

Then attach the file "make.log.tar.gz" to your next post.

Best regards,
Bruno

Thank you.
Please find it in the attachment.
(Sorry i don't know #8 an #9 of what? this link? : http://www.openfoam.org/download/source.php)

wyldckat February 13, 2014 18:10

Ooops, sorry, I had assumed you had already had a look into what I had written in post #2:
Quote:

Originally Posted by wyldckat (Post 404462)
You better uninstall the RPM package and install from source: http://openfoamwiki.net/index.php/In...#openSUSE_12.2

Steps #8 and #9 are from the page in the quote.


I had a look into the "make.log" file and it's far too incomplete. Please run again the commands from my previous post, but run them inside the main "OpenFOAM-2.2.2" folder.

Daniel73 February 14, 2014 06:58

Quote:

Originally Posted by wyldckat (Post 474860)
Ooops, sorry, I had assumed you had already had a look into what I had written in post #2:

Steps #8 and #9 are from the page in the quote.


I had a look into the "make.log" file and it's far too incomplete. Please run again the commands from my previous post, but run them inside the main "OpenFOAM-2.2.2" folder.

Thank you very much.
By implementing the ./Allwmake in the OpenFOAM-2.2.2 again i got some compilation errors, but after following #6 (which was not in the official website) , the problem was solved and now everything works fine.
Thanks.

linch January 29, 2015 10:46

Hi all, hi Bruno,

trying to compile the OF 2.1.x on openSUSE 13.2 (Harlequin) (x86_64) I also get the PV3blockMeshReader_SM errors:
Code:

[ 94%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/PV3blockMeshReader_SM_Plugin.cxx.o
SOURCE=dsmcInitialise.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/dsmc/lnInclude -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/dsmcInitialise.o
make[5]: *** No rule to make target '/usr/lib/libGLU.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libGL.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libSM.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libICE.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libX11.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libz.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libQtUiTools.a', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libQtHelp.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libQtXml.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libQtWebKit.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libQtGui.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libQtSql.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libQtXmlPatterns.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libQtCore.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
make[5]: *** No rule to make target '/usr/lib/libQtNetwork.so', needed by '/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so'.
[100%] Building CXX object CMakeFiles/PV3blockMeshReader_SM.dir/moc_PV3blockMeshReader_SM_Plugin.cxx.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/dynamicMesh/lnInclude -IlnInclude -I. -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/refineWallLayer.o -L/home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib \
    -ldynamicMesh -lmeshTools -lOpenFOAM -ldl  -lm -o /home/shevchuk/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/refineWallLayer
make[5]: Target 'CMakeFiles/PV3blockMeshReader_SM.dir/build' not remade because of errors.
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/PV3blockMeshReader_SM.dir/all' failed
make[4]: *** [CMakeFiles/PV3blockMeshReader_SM.dir/all] Error 2
make[4]: Target 'all' not remade because of errors.
Makefile:72: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Target 'default_target' not remade because of errors.

The packages
Quote:

zypper install -t pattern devel_C_C++
zypper install cmake libqt4-devel qt4-x11-tools qt4-assistant-adp-devel gnuplot openmpi-devel
are installed. Libraries libGLU libX11 libQtHelp etc. are not in the /usr/lib/ , but but in /usr/lib64/. However, the OF tries to find the in the /usr/lib

Any idea, what could be the reason?
Linux-version:
Quote:

Linux 3.16.7-7-desktop #1 SMP PREEMPT Wed Dec 17 18:00:44 UTC 2014 (762f27a) x86_64 x86_64 x86_64 GNU/Linux
gcc-version:
Quote:

gcc (SUSE Linux) 4.8.3 20140627 [gcc-4_8-branch revision 212064]

wyldckat January 29, 2015 16:36

Greetings Illya,

That's a very strange error to be happening so late in the build... a few questions:
  1. Are you using the latest OpenFOAM 2.1.x? If not, at which commit is your git checkout?
  2. Did you also build ParaView 3.12.0 from source code in that very same machine with openSUSE 13.2? Or did you get it from some other installation?
Best regards,
Bruno

linch January 30, 2015 05:36

Quote:

Originally Posted by wyldckat (Post 529569)
Greetings Illya,

Hi Bruno,


Quote:

Are you using the latest OpenFOAM 2.1.x? If not, at which commit is your git checkout?
Yes, the latest one. I did
Code:

wclean all
git clean -dfx
git pull

before compiling the OF.
Quote:

Did you also build ParaView 3.12.0 from source code in that very same machine with openSUSE 13.2? Or did you get it from some other installation?Best regards,
Bruno
Well, that's indeed a good question. I copied the ThirdParty dir from my previous Debian installation (same machine, different OS). Of course, I recompiled it by
Code:

./Allclean
./Allwmake

, and there were no errors. But it could be possible, that something left over. I'll try it once again with a complete new & clean ThridParty dir.

Best regards,
Ilya

linch January 30, 2015 10:55

1 Attachment(s)
Hi Bruno,

indeed, the reason was the paraview. Deleting ThirdParties and downloading them over new helped to compile the OF without problems.

But there still some issues I don't really understand.

There is also another version of paraview (version 4.2.0) already installed with the system
1) While compiling the ThirdParties using Allwmake, OF-paraview is not being compiled. Is it because of the system-paraview?

2) Trying to compile the OF-paraview manually by ./makeParaView causes errors (attachment)

3) paraFoam script doesn't work:
Quote:

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake
So my questions are:
a) Are there any disadvantages when using the system-paraview instead of the OF-paraview? As far as I could observe, paraview can handle OF cases on it's own, reconstructed as well as decomposed
b) can both the system and the OF paraview coexist, without conflicts?

Best regards,
Ilya

wyldckat January 31, 2015 06:02

Hi Ilya,

The system ParaView can coexist with the custom one, although in some situations there were some issues, because one version was trying to use the libraries from the other one. But since it's 3.12.0 versus 4.2.0, there shouldn't be such a collision.

Some of the problems you're seeing in building ParaView 3.12.0 also occur when building ParaView 4.1.0 from source code, as indicated in these instructions: http://openfoamwiki.net/index.php/In...#openSUSE_13.2 - as you can see in step #13. The detail is that the necessary patches will have to be slightly different for ParaView 3.12.0.

If you already have ParaView 4.2.0 in your system, then you can stop investing time in compiling the much older ParaView 3.12.0. You can simply follow the instructions on this FAQ: http://openfoamwiki.net/index.php/FA...er_in_ParaView

Nonetheless, there will be some issues with some of the more recent boundary conditions that are present in OpenFOAM 2.*. For example: http://www.cfd-online.com/Forums/ope...how-field.html - if you reaaaaaaaaaaally need to post-process such cases, I can try and find some time next weekend to build OpenFOAM 2.1.1 and ParaView 3.12.0 on openSUSE 13.2 and then write the respective instructions on the wiki.

Best regards,
Bruno

linch February 1, 2015 05:17

Hi Bruno,
Quote:

Originally Posted by wyldckat (Post 529787)
Nonetheless, there will be some issues with some of the more recent boundary conditions that are present in OpenFOAM 2.*. For example: http://www.cfd-online.com/Forums/ope...how-field.html - if you reaaaaaaaaaaally need to post-process such cases, I can try and find some time next weekend to build OpenFOAM 2.1.1 and ParaView 3.12.0 on openSUSE 13.2 and then write the respective instructions on the wiki.

I think, I cal good live with the paraview 4.2.0, so you don't have to put high effort in because of me. And if I'll have any problems at some time, I'll come back here again.

Thank you very much! Best regards,
Ilya


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