CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Install development version on Ubuntu (http://www.cfd-online.com/Forums/openfoam-installation/57456-install-development-version-ubuntu.html)

hsieh December 23, 2007 18:33

Hi, I just downloaded Hrv's
 
Hi,

I just downloaded Hrv's 1.4.1-dev version and all the support files. Based on the installation instructions, I am suppose to use gmake. But, when I typed gmake, I got "command not found". It looks like gmake is basically make on FreeBSD.

Has anyone tried to install the developement version on either Ubuntu or SuSE? Can I install the development just like the standard version using wmake? Do I need all the utility packages (gdb, cmake)?

Thanks!

Peiying

dmoroian December 24, 2007 04:14

Hi Peiying, gmake I think is
 
Hi Peiying,
gmake I think is the gnu version of make, and on many systems is just a symbolik link to make.
You don't need gdb as long as you don't do debugging. But you need cmake if you are going to compile paraview.

Dragos

hsieh December 24, 2007 12:36

Thanks Dragos! Now, I am ha
 
Thanks Dragos!

Now, I am having trouble with gcc.

I downloaded gcc-4.2.2.tgz from powerlab. I got the following errors during configure. I am using OpenSUSE 10.3 64 bit (which has gcc-4.2.1 installed). Any suggestion will be highly appreciated.

Peiying
-----------------------
OpenFOAM/linuxSrc> mkdir gcc-4.2.2-obj
OpenFOAM/linuxSrc> cd gcc-4.2.2-obj
linuxSrc/gcc-4.2.2-obj> ../gcc-4.2.2/configure --prefix=/usr/tmp/gcc-4.2.2 --exec-prefix=/usr/tmp/gcc-4.2.2 --enable-languages=c,c++ --enable-shared
creating cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc -m32 -m32) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
linuxSrc/gcc-4.2.2-obj>

hsieh December 25, 2007 22:12

Hi, Can someone tell me whi
 
Hi,

Can someone tell me which OS is the installation instructions of the development based on?

I am not able to find gcc-4.2.2 for either SuSE or Ubuntu. When I tried to install the OF-1.4.1 development version on SuSE 10.3 64 bit OS, I got some errors (used linux64/gcc-4.2.1 and bash).

Thanks a lot!

peiying

dmoroian December 26, 2007 03:18

linuxSrc/gcc-4.2.2-obj> ../gcc
 
linuxSrc/gcc-4.2.2-obj> ../gcc-4.2.2/configure --prefix=/usr/tmp/gcc-4.2.2 --exec-prefix=/usr/tmp/gcc-4.2.2 --enable-languages=c,c++ --enable-shared
...
configure: error: installation or configuration problem: C compiler cannot create executables.
You are specifying a path where most likely you don't have access as regular user. Try instead of /usr/tmp/gcc-4.2.2 something else, like /tmp/gcc-4.2.2.

Dragos

hsieh December 26, 2007 12:54

Dear Dragos: Thanks a lot f
 
Dear Dragos:

Thanks a lot for the pointer. Your were correct! Now, I am able to compile gcc-4.2.2 using /tmp/gcc-4.2.2 on a 32 bit system. However, I am still having trouble compiling gcc-4.2.2 on a 64 bit OS. I got errors saying incompatible i386 with x86_64. Is there a switch that I can turn on to 64 bit OS, something like WM_64=on?

Thanks again for your reply!

Peiying

dmoroian December 27, 2007 04:21

Unfortunately, gcc is not alwa
 
Unfortunately, gcc is not always straight froward to compile. You should have a look at install gcc, especially at prerequisites paragraph.

Dragos

hsieh December 27, 2007 21:37

Dear Dragos: Thanks for the
 
Dear Dragos:

Thanks for the suggestions. I did look at the gcc installation instructions and the manual. But, I still cannot figure out how to do this.

I sent an email to gcc-help. I might try gcc-4.2.1 later to see if I can make some progress.

Peiying

msrinath80 December 29, 2007 18:00

Pei, deailed step-by-step inst
 
Pei, deailed step-by-step instructions to compile gcc and/or even binutils for an OpenFOAM setup are given in the wiki. I have followed these instructions for OF versions 1.3, 1.4 and 1.4.1 and have never faced any problems. Go here --> http://openfoamwiki.net/index.php/Howto_compile_OpenFOAM#Compiling_and_installin g_GNU_Gcc

hsieh December 31, 2007 09:18

Hi, Srinath, Thanks for the
 
Hi, Srinath,

Thanks for the reply!

By following the steps in the wiki, I am able to compile 1.4.1-dev on 64 bit SuSE 10.2, except dx and paraview. I will try Ubuntu 64 bit later.

Peiying


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