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

problem installing gcc

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 23, 2010, 14:45
Talking problem installing gcc
  #1
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 7
Ahmed Khattab is on a distinguished road
hello every one
i was trying to install open FOAM. after installation it asked me to install gcc third party due to environment problem. the gcc-4.3.3 asked me to install gpm and mpfr. when i wrote this command

$ /home/ahmed/OpenFOAM/ThirdParty-1.6/gmp-2.4.1/configure
then
$ make
it told me that maint.mk isn't exist. same thing when i wrote
$ make installation
again the same thing has happened when i did this with mpfr.
Thanks
Ahmed Khattab is offline   Reply With Quote

Old   March 24, 2010, 03:08
Default
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
It may be the case where your system is too old to accept an installation of the lastest gcc compiler. I experienced something similar on a cluster with CentOS 4.5.
What operating system do you have?
dmoroian is offline   Reply With Quote

Old   March 24, 2010, 03:59
Default
  #3
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 9
gwierink is on a distinguished road
Hi Ahmed,

Quote:
gcc-4.3.3 asked me to install gpm and mpfr
Did you try installing gmp-4.2.4 and mpfr-2.3.0?
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   March 24, 2010, 05:38
Default
  #4
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 7
Ahmed Khattab is on a distinguished road
Quote:
Originally Posted by dmoroian View Post
It may be the case where your system is too old to accept an installation of the lastest gcc compiler. I experienced something similar on a cluster with CentOS 4.5.
What operating system do you have?
ubuntu 9.1
Ahmed Khattab is offline   Reply With Quote

Old   March 24, 2010, 05:39
Default
  #5
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 7
Ahmed Khattab is on a distinguished road
gmp-2.4.1 mpfr-4.2.4
Ahmed Khattab is offline   Reply With Quote

Old   March 24, 2010, 06:40
Default
  #6
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
Quote:
Originally Posted by rebel ahmed View Post
ubuntu 9.1
This is strange. I don't see such a version in the release list for ubuntu. (https://wiki.ubuntu.com/Releases). If you made a typo and instead of 9.1 you meant 9.10, then this is the latest version and you should not worry about it. I would actually expect openfoam to work with the compiler included with the distribution.
dmoroian is offline   Reply With Quote

Old   March 24, 2010, 08:05
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings ahmed,There is a script in the ThirdParty folder named makeGcc. It will compile gmp, mpfr and gcc for you. Just run with:
Code:
./makeGcc gcc-4.3.3
Additionally, you might need to apply a patch to fix 3 missing files from mpfr. The patch is available on this post. Additionally, that thread has some useful info on how to compile gcc in ThirdParty

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 24, 2010, 12:12
Default
  #8
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 7
Ahmed Khattab is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings ahmed,There is a script in the ThirdParty folder named makeGcc. It will compile gmp, mpfr and gcc for you. Just run with:
Code:
./makeGcc gcc-4.3.3
Additionally, you might need to apply a patch to fix 3 missing files from mpfr. The patch is available on this post. Additionally, that thread has some useful info on how to compile gcc in ThirdParty

Best regards,
Bruno
i tried this
/home/ahmed/OpenFOAM/ThirdParty-1.6/makeGcc gcc-4.3.3
it gave me
/home/ahmed/OpenFOAM/ThirdParty-1.6/gmp-4.2.4/maint.mk: No such file or directory
make: *** No rule to make target `/home/khattab/OpenFOAM/ThirdParty-1.6/gmp-4.2.4/maint.mk'. Stop.
Finished building gmp.
Ahmed Khattab is offline   Reply With Quote

Old   March 24, 2010, 12:42
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings ahmed,

OK, there have been reports (here is one of them) in the past about missing files; these seem to occur due to some weird bugs when unpacking the ThirdParty-1.6.General.tgz file.
So, you should try unpacking it again and see if the missing file appears. If not, download the ThirdParty-1.6.General.tgz file again and check it with md5sum after the download is complete, and compare with the value available on the OpenFOAM download page.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Tags
gcc gmp mpfr

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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Problem on Installing OpenFOAM 1.6 on Fedora 11 lzgwhy OpenFOAM Installation 1 August 25, 2009 11:02
Problem installing ParaView3.3-cvs peterhuang OpenFOAM Installation 7 June 10, 2009 03:43
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 17:32.