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

HELPInstallation on RedHat90

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2005, 10:45
Default Hi everyone: I install Ope
  #1
New Member
 
booosix
Join Date: Mar 2009
Posts: 2
Rep Power: 0
booosix is on a distinguished road
Hi everyone:
I install OpenFOAM on RedHat9.0 with gcc3.2.2,
but failed finally with a lot of ERRORS.
I compile FOAM on FedoraCore3 with gcc3.4.2 then, it seems the errors decreased.
I am wondering that openFOAM must be compiled
only by gcc3.4.X ?
booosix is offline   Reply With Quote

Old   September 4, 2005, 11:03
Default As far as possible we try to e
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
As far as possible we try to ensure OpenFOAM conforms to the C++ standard and update the code for each release of gcc because the newer releases have better standard compliance. gcc-3.2.2 is now too old to compile OpenFOAM but I think gcc-3.3.? still will although I STRONGLY recommend you use either gcc-3.4.3 or gcc-4.0.1 (only for OpenFOAM-1.2) which are superior.
henry is offline   Reply With Quote

Old   September 5, 2005, 11:27
Default Hi Henry: Thank you for yo
  #3
New Member
 
booosix
Join Date: Mar 2009
Posts: 2
Rep Power: 0
booosix is on a distinguished road
Hi Henry:
Thank you for your reply. I use gcc4.0, some problems still exsit, the abridged informations
are listed bellow, please have a look,^_^:

