Subject: Re: Problem making PHP5 under NetBSD =?utf-8?b?Mi4xLjBfU1RBQkxF?=
To: None <netbsd-users@netbsd.org>
From: Gerardo Alvarez <zakwer3d@gmail.com>
List: netbsd-users
Date: 12/23/2005 11:03:57
Gerardo Alvarez <zakwer3d <at> gmail.com> writes:

> 
> Chavdar Ivanov <ci4ic4 <at> gmail.com> writes:
> 
> > I just completed apache2/php5/mysql5 installation on one of my i386 boxes
> under 3.99.14 (doubt if there is any difference, though).  I have never had any
> problems doing this -  but then I install php-mysql as a module - I don't even
> have mysql installed when I first install php5. The sequence is: www/apache2,
> lang/php5, www/ap-php, databases/mysql5-server, databases/php-mysql. 
> 
> I will try to uninstall and reinstall in this order (...)

Grr.
PHP5 keeps resisting.
First, JIC, I deleted the pkgsrc/lang/php5 directory and then
cvs checkout -PA pkgsrc
Then I checked in the package description page for PHP5
and "make-update" each package it depends upon:
libxml2, xmlcatmgr, libtool-base, gmake

But still php5 fails:

Just typing "make" reaches to a "Build complete" message.
I guess this is good news.

But then "make install" fails (details below) when sed tries to do
something with a file called pear in /usr/pkg/bin
I did a ls -l /usr/pkg/bin/pear*
-rw-r--r--  1 root  wheel    0 Dec 24 13:15 /usr/pkg/bin/pear.new
-rwxr-xr-x  1 root  wheel  677 Nov 24 21:33 /usr/pkg/bin/peardev

So ther is a 0 bytes pear.new file that is giving me problems.
I will investigate more. This is starting to get something personal...

#############################################################

Details on php5 make install error (edited to avoid a ">80 character lines" with
gmane.org):

>make install
===> *** No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Installing for php-5.1.1nb2
Installing PHP SAPI module:       cgi
Installing PHP CGI into: /usr/pkg/bin/
Installing build environment:     /usr/pkg/lib/php/build/
Installing header files:          /usr/pkg/include/php/
(CONFIG_FILES=scripts/phpize CONFIG_HEADERS=
/usr/pkgsrc/lang/php5/work/php-5.1.1/config.status)
creating scripts/phpize
(CONFIG_FILES=scripts/php-config CONFIG_HEADERS=
/usr/pkgsrc/lang/php5/work/php-5.1.1/config.status)
creating scripts/php-config
Installing helper programs:       /usr/pkg/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/pkg/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/pkg/lib/php/
[PEAR] Archive_Tar: PEAR_Registry: could not open filemap
[PEAR] Console_Getopt: PEAR_Registry: could not open filemap
warning: pear/PEAR requires package "pear/Archive_Tar"
(recommended version 1.3.1)
warning: pear/PEAR requires package "pear/Console_Getopt"
(recommended version 1.2)
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR: PEAR_Registry: could not open filemap
/usr/bin/sed -e 's,\(-d output_buffering=1\) \
(\$INCDIR/pearcmd.php\),\1 -n\2,' /usr/pkg/bin/pear >
/usr/pkg/bin/pear.new && /bin/mv /usr/pkg/bin/pear.new
/usr/pkg/bin/pear
sed: /usr/pkg/bin/pear: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/php5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/php5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/php5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/php5