PHP 4.4.6 Pear install fails

pucky

Verified User
Joined
Sep 9, 2006
Messages
761
[PEAR] Archive_Tar - already installed: 1.3.2
pear/pear dependency package "pear/Console_Getopt" downloaded version 1.2.1 is not the recommended version 1.2, but may be compatible, use --force to install
pear/Console_Getopt cannot be installed, conflicts with installed packages


Notice: Only variables should be assigned by reference in /usr/local/directadmin/customapache/php-4.4.6/pear/PEAR/Installer.php on line 990
[PEAR] Console_Getopt: Installation failed: invalid package file
[PEAR] HTML_Template_IT- already installed: 1.1
[PEAR] Net_UserAgent_Detect- already installed: 2.0.1
pear/PEAR dependency package "pear/Console_Getopt" installed version 1.2 is not the recommended version 1.2.1, but may be compatible, use --force to install
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)

Notice: Only variables should be assigned by reference in /usr/local/directadmin/customapache/php-4.4.6/pear/PEAR/Installer.php on line 990
[PEAR] PEAR: Installation failed: invalid package file

Anyone else having this problem with 4.4.6 recomiled from DA?

I believe DA has packaged 4.4.6 incorrectly!!
 
Last edited:
Hello,

Can you try the instructions here:
http://pear.php.net/
Code:
pear upgrade --force PEAR-1.3.6 Archive_Tar-1.3.1 Console_Getopt-1.2
pear upgrade --force PEAR-1.4.11
pear upgrade PEAR
John
 
I tried that using the first command and got

tx1000# pear upgrade --force PEAR-1.3.6 Archive_Tar-1.3.1 Console_Getopt-1.2
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
Did not download dependencies: pear/XML_RPC, use --alldeps or --onlyreqdeps to download automatically
warning: pear/PEAR requires package "pear/XML_RPC" (version >= 1.4.0)
pear/PEAR can optionally use PHP extension "xmlrpc"
downloading PEAR-1.3.6.tgz ...
Starting to download PEAR-1.3.6.tgz (106,880 bytes)
.........................done: 106,880 bytes
downloading Archive_Tar-1.3.1.tgz ...
Starting to download Archive_Tar-1.3.1.tgz (15,102 bytes)
...done: 15,102 bytes
downloading Console_Getopt-1.2.tgz ...
Starting to download Console_Getopt-1.2.tgz (3,370 bytes)
...done: 3,370 bytes
upgrade ok: channel://pear.php.net/Console_Getopt-1.2
upgrade ok: channel://pear.php.net/Archive_Tar-1.3.1
upgrade ok: channel://pear.php.net/PEAR-1.3.6

Warning: factory(PEAR/PackageFile/v1.php): failed to open stream: No such file or directory in PEAR/PackageFile.php on line 133

Warning: factory(): Failed opening 'PEAR/PackageFile/v1.php' for inclusion (include_path='/usr/local/lib/php') in PEAR/PackageFile.php on line 133

Do i need to do this before or after i recompile? Do i still need to recompile?
 
The next command;

pear upgrade --force PEAR-1.4.11

Requires xml-rpc
 
Try the php compile now. If it fails, try adding:
--alldeps
to the pear commands.

John

That worked!!!! I only ran the first command and this was my final compile.

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

Make Complete
Copying php.ini..
/usr/local/lib/php.ini already exists, skipping.
Increasing memory limit to 20M...
Installing php...
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
cp /etc/httpd/conf/httpd.conf.new /etc/httpd/conf/httpd.conf
rm /etc/httpd/conf/httpd.conf.new
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - upgraded: 1.3.2
[PEAR] Console_Getopt - upgraded: 1.2.1
[PEAR] HTML_Template_IT- already installed: 1.1
[PEAR] Net_UserAgent_Detect- already installed: 2.0.1
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR - upgraded: 1.5.0
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] Structures_Graph- already installed: 1.0.2
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/man/man1/
page: phpize.1
page: php-config.1
PHP Installed.

:)
 
Jeff, its rather simple.

When upgrading php to 4.4.6 if you see the above error at the end of the compile then you can run;

pear upgrade --force PEAR-1.3.6 Archive_Tar-1.3.1 Console_Getopt-1.2

Also, note i used the php 4.4.6 tar.gz distro from php.net and not from DA's file system.

Then, run the compile of php again. This time it should not fail.

Note, im running Freebsd 6.1. I dont know about how the other distros will handle it but they should yield the same results.
 
Back
Top