[booosix@RH90 OpenFOAM]$ cd OpenFOAM-1.2
[booosix@RH90 OpenFOAM-1.2]$ ls
Allwmake bin doc ReleaseNotes-1.2 tutorials
applications COPYING README src wmake
[booosix@RH90 OpenFOAM-1.2]$ which gcc
~/OpenFOAM/linux/gcc-4.0.1/bin/gcc
[booosix@RH90 OpenFOAM-1.2]$ ./Allwmake
Making dependency list for source file adler32.c
...........
...........
gmake: *** No rule to make target `distclean'. Stop.
configure: error: Cannot continue
configure: error: *** Cannot find working tm.h.
configure: error: Cannot continue
configure: error: cannot continue
configure: error: cannot continue
configure: error: *** Cannot find working libgm.
configure: error: *** Cannot find working libvapi.
........................
........................

checking for extra include and lib directories...
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking for POSIXized ISC... no
checking OS Type... unix
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking for ar... ar rc
checking for ranlib... ranlib
checking whether make sets ${MAKE}... yes
checking for tclsh... /usr/bin/tclsh
checking for javac... /u2/booosix/OpenFOAM/linux/j2sdk1.4.2_05/bin/javac
checking for JDK 1.1... yes
checking for JavaCUP... no
checking for open in -lm... yes
checking for open in -lnsl... no
checking for X... disabled
checking for open in -lsocket... no
checking for open in -lbsd... yes
checking for open in -lelf... yes
checking for open in -ldl... yes


........................


Making dependency list for source file Gstream/lineStyle.C
Making dependency list for source file Gstream/Gstream.C
Making dependency list for source file Xstream/Xstream.C
Making dependency list for source file GLstream/XGLwindow.C
Making dependency list for source file GLstream/GLstream.C
Making dependency list for source file PSstream/PSstream.C
Making dependency list for source file shapes2D/shape2D.C
Making dependency list for source file shapes2D/line2D.C
Making dependency list for source file shapes2D/string2D.C
Making dependency list for source file shapes2D/rectangle2D.C
Making dependency list for source file shapes2D/polygon2D.C
Making dependency list for source file shapes2D/arrow2D.C
Making dependency list for source file shapes2D/structuredScalars2D.C
Making dependency list for source file shapes2D/structuredVectors2D.C
Xstream/Xstream.C: In member function 'void Foam::Xstream::openSesame(const Foam::colour&, const Foam::colour&)':
Xstream/Xstream.C:48: warning: use of old-style cast
Xstream/Xstream.C:51: warning: use of old-style cast
Xstream/Xstream.C:52: warning: use of old-style cast
Xstream/Xstream.C:68: warning: use of old-style cast
Xstream/Xstream.C:68: warning: use of old-style cast
Xstream/Xstream.C: In member function 'virtual void Foam::Xstream::setLineStyle(const Foam::lineStyle&)':
Xstream/Xstream.C:390: warning: use of old-style cast
Xstream/Xstream.C:420: warning: use of old-style cast
GLstream/XGLwindow.C: In function 'GLenum Foam::XGLopenWindow(Display**, char*, int, int, int, int)':
GLstream/XGLwindow.C:429: warning: use of old-style cast
GLstream/XGLwindow.C:430: warning: use of old-style cast
Making dependency list for source file fbsdmalloc.c
could not open file libc_private.h for source file fbsdmalloc.c
could not open file spinlock.h for source file fbsdmalloc.c
Makefile:23: MakeVars: No such file or directory
gmake: *** No rule to make target `MakeVars'. Stop.
configure: warning: you have not installed JDK 1.1 and JavaCUP. java parts disabled.
Makefile:23: MakeVars: No such file or directory
gmake: *** No rule to make target `MakeVars'. Stop.
Makefile:23: MakeVars: No such file or directory
gmake: *** No rule to make target `MakeVars'. Stop.
Makefile:23: MakeVars: No such file or directory
gmake: *** No rule to make target `MakeVars'. Stop.
Making dependency list for source file libfoamUtil.C
+ cd basic
+ ./Allwmake
+ wmake laplacianFoam
Making dependency list for source file laplacianFoam.C

..........................
booosix is offline   Reply With Quote

Old   September 5, 2005, 12:04
Default You are missing system headers
  #4
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
You are missing system headers and this has already been discussed on the forum.
henry is offline   Reply With Quote

Old   March 23, 2006, 04:57
Default I try to compile OpenFOAM1.2 o
  #5
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17
jens_klostermann is on a distinguished road
I try to compile OpenFOAM1.2 on Altix (IA64) with RedHat 9.3 an IntelCompiler 9.0.

So far everything runs fine, but the following error ocurred:
could not open file libc_private.h for source file fbsdmalloc.c
could not open file spinlock.h for source file fbsdmalloc.c

Has anybody an idea if I need these files since it seems to be for FreeBSD but I have RedHat linux.

If I need them where can I find them?
jens_klostermann is offline   Reply With Quote

Old   March 23, 2006, 07:45
Default Hmm. For the moment you can s
  #6
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Hmm. For the moment you can simply skip that file, I think only simpleFoam is using it and ti does not have to (optimized malloc helps with memory use). There must be a way of getting this to compile because you're just missing some headers but I haven't got any good ideas without trying it out myself...

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   June 27, 2007, 06:07
Default I have install OpenFOAM1.4 on
  #7
New Member
 
benyahia nabil
Join Date: Mar 2009
Location: Cheraga, Alger, ALGERIA
Posts: 4
Rep Power: 17
nabildjef is on a distinguished road
I have install OpenFOAM1.4 on redhat9.0, with gcc4.1.2, but has the end of installation and after the check of the installation it gives me error message. If there is somebody who already has install OpenFOAM of help me to have solution. Thank you
nabildjef is offline   Reply With Quote

Old   June 27, 2007, 20:25
Default Hi, Nabil, I think it's not h
  #8
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Hi, Nabil,
I think it's not hard to do that, but you'd better post the error messages so that we will know what's going on
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   July 17, 2007, 06:40
Default forgiveness; At the court of t
  #9
New Member
 
benyahia nabil
Join Date: Mar 2009
Location: Cheraga, Alger, ALGERIA
Posts: 4
Rep Power: 17
nabildjef is on a distinguished road
forgiveness; At the court of the installation, for the third and fourth instruction he writes to me: has derectory and permission non agreement
nabildjef is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 14:16.