CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   HELPInstallation on RedHat90 (https://www.cfd-online.com/Forums/openfoam-installation/57520-helpinstallation-redhat90.html)

booosix September 4, 2005 10:45

Hi everyone: I install Ope
 
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 ?

henry September 4, 2005 11:03

As far as possible we try to e
 
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.

booosix September 5, 2005 11:27

Hi Henry: Thank you for yo
 
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

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

henry September 5, 2005 12:04

You are missing system headers
 
You are missing system headers and this has already been discussed on the forum.

jens_klostermann March 23, 2006 04:57

I try to compile OpenFOAM1.2 o
 
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?

hjasak March 23, 2006 07:45

Hmm. For the moment you can s
 
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

nabildjef June 27, 2007 06:07

I have install OpenFOAM1.4 on
 
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

lakeat June 27, 2007 20:25

Hi, Nabil, I think it's not h
 
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 onhttp://www.cfd-online.com/OpenFOAM_D...part/happy.gif

nabildjef July 17, 2007 06:40

forgiveness; At the court of t
 
forgiveness; At the court of the installation, for the third and fourth instruction he writes to me: has derectory and permission non agreement


All times are GMT -4. The time now is 10:56.