Error compiling OpenFOAM 1.7.x
hi everybody
I followed the instructions on http://albertopassalacqua.com/?p=920 but compiling finally gives me Code:
/home/uli/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libscotch.so: undefined reference to `pthread_create' One point in the installation recipe says "Download both the OpenFOAM and ThirdParty packages from here and save them in your ~/OpenFOAM directory" but I only found the file "ThirdParty-1.7.1.gtgz" (no OpenFOAM?) under that link - maybe the reason for my problem? I use opensuse 12.1 any support is appreciated thanks in advance Uli |
And why do you want to use the ancient 1.7.x? There are binary packages of the current 2.1.1 version available for OpenSUSE 12.1: http://openfoam.org/download/suse.php
|
Thanks for your reply.
I need to use OF 1.7.x because thats the version used at my university. |
Greetings to all!
@uli: OK, there's a big problem here: OpenFOAM 1.7.x isn't 100% compatible with Gcc 4.6.2 that openSUSE 12.1 has by default. Or at least, AFAIK it wasn't very well tested with the Gcc 4.6 series, so results may be very suspicious. Side note: http://openfoamwiki.net/index.php/In...ibility_Matrix for more info on relations between versions of OpenFOAM and Gcc. The latest known compatible series is Gcc 4.5, which isn't very easy to properly get on openSUSE 12.1, unless you get the quick unstable 1-click install for 12.1 from here: http://software.opensuse.org/package/gcc45 - Otherwise, you'll have to build it yourself... which instructions you might find on my signature link. What would save you a lot of trouble would be to go back to openSUSE 11.4, but I'm assuming that it's not an option. Therefore, here are the steps I've taken to get things built with openSUSE 12.1 Gcc 4.6.2, although I haven't checked for mathematical cohesion:
Code:
tar -czf make.log.tar.gz make.log Best regards, Bruno |
thanks a lot wyldckat!
openSUSE 11.4 is quite an option for me and maybe I will install it, but since I'm almost new to Linux I have some more questions first if you don't mind.
best Uli |
Hi Uli,
Quote:
Weeks after OpenFOAM 1.7.0 was released, people started building it with Gcc 4.5.0... and the problem was that it did build with 4.5.0, but then things sometimes didn't work as expected. I vaguely remember about problems when meshing and one solver had problems. You can check the history by reading the following thread: http://www.cfd-online.com/Forums/ope...gcc-4-5-x.html Therefore, since there is no specific report about OpenFOAM 1.7.x working properly with Gcc 4.6.y, such a study should first be done just to confirm this. I vaguely remember that in OpenFOAM 2.0.x there are a few references to the changes necessary for proper operations with Gcc 4.6.y, but I haven't kept track of them. Quote:
Quote:
So it all sums up to this: if you are using your personal installation of OpenFOAM 1.7.x just for preparing cases, and then run the cases in the school's computers with verified OpenFOAM installations, then I guess it's OK... Otherwise, you're risking it a bit, since there is a possibility that you might get results with a particular solver that has issues with Gcc 4.6.y... Best regards, Bruno |
hi wyldckat and all!
I now decided to install suse 11.4. which the OF installation worked out with. Till now I only faced a graphics problem with Paraview that I solved by installing another driver for my nvidia graphics chip. I think although it took me some time this is the best solution to avoid problems due to different versions. Thanks a lot for your effort! best uli |
All times are GMT -4. The time now is 02:57. |