|
[Sponsors] |
October 22, 2012, 07:21 |
Installation OpenFOAM2.1.1 on Suse12.2
|
#1 |
New Member
JJS
Join Date: Oct 2012
Posts: 4
Rep Power: 14 |
Dear all,
I am trying to compile the OpenFOAM 2.1.1 source on my OpenSuse 12.2 (x86_64) installed system. After I tried compiling OF with the standard settings (failed), I changed the following: __________________________________________________ _______________________ 1) in /opt/OpenFOAM/ThirdParty-2.1.1/etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64 the following libraries are added: LDFLAGS += -L/usr/lib64/mpi/gcc/openmpi/lib64/ -L/usr/lib64 -lz -ldl -lrt -lglib-2.0 -L/usr/lib64 -lQtCore -lpthread 2) In /opt/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc: WM_COMPILER=Gcc47, WM_MPLIB=SYSTEMOPENMPI. 3) In /opt/OpenFOAM/OpenFOAM-2.1.1/etc/config/settings.sh the versions are set according to the system installed version numbers: gcc_version=gcc-4.7.2, gmp_version=gmp-5.0.5, mpfr_version=mpfr-3.1.0, mpc_version=mpc-0.8.2, gmpPACKAGE=gmp-5.0.5 4) In /opt/OpenFOAM/OpenFOAM-2.1.1/wmake/rules/General/general I added library paths for libptscotch and libPstream, without success I think because gcc isn't able to find the libraries. GINC = -I/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc47DPOpt/lib/openmpi-system GINC += -I/opt/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64Gcc47DPOpt/lib/dummy __________________________________________________ _______________________ I have no clue anymore what to do? Can somebody give me suggestions about what to do next? I added the output of the compilation process in a separate file (3 parts). Thanks for your help Jos |
|
October 22, 2012, 10:01 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Jos and welcome to the forum!
That's a lot of modifications... not sure why you needed so many. You can try these instructions instead: http://openfoamwiki.net/index.php/In...#openSUSE_12.2 Additionally, I suggest that you try doing these in your home folder first, to avoid accidentally erasing/modifying your system. Good luck! Bruno
__________________
Last edited by wyldckat; October 22, 2012 at 10:03. Reason: changed last part of the last phrase to make more sense... |
|
October 22, 2012, 10:46 |
|
#3 |
New Member
JJS
Join Date: Oct 2012
Posts: 4
Rep Power: 14 |
Thanks Bruno for your quick reply and for welcoming me at the forum!
Before doing any of the modifications, I already followed the instructions you mentioned without any success. So all necessary packages are installed and the environmental variables (via bashrc) are loaded. The first error I ran into I solved by making the first adjustment in the scotch settings file. Because there were more errors popping up (actually the ones that are still in the current make.log files) I made the other changes. So, those changes are maybe not necessary! I also tried to compile a version in the home directory, but since I got the same problems as in /opt/.... I decided to continue in the latter one that has my preference. Apparently on my system for one reason a standard compilation doesn't work. Also the various posts I found on the internet didn't help me out! Can you please have a look at the output and see if you have any guess about what can be wrong? Thanks, Jos |
|
October 22, 2012, 11:03 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
From what I can see, "libz.so" is missing. It should have been installed with the "devel_C_C++" pattern...
__________________
|
|
October 22, 2012, 16:50 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Jos,
I took a look at this just now and found out what the names for the zlib packages are. So could you try the following commands: Code:
su - zypper install zlib zlib-devel exit If after this it still has problems, then it might be due to at least either one of the following:
Good luck! Best regards, Bruno
__________________
|
|
October 23, 2012, 06:46 |
|
#6 |
New Member
JJS
Join Date: Oct 2012
Posts: 4
Rep Power: 14 |
Dear Bruno,
I appreciate your help, even in the evening hours Zlib an Zlid-devel are installed so that can't be the problem. Also the system is just reinstalled and no other OpenFOAM versions are installed. Your other remarks "forced" me to try a fresh installation because: 1) the home drive is now also being formatted as well. This was not done the previous time and you never know what traces (initially somebody else used this system) are left that might mess up the compilation. 2) last time I installed the complete development RPM group. This led to some problems and in the end it might indeed pose a problem. This time I will only install the missing and required packages and not all. I am now busy with reinstalling the system. I will let you know whether it helped or not! Regards, Jos |
|
October 24, 2012, 04:44 |
|
#7 |
New Member
JJS
Join Date: Oct 2012
Posts: 4
Rep Power: 14 |
Dear Bruno,
The problem is solved! As mentioned in the previous post, I started with a clean installation of Suse12.2. Only things I changed since the previous installation is: 1) formatting /home (ext4 instead of ext3) 2) installation of only the necessary packages/libraries and not the complete development group. So I guess, like you mentioned, some packages conflicted each other in some way or the other. The reason for me to download the whole development group was that at first I wanted to install the suse RMP pack installation of OpenFOAM. And for this, on the openfoam website it is mentioned that the development pack must be installed. Although I don't really understand what the exact cause was, I am glad it is working now! Thanks for your support. Jos |
|
Tags |
openfoam 2.1.x, opensuse 12.2 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam 2.0.0 installation | Jan_Peters | OpenFOAM Installation | 86 | April 27, 2012 06:32 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
Installation problems | indy | OpenFOAM Installation | 7 | April 3, 2009 10:40 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Installation problems | shellbell1999 | OpenFOAM Installation | 9 | April 6, 2006 14:29 |