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

problem installing gcc

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2010, 13:45
Talking problem installing gcc
  #1
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
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, 02:08
Default
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
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, 02:59
Default
  #3
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
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, 04:38
Default
  #4
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
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, 04:39
Default
  #5
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
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, 05:40
Default
  #6
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
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, 07:05
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 11:12
Default
  #8
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
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, 11:42
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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


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
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 20:58.