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

OpenFOAM 2.2.0 and 2.1.0 side by side errors

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2013, 04:02
Default OpenFOAM 2.2.0 and 2.1.0 side by side errors
  #1
New Member
 
N7student
Join Date: Feb 2012
Posts: 9
Rep Power: 14
Neraste is on a distinguished road
Hello all OpenFOAM community users !

I am running an x86 version of openSuSE 12.3 and I am experiencing problems to get OpenFOAM 2.2.0 and 2.1.0 co-existing.

I have installed OF 2.2.0 directly through RPM packages, and all the dependencies for this version have been installed. OF 2.2.0 works well on my system.

Then, for some reasons, I have had to install OF 2.1.0 and keep OF 2.2.0. I have tried to install it through RPM packages too (option --force). I have installed Scotch and Paraview successfully, but when it came to OpenFOAM, I get the following error:

Code:
Retrieving http://www.openfoam.org/download/suse/11.4/i586/OpenFOAM-2.1.0-1.i586.rpm
error: Failed dependencies:
    libopen-pal.so.0 is needed by OpenFOAM-2.1.0-1.i586
    libopen-rte.so.0 is needed by OpenFOAM-2.1.0-1.i586
I Well, then, I decided to remove 2.1.0 RPMs and to compile OF from sources. But I get many errors at compilation such as:
Code:
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lengine
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lcompressibleTurbulenceModel
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lcompressibleRASModels
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lbasicThermophysicalModels
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lreactionThermophysicalModels
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -llaminarFlameSpeedModels
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lfiniteVolume
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -ldynamicFvMesh
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: cannot find -lOpenFOAM
collect2: error: ld returned 1 exit status
make[2]: *** [/opt/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/bin/PDRFoam] Error 1
make[1]: *** [PDRFoam] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [combustion] Error 2
If you want, you can find the logfile of compilation (I have aborted the process).
make.log.gz

Hardly no binaries are compilated on bin dir, like virtually no libraries are compilated on platforms/linuxGccDPOpt/lib dir...

So I do not know how to have a working version of OF 2.1.0...
Neraste is offline   Reply With Quote

Old   June 10, 2013, 08:46
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Neraste,

This is indeed a strange error... I can only guess that the problem is due to an incorrect configuration on how to use Gcc 4.7.

OK, let's go by steps:
  1. How are you keeping the two versions apart from each other? ... from the point of view of the shell environment. If you don't understand what I mean, please read this: Advanced tips for working with the OpenFOAM shell environment
  2. For installing OpenFOAM 2.1.0, I suggest that you choose 2.1.1 instead and try following these instructions: http://openfoamwiki.net/index.php/In...#openSUSE_12.2 - I have not tested them in 12.3, but I think they should work well.
    Note: these instructions do not take into account the first step on this current list.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 12, 2013, 05:55
Default
  #3
New Member
 
N7student
Join Date: Feb 2012
Posts: 9
Rep Power: 14
Neraste is on a distinguished road
Hello wyldckat

Thank you for your answer!

About the way I make each version living side by side, both versions are installed on separate folders in /opt, with their own dependencies (differently organized between 2.2.0 and 2.1.0, by the way):
  • /opt/OpenFOAM-2.1.0
  • /opt/OpenFOAM-2.2.0
  • /opt/OpenFOAM-ParaView-3.12.0 (for 2.2.0)
  • /opt/OpenFOAM-scotch-6.0.0 (for 2.2.0)
  • /opt/ThirdParty-2.1.0 (for 2.1.0, containing Paraview and Scotch)
To set up the environment for each version, I have aliases to source the right bashrc file:
  • alias startFOAM210="source /opt/OpenFOAM-2.1.0/etc/bashrc"
  • alias startFOAM220="source /opt/OpenFOAM-2.2.0/etc/bashrc"
So, I have prevented the case of messing environments up. And each bashrc have the right installation folder indication...

Well, then, what I did is to compile version 2.1.1 instead. I already knew the installation guidelines wiki. Everything has worked as expected and just works...

So, since it works, I kinda have no problem, but I am still puzzled by the 2.1.0 compilation errors...
Neraste is offline   Reply With Quote

Reply

Tags
installation, openfoam


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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
[OpenFOAM.org] Installing OpenFOAM 2.1.0 on ROCKS cluster aerospain OpenFOAM Installation 6 December 15, 2014 04:35
reactingFoam tutorial for OpenFOAM 2.1.0 ToTh OpenFOAM Running, Solving & CFD 1 September 3, 2012 05:43
Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux Indrajit OpenFOAM Installation 1 April 1, 2012 05:39
.deb installation of OpenFOAM 2.1.0 on Ubuntu 11.10 (Oneiric Ocelot). kxk7607 OpenFOAM Installation 7 January 21, 2012 12:57


All times are GMT -4. The time now is 11:54.