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

Compilation whith a debian

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 3, 2008, 08:24
Default Hello, I'am trying to inst
  #1
New Member
 
Peter
Join Date: Mar 2009
Posts: 15
Rep Power: 9
pifou74 is on a distinguished road
Hello,

I'am trying to install Openfoam 1.4.1 since one week on a debian without success. I have used the procedure installation described in the OpenFOAM wiki
I have installed the sources in ~/OpenFOAM, I have compiled gcc 4.2.3, binutils-2.18 and I have systematicaly an error concerning crt1.o...


Is there somebody which has any experience about this problem and about installation under a debian distribution

thanks for the answers
pifou74 is offline   Reply With Quote

Old   April 3, 2008, 09:43
Default I understand that Debian, like
  #2
Member
 
Graeme Cottrell
Join Date: Mar 2009
Posts: 30
Rep Power: 9
platopus is on a distinguished road
I understand that Debian, like the Ubuntu variants, uses dash instead of bash as the default shell. Some of the OpenFOAM scripts appear to have bashisms in them that prevent them working correctly under dash. This _might_ be the source of your problem.

So far I've only checked the scripts in the tutorials directory and there's a thread in the Bugs section that describes my experiences:

http://www.cfd-online.com/cgi-bin/Op...cus/discus.cgi

Note that you don't really have to recompile OpenFOAM to use it. You could just use the stuff in the double precision archive and get started.

See the link above, however, for a script that modifies the scripts in the tutorials so that they run properly (for me, at least).

If you do still want to recompile it, you might try changing the symlink /bin/sh to point to bash, deleting and reinstalling the sources and starting the compilation again.

Note that at this time I have no hard evidence that bashisms are really causing your problem and I can't test it properly since I'm running Kubuntu.


Regards, Graeme.
platopus is offline   Reply With Quote

Old   April 3, 2008, 13:42
Default Thank You Graeme for your hel
  #3
New Member
 
Peter
Join Date: Mar 2009
Posts: 15
Rep Power: 9
pifou74 is on a distinguished road
Thank You Graeme for your help, but I have already change my sh in oder to use bashrc one.

I know that it is not necessary to compile Openfoam from the sources but I would like to do it and to understand how to do it hard Task)....

I'm am trying since one week and i have to say that it is really difficult... Nevertheless I hope that I will succeed with the help of this forum...

Regards, Pierre
pifou74 is offline   Reply With Quote

Old   April 10, 2008, 08:31
Default All I can suggest is to look a
  #4
Member
 
Graeme Cottrell
Join Date: Mar 2009
Posts: 30
Rep Power: 9
platopus is on a distinguished road
All I can suggest is to look at the wiki page on compiling OpenFOAM and try it.

You've probably already found the page I'm referring to

http://openfoamwiki.net/index.php/Ho...mpile_OpenFOAM

If and when it fails, post a message containing the steps you followed and the exact error messages you receive. Maybe someone can help.


Regards, Graeme.
platopus is offline   Reply With Quote

Reply

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
problem whith udf Thiago Castro FLUENT 1 February 7, 2008 04:31
need help whith hooking UDF and DEFINE_INIT macro cax FLUENT 3 June 6, 2006 12:35
Compilation on Debian testing readSTLASCIIC error in lexyycc jkr OpenFOAM Installation 0 September 28, 2005 08:52
Heat sink whith only natural convection Novello FLUENT 4 November 17, 2003 07:59
Grid changes whith time variation H.P.LIU Phoenics 3 September 1, 2001 07:53


All times are GMT -4. The time now is 07:18.