When I emerge mod_php 4.3.6-rc2 the PEAR packege is not installed, the phpinfo() result: Build Date Apr 27 2004 20:14:34 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-ndbm=/usr' '--with-db4=/usr' '--with-mcrypt=/usr' '--with-mhash=/usr' '--without-interbase' '--with-ming=/usr' '--with-swf=/usr' '--without-sybase' '--with-gdbm=/usr' '--without-fdftk' '--with-java=/opt/blackdown-jdk-1.4.1' '--without-mcal' '--with-unixODBC=/usr' '--with-pgsql=/usr' '--without-snmp' '--with-xpm-dir=/usr/X11R6' '--with-pdflib=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-png=/usr' '--with-png-dir=/usr' '--with-jpeg=/usr' '--with-jpeg-dir=/usr' '--enable-exif' '--with-tiff=/usr' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-freetype-dir=/usr' '--with-ttf=/usr' '--with-t1lib=/usr' '--with-gettext' '--with-qtdom=/usr/qt/3' '--with-pspell=/usr' '--with-openssl=/usr' '--with-imap=/usr' '--with-ldap=/usr' '--with-dom=/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--without-kerberos' '--with-pam' '--disable-memory-limit' '--disable-ipv6' '--without-yaz' '--with-curlwrappers' '--with-curl=/usr' '--enable-dbx' '--with-imap-ssl' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr' '--with-crack=/usr' '--with-cdb' '--enable-pcntl' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvipc' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-yp' '--without-ncurses' '--without-readline' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4' '--without-pear' my use Falgs: USE="X gtk -gnome alsa qt kde tex ldap libwww guide perl python java gd apache2 flash xine xml mule cups sse cdr oggvorbis tetex samba mozilla doc mmx curl mysql odbc innodb atapi ppds plotutils nas slp postgres imap maildir sasl ssl" but i try with minimale USE FLAGS, as USE="-X" but nothing. I Also try with other version of mod_php as 4.3.4-rc4 and other but nothing. Thi is an incredible problem :( please help me! Reproducible: Always Steps to Reproduce: 1.emerge mod_php 2. 3. Actual Results: the mod_php configured with '--without-pear' Expected Results: the mod_php configured '--with-pear' i start my installation from Gentoo 2004.0 stage 3, but i found problem, and to resolve library problem, I launched "emerge -e system" and "emerge -e world", and i resolve this.
PHP_PROVIDER_PKG="dev-php/php" php-sapi_is_providerbuild() { if [ "${CATEGORY}/${PN}" == "${PHP_PROVIDER_PKG}" ]; then return 0 else return 1 fi } This is causing this issue on my server, but not on my desktop box. But PHP really should get installed with PEAR even if dev-php/php is dev-php/php. Probably the return values just should be swapped?
--without-pear ONLY controls the installation of the pear binary and the PEAR PHP classes. the pear binary will NOT work without the dev-php/php package, so that is the only package where --with-pear is in effect. dev-php/php also provides all of the PEAR PHP classes. 'emerge mod_php php' and there are NO ill effects from --without-pear on the configure line of mod_php and php-cgi.
dev-php/php does NOT install ANY PEAR binaries or libararies without hacking of the ebuild on my machine. Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.4.22-gentoo-r7) ================================================================= System uname: 2.4.22-gentoo-r7 i686 Pentium III (Katmai) Gentoo Base System version 1.4.10 distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -fomit-frame-pointer -frerun-loop-opt -falign-functions=4 -fforce-mem -ffast-math -finline-functions -foptimize-sibling-calls -mmmx -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -fomit-frame-pointer -frerun-loop-opt -falign-functions=4 -fforce-mem -ffast-math -finline-functions -foptimize-sibling-calls -mmmx -fstack-protector -Wno-deprecated" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="acl apache2 berkdb crypt exiscan-acl gd gdbm gif gtk2 imap imlib innodb ipv6 jpeg libwww maildir mbox memlimit mysql ncurses nls oss pam pdflib perl png python readline ruby slang sse ssl tcpd tetex x86 xml2 xmms zlib"
run the emerge of dev-php/php again, and attach the full logfile from /var/log/portage/*-php
in the file /usr/portage/eclass/php-sapi.eclass at the line number 504, there is that: php-sapi_is_providerbuild || myconf="${myconf} --without-pear" to compile mod_php with pear I removed --without-pear the line is now php-sapi_is_providerbuild || myconf="${myconf}" and pear is now present in mod_php
Alessandro: that causes other problems that we are trying to get away from. please put it back how it was, and attach the log that shows the problem as I've requested.
eclasses do not have a CVS log. The new merge of dev-php/php didn't ate the PEAR part anymore. I don't have /var/log/portage anyway |:
I haven't this directory /var/log/portage/ but at the end of emerge php i received this lines: > /etc/php/cli-php4/php.ini --- /tmp/ --- /tmp/pear/ --- /tmp/pear/cache/ >>> /tmp/pear/cache/.keep >>> /usr/bin/php-config -> /usr/bin/php-config.php * The INI file for this build is /etc/php/cli-php4/php.ini * This is a CLI only build. * You cannot use it on a webserver. md5sum: //root/.pearrc: No such file or directory * Caching service dependencies... >>> dev-php/php-4.3.4-r4 merged. >>> Recording dev-php/php in "world" favorites file... >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date.
turn on logging in your make.conf and make /var/log/portage. these are emerge logs, NOT cvs logs. given that you say dev-php/php doesn't destroy PEAR anymore, i'm closing this bug.
the content of /var/log/portage/2424-mod_php-4.3.6_rc2.log postinst ^[[32;01m*^[[0m The INI file for this build is /etc/php/apache2-php4/php.ini ^[[33;01m*^[[0m Due to some previous bloopers with PHP and slotting, you may have ^[[33;01m*^[[0m multiple instances of mod_php installed. Please look at the autoclean ^[[33;01m*^[[0m output at the end of the emerge and unmerge all but relevant ^[[33;01m*^[[0m instances. ^[[32;01m*^[[0m To have Apache run php programs, please do the following: ^[[32;01m*^[[0m Edit /etc/conf.d/apache2 and add "-D PHP4" to APACHE2_OPTS ^[[33;01m*^[[0m This is a CHANGE from previous behavior, which was "-D PHP" ^[[33;01m*^[[0m This is for the upcoming PHP5 support. The ebuild will attempt ^[[33;01m*^[[0m to make this update between PHP and PHP4 automatically
Created attachment 30744 [details] log emerge mod_php (1)
Created attachment 30745 [details] log emerge mod_php (2)
Created attachment 30746 [details] log emerge php (1)
Created attachment 30747 [details] log emerge php (2)
Created attachment 30749 [details] log emerge mod_php (1)
Alessandro: from those logs I see that your PEAR is fine.
but this is result of call phpinfo(); if you don't beleve, see that at http://213.45.102.60/riviera/ :( i resolve this problem only as in Comment #5 From Alessandro Vincelli 2004-05-04 10:36 PST -- System Linux tigrePC 2.4.26 #2 Wed Apr 21 20:37:25 Local time zone must be set--see zic manu i686 Build Date May 4 2004 23:50:59 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-ndbm=/usr' '--with-db4=/usr' '--with-mcrypt=/usr' '--with-mhash=/usr' '--without-interbase' '--with-ming=/usr' '--with-swf=/usr' '--without-sybase' '--with-gdbm=/usr' '--without-fdftk' '--with-java=/opt/blackdown-jdk-1.4.1' '--without-mcal' '--with-unixODBC=/usr' '--with-pgsql=/usr' '--without-snmp' '--with-xpm-dir=/usr/X11R6' '--with-pdflib=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-png=/usr' '--with-png-dir=/usr' '--with-jpeg=/usr' '--with-jpeg-dir=/usr' '--enable-exif' '--with-tiff=/usr' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-freetype-dir=/usr' '--with-ttf=/usr' '--with-t1lib=/usr' '--with-gettext' '--with-qtdom=/usr/qt/3' '--with-pspell=/usr' '--with-openssl=/usr' '--with-imap=/usr' '--with-ldap=/usr' '--with-dom=/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--without-kerberos' '--with-pam' '--disable-memory-limit' '--disable-ipv6' '--without-yaz' '--with-curlwrappers' '--with-curl=/usr' '--enable-dbx' '--with-imap-ssl' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr' '--with-crack=/usr' '--with-cdb' '--enable-pcntl' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvipc' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-yp' '--without-ncurses' '--without-readline' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4' '--without-pear'
see the buld date.
just because it says --without-pear has ABSOLUTELY no bearing on the availablity of PEAR. I can make the output there read as whatever I want to. --with[out]-pear ONLY controls the makefile rules to INSTALL PEAR. dev-php/mod_php does NOT install pear as dev-php/php installs it instead to avoid file conflicts.
ok, but if you see at end of page http://213.45.102.60/riviera/ you read the following lines: Warning: main(DB.php): failed to open stream: No such file or directory in /var/www/localhost/htdocs/riviera/index.php on line 5 Fatal error: main(): Failed opening required 'DB.php' (include_path='.:') in /var/www/localhost/htdocs/riviera/index.php on line 5 this lines demonstrate that PEAR not working, Pear on my PC has working only when I compile with modified in /usr/portage/eclass/php-sapi.eclass as in comment #5
something else is wrong with your system. see my equal page http://orbis-terrarum.net/test/phpinfo.php http://orbis-terrarum.net/test/phpinfo.phps go and try with the newer versions of PHP.
I try to emerge php-4.3.6 ad other version, but the problem is the same. In conlusion I remerge mod_php with the mofication in comment #5 for /usr/portage/eclass/php-sapi.eclass and you can see the result in http://213.45.102.60/riviera/ at the end of page the site is now visible
On my laptop the default configuration include PEAR, and in the configuration --without-pear is absent: System Linux tigreM 2.6.5 #1 Tue Apr 6 09:30:04 CEST 2004 i686 Build Date Apr 9 2004 09:19:27 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-ndbm=/usr' '--with-db4=/usr' '--with-mcrypt=/usr' '--with-mhash=/usr' '--without-interbase' '--without-ming' '--without-swf' '--without-sybase' '--with-gdbm=/usr' '--without-fdftk' '--with-java=/opt/blackdown-jdk-1.4.1' '--without-mcal' '--with-unixODBC=/usr' '--with-pgsql=/usr' '--without-snmp' '--with-xpm-dir=/usr/X11R6' '--with-pdflib=/usr' '--without-gd' '--with-png=/usr' '--with-png-dir=/usr' '--with-jpeg=/usr' '--with-jpeg-dir=/usr' '--enable-exif' '--with-tiff=/usr' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-freetype-dir=/usr' '--with-ttf=/usr' '--with-t1lib=/usr' '--with-gettext' '--with-qtdom=/usr/qt/3' '--with-pspell=/usr' '--with-openssl=/usr' '--without-imap' '--without-ldap' '--with-dom=/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--without-kerberos' '--with-pam' '--disable-memory-limit' '--disable-ipv6' '--without-yaz' '--without-curl' '--enable-dbx' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr' '--with-crack=/usr' '--with-cdb' '--enable-pcntl' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvipc' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-yp' '--without-ncurses' '--without-readline' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4' How the system work with php setting is tenebrous question
Alessandro: do exactly this (with php-sapi.eclass the way it should be) "emerge =dev-php/mod_php-4.3.6-r1 =dev-php/php-4.3.6" now please attach the output of: qpkg -l -v mod_php qpkg -l -v php I'm still trying to see why your system doesn't have the PEAR files when it quite plainly should (my system DOES have them).
this is still true for dev-php/php-5.0.2-r1. php only install pear if USE=xml2.