CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   problem installing gcc (http://www.cfd-online.com/Forums/openfoam-installation/74057-problem-installing-gcc.html)

Ahmed Khattab March 23, 2010 14:45

problem installing gcc
 
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.:confused:
Thanks

dmoroian March 24, 2010 03:08

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?

gwierink March 24, 2010 03:59

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?

Ahmed Khattab March 24, 2010 05:38

Quote:

Originally Posted by dmoroian (Post 251380)
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 March 24, 2010 05:39

gmp-2.4.1 mpfr-4.2.4

dmoroian March 24, 2010 06:40

Quote:

Originally Posted by rebel ahmed (Post 251407)
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.

wyldckat March 24, 2010 08:05

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

Ahmed Khattab March 24, 2010 12:12

Quote:

Originally Posted by wyldckat (Post 251424)
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.

wyldckat March 24, 2010 12:42

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


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