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

Install development version on Ubuntu

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 23, 2007, 17:33
Default Hi, I just downloaded Hrv's
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
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
hsieh is offline   Reply With Quote

Old   December 24, 2007, 03:14
Default Hi Peiying, gmake I think is
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
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
dmoroian is offline   Reply With Quote

Old   December 24, 2007, 11:36
Default Thanks Dragos! Now, I am ha
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
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 is offline   Reply With Quote

Old   December 25, 2007, 21:12
Default Hi, Can someone tell me whi
  #4
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
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
hsieh is offline   Reply With Quote

Old   December 26, 2007, 02:18
Default linuxSrc/gcc-4.2.2-obj> ../gcc
  #5
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
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
dmoroian is offline   Reply With Quote

Old   December 26, 2007, 11:54
Default Dear Dragos: Thanks a lot f
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
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
hsieh is offline   Reply With Quote

Old   December 27, 2007, 03:21
Default Unfortunately, gcc is not alwa
  #7
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Unfortunately, gcc is not always straight froward to compile. You should have a look at install gcc, especially at prerequisites paragraph.

Dragos
dmoroian is offline   Reply With Quote

Old   December 27, 2007, 20:37
Default Dear Dragos: Thanks for the
  #8
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
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
hsieh is offline   Reply With Quote

Old   December 29, 2007, 17:00
Default Pei, deailed step-by-step inst
  #9
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
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
msrinath80 is offline   Reply With Quote

Old   December 31, 2007, 08:18
Default Hi, Srinath, Thanks for the
  #10
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
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
hsieh 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install CFX in Ubuntu-Linux OS ???? Student CFX 5 January 17, 2011 08:20
Which version is current development line for 15 dkingsley OpenFOAM Installation 20 January 22, 2009 02:49
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51
Development version download guillaume OpenFOAM Installation 30 October 15, 2008 00:59
Modifying motionU in the development version philippose OpenFOAM Running, Solving & CFD 8 February 1, 2007 15:25


All times are GMT -4. The time now is 21:48.