Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP not emergeing...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Utoxin
Guru
Guru


Joined: 19 Apr 2002
Posts: 413
Location: American Fork, UT

PostPosted: Wed Jul 10, 2002 4:37 am    Post subject: PHP not emergeing... Reply with quote

I'm working in a chrooted install, prepping a clean gentoo install to become the new distro for one of my servers, and when I try to emerge PHP, I get this output:
Code:

arsenic linux # emerge dev-lang/php
Calculating dependencies ...done!
>>> emerge dev-lang/php-4.2.1-r3 to /
>>> md5 ;-) php-4.2.1.tar.gz
>>> Unpacking source...
>>> Unpacking php-4.2.1.tar.gz
>>> Source unpacked.
pam
ssl
mysql
jpeg
png
Compiling imap with SSL support
flash
crypt
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking host system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
Updated php_version.h
checking how to run the C preprocessor... cc -E
checking for AIX... no
checking for gcc... gcc
checking whether the C compiler (gcc -march=i686 -O3 -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 163, Exitcode 1
!!! bad ./configure

!!! emerge aborting on  /usr/portage/dev-lang/php/php-4.2.1-r3.ebuild .

And I have to specify the full dev-lang/php, because if I don't it says it can't find php at all. When I do an emerge -s php, this is what I get:
Code:

arsenic linux # emerge -s php
[ Results for search key : php ]
[ Applications found : 6 ]
 
*  dev-db/phpmyadmin
      Latest version Available: 2.2.6
      Latest version Installed: [ Not Installed ]
      Homepage: http://phpmyadmin.sourceforge.net/
      Description:
      Web-based administration for MySQL database in php
 
*  dev-db/phppgadmin
      Latest version Available: 2.4.1-r1
      Latest version Installed: [ Not Installed ]
      Homepage: http://phppgadmin.sourceforge.net/
      Description:
      Web-based administration for Postgres database in php
 
*  dev-lang/php
      Latest version Available: 4.2.1-r3
      Latest version Installed: [ Not Installed ]
      Homepage: http://www.php.net/
      Description:
      HTML embedded scripting language
 
*  dev-php/mod_php [ Masked ]
 
*  dev-php/php [ Masked ]
 
*  dev-php/phpdbg [ Masked ]

Any advice on this one, folks?

My system is a very new Gentoo 1.2 system, running on a P3 Coppermine with 512 MB of RAM. If you need any other stats on the box, just ask.
_________________
Gentoo:
1. A small fast penguin from Antarctica.
2. A small fast penguin on your computer.

Cool.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Jul 10, 2002 4:43 am    Post subject: Reply with quote

A quick forum search (ahem! ;)) produced this post, which may or may not be helpful.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Utoxin
Guru
Guru


Joined: 19 Apr 2002
Posts: 413
Location: American Fork, UT

PostPosted: Wed Jul 10, 2002 4:46 am    Post subject: Reply with quote

*looks properly ashamed and rebuked*

Thanks though, that did help. From the config.log it looks like xml support is broken, so I'm going to turn that use flag off. ;)

If your curious, here's the snippet of config.log that gives it away.
Code:

configure:2479: checking whether the C compiler (gcc -march=i686 -O3 -pipe ) works
configure:2495: gcc -o conftest -march=i686 -O3 -pipe   conftest.c -lxmlparse -lxmltok 1>&5
/usr/i686-pc-linux-gnu/bin/ld: cannot find -lxmlparse
collect2: ld returned 1 exit status
configure: failed program was:

#line 2490 "configure"
#include "confdefs.h"

main(){return(0);}


Edit: Yep. Taking out the XML use flag fixed it. Compiling now.
_________________
Gentoo:
1. A small fast penguin from Antarctica.
2. A small fast penguin on your computer.

Cool.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Jul 10, 2002 4:49 am    Post subject: Reply with quote

Off-topic, but I just realized why people are always complaining about PHP when their USE settings aren't right:

Code:
DEPEND=">=dev-libs/gmp-3.1.1
        freetype? ( ~media-libs/freetype-1.3.1 >=media-libs/t1lib-1.3.1 )
        jpeg? ( >=media-libs/jpeg-6b )
        tiff? ( >=media-libs/tiff-3.5.5 )
        png? ( >=media-libs/libpng-1.2.1 )
        gd? ( >=media-libs/libgd-1.8.3 )
        >=net-www/apache-1.3.26-r2
        X? ( virtual/x11 )
        qt? ( =x11-libs/qt-2.3* )
        nls? ( sys-devel/gettext )
        pam? ( >=sys-libs/pam-0.75 )
        xml? ( >=app-text/sablotron-0.44 )
        ssl? ( >=dev-libs/openssl-0.9.5 )
        curl? ( >=net-ftp/curl-7.8.1 )
        snmp? ( >=net-analyzer/ucd-snmp-4.2.3 )
        imap? ( >=net-mail/uw-imap-2001a-r1 )
        gdbm? ( >=sys-libs/gdbm-1.8.0 )
        ldap? ( >=net-nds/openldap-1.2.11 )
        odbc? ( >=dev-db/unixODBC-1.8.13 )
        xml2? ( dev-libs/libxml2 )
        crypt? ( >=dev-libs/libmcrypt-2.4
        >=app-crypt/mhash-0.8 )
        mysql? ( >=dev-db/mysql-3.23.26 )
        flash? ( media-libs/libswf >=media-libs/ming-0.2a )
        berkdb? ( >=sys-libs/db-3 )
        libwww? ( >=net-libs/libwww-5.3.2 )
        firebird? ( >=dev-db/firebird-1.0 )
        pdflib? ( >=media-libs/pdflib-4.0.1-r2 )
        postgres? ( >=dev-db/postgresql-7.1 )"


That's a lot of USE-determined dependencies. ;)
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Utoxin
Guru
Guru


Joined: 19 Apr 2002
Posts: 413
Location: American Fork, UT

PostPosted: Wed Jul 10, 2002 4:50 am    Post subject: Reply with quote

Yep. It tends to break with Java support too.
_________________
Gentoo:
1. A small fast penguin from Antarctica.
2. A small fast penguin on your computer.

Cool.
Back to top
View user's profile Send private message
rojaro
l33t
l33t


Joined: 06 May 2002
Posts: 732

PostPosted: Tue Jul 16, 2002 3:33 pm    Post subject: Reply with quote

got the same bug today on mutton's CYRIX PR166 machine ... well, i checked the config.log and saw that it stumbles accross the missing xmlparse library which is included in the net-libs/libwww package ... so this is a dependency bug in the ebuild ...

anyway "emerge net-libs/libwww" and then emerging php (with xml of course) worked fine ...

edit ... filed bug report ...
_________________
A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum