NYCPHP Meetup

NYPHP.org

[nycphp-talk] simplexml, gentoo emerge

Matt Kern lists at thekerns.net
Wed Oct 20 23:43:59 EDT 2004


chris feldmann wrote:
> Last one:
> Does anyone actually have php-5 or greater installed with emerge under
> gentoo with the simplexml commands working properly?
> 
> Thanks to Ajai and Matt: I got emerge to work properly across the
> board. But simplexml commands STILL don't work. So I'd like to ask a
> different but related question concerning USE flags and ./configure
> options. These two sets overlap but don't exhaust each other. Is there
> a way pass configuration options to emerge other than with USE flags?
> I ask because though simplexml commands are enabled by default, I
> notice on phpinfo() that it was configured with --disable-libxml. I'm
> wondering if that might be a problem. Note that this was *with* the
> xml2 USE flag. But there's no libxml USE flag. So what if I could pass
> an explicit --enable-libxml to emerge?
> 
> I know simplexml is SUPPOSED to be enabled by default in >=php-5, but
> I also wonder if the simplexml USE flag isn't actually being passed
> (clues: doesn't show up in phpinfo, etcat-u php returns a list that
> *doesn't include simplexml*. Could gentoo actually be using the 4.3.9
> USE flags?
> 

I emerged mod_php not php.  Maybe that has something to do with it?

Yes, I'm running it today.  The snippet below is from my phpinfo() 
output after emerging php 5.0.2.

SimpleXML
Simplexml support	enabled
Revision 	$Revision: 1.139.2.4 $
Schema support 	enabled


Here is the configure command from phpinfo():

Configure Command 	'./configure' '--prefix=/usr' 
'--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' 
'--localstatedir=/var/lib' '--with-apxs2=/usr/sbin/apxs2' 
'--with-config-file-path=/etc/php/apache2-php5' '--without-pear' 
'--disable-bcmath' '--with-bz2' '--enable-calendar' '--without-cpdflib' 
'--disable-ctype' '--with-curl' '--with-curlwrappers' '--disable-dbase' 
'--disable-dio' '--disable-exif' '--without-fam' '--without-fbsql' 
'--without-fdftk' '--disable-filepro' '--disable-ftp' '--with-gettext' 
'--without-gmp' '--without-hwapi' '--with-iconv' '--without-informix' 
'--without-ingres' '--without-interbase' '--enable-mbstring' 
'--with-mcrypt' '--without-mcve' '--disable-memory-limit' 
'--without-mhash' '--without-mime-magic' '--without-ming' 
'--without-mnogosearch' '--without-msql' '--without-mssql' 
'--with-ncurses' '--without-oci8' '--without-oracle' '--with-openssl' 
'--with-openssl-dir=/usr' '--without-ovrimos' '--disable-pcntl' 
'--without-pcre-regx' '--without-pfpro' '--with-pgsql' '--disable-posix' 
'--with-pspell' '--without-recode' '--enable-shmop' '--with-snmp' 
'--enable-soap' '--disable-sockets' '--disable-spl' '--without-sybase' 
'--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' 
'--disable-sysvshm' '--with-tidy' '--enable-wddx' '--with-xsl' 
'--with-xmlrpc' '--disable-yp' '--with-zlib' '--enable-debug' 
'--without-cdb' '--with-db4' '--without-dbm' '--without-flatfile' 
'--with-gdbm' '--without-inifile' '--without-qdbm' 
'--with-jpeg-dir=/usr' '--with-gd=/usr' '--enable-gd-jis-conf' 
'--enable-gd-native-ttf' '--with-ldap' '--without-ldap-sasl' 
'--with-mysql' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' 
'--with-mm' '--without-msession' '--enable-sqlite-utf8' '--enable-dba' 
'--with-readline' '--without-libedit'

Finally here's the exact command I used to emerge it:

USE="bzlib calendar pdflib curl curlwrappers dba debug iconv gd 
gd-external session sharedmem soapsnmp simplexml sqlite tidy tokenizer 
xmlrpc wddx xsl" emerge mod_php-5.0.2.ebuild

Hope that helps :-)



More information about the talk mailing list