Gentoo PHP/GMP emerge errors

agnitrate

Diamond Member
Jul 2, 2001
3,761
1
0
I am configuring my Gentoo system and for some reason, when I run the "emerge php" command, it will attempt to compile GMP because it is a dependency but then it shoots out this error:

dev-libs # emerge php
Calculating dependencies ...done!
>>> emerge dev-libs/gmp-4.1-r1 to /
>>> md5 ;-) gmp-4.1.tar.gz
>>> Unpacking source...
>>> Unpacking gmp-4.1.tar.gz
patching file randraw.c
>>> Source unpacked.
configure: error: --target is not appropriate for GMP
Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
explicitly. Use --host if cross-compiling (see "Installing GMP" in the
manual for more on this).

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -130, Exitcode 1
!!! configure failed
!!! emerge aborting on /usr/portage/dev-libs/gmp/gmp-4.1-r1.ebuild .

I am not doing cross-compiling because I have no idea what that is :) Is there any way around this? I want to play with PHP :cool:

Thanks for your help linux gurus!

-silver
 

agnitrate

Diamond Member
Jul 2, 2001
3,761
1
0
Hmmm, it shows it as a dependency on the portage tree:

******* gmp # emerge --pretend dev-php/php
These are the packages that I would merge, in order.
Calculating dependencies ...done!
[ebuild N ] dev-libs/gmp-4.1-r1 to /
[ebuild N ] dev-libs/libmcrypt-2.5.1-r4 to /
[ebuild N ] net-libs/libwww-5.4.0 to /
[ebuild N ] dev-php/php-4.2.2 to /

Then it gives me that error. I skipped a piece of the config under the gentoo manual but I didn't think it was that important since it was sound/printer configuration. Maybe I need to fix something that is broken?

-silver
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Try doing what it says in the error you mentioned. I dont have gmp installed on my machine and I use php.
 

Tiger

Platinum Member
Oct 9, 1999
2,312
0
0
Oviously an error in the ebuild script.
Have you posted it at the Gentoo.org forums?
They may be able to shed some light on the problem.