CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [pythonFlu] Problem installing pythonFlu (https://www.cfd-online.com/Forums/openfoam-community-contributions/123698-problem-installing-pythonflu.html)

PonchO September 19, 2013 03:17

Problem installing pythonFlu
 
Hi Foamers!


First, thank you for developing a tool that merges Python and OpenFOAM.

So now i want to use pythonFlu with OpenFoam-2.1.x. So i have downloaded all the sources and startet installing them as described here. The problem is mainly, that when i try to run the configure-script of managedFlu there is an error regarding C++ compiler. It states as follows:


Quote:

...
checking for g++... g++
checking whether the C++ compiler works... no.
configure: error: in `/home/myName/OpenFOAM/pythonFlu/managedFlu':
configure: error: C++ compiler cannot create executables
I've looked inside the configure-script, but i'm not very familiar with shell-skripting.
So i don't figure it out how the skript tests, if the compiler works. Can i test it manually otherwise?
My modified env.sh just make a path to some local directory for confFlu, where it is installed. My OpenFoam-2.1.x-bashrc should also work.

Can someone help me with that? I am using a Debian Wheezy system (hopefully i'll need just some extra packages ;-) )

Best regards,

Christoph

jherb September 19, 2013 04:51

Can you compile OpenFOAM itself (or your own solvers/tools)? Do have different compilers installed?

I tried to compile pythonFlu for OpenFOAM 2.2.1 and this didn't work very well (I had to exclude a lot of files). Probably the latest supported version 2.0.x.

PonchO September 19, 2013 05:17

Quote:

Originally Posted by jherb (Post 452500)
Can you compile OpenFOAM itself (or your own solvers/tools)? Do have different compilers installed?

I tried to compile pythonFlu for OpenFOAM 2.2.1 and this didn't work very well (I had to exclude a lot of files). Probably the latest supported version 2.0.x.

Thanks for your reply jherb. Yes, i can compile my own solvers and tools with wmake. That works fine.

Because i'm not familiar with pure C++-Programming i hope the follwing outputs answers your question:

Code:

g++ --version
Quote:

g++ (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code:

ls -l gcc*
Quote:

gcc -> /usr/bin/gcc-4.6
I don't know the difference between gcc and g++, but i think g++ works in version 4.7 whereas gcc is linked to a gcc version 4.6.

Is this some useful information :)?

I think the latest supported OpenFOAM-version is 2.1.x as stated here.

Best regards

jherb September 19, 2013 06:25

I think these posts might help with the selection of gcc versions in Debian:
http://lektiondestages.blogspot.de/2...-versions.html
http://lukas.ahrenberg.se/archives/154


All times are GMT -4. The time now is 22:58.