CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Installation

OpenFOAM 2.2.0 and 2.1.0 side by side errors

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 10, 2013, 03:02
Default OpenFOAM 2.2.0 and 2.1.0 side by side errors
New Member
Join Date: Feb 2012
Posts: 9
Rep Power: 5
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:

error: Failed dependencies: is needed by OpenFOAM-2.1.0-1.i586 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:
/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).

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, 07:46
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: - 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,
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   June 12, 2013, 04:55
New Member
Join Date: Feb 2012
Posts: 9
Rep Power: 5
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


installation, openfoam

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing OpenFOAM 2.1.0 on ROCKS cluster aerospain OpenFOAM Installation 6 December 15, 2014 04:35
AMI speed performance danny123 OpenFOAM 19 October 24, 2012 07:44
reactingFoam tutorial for OpenFOAM 2.1.0 ToTh OpenFOAM Running, Solving & CFD 1 September 3, 2012 04:43
Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux Indrajit OpenFOAM Installation 1 April 1, 2012 04: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:34.