Discussion:
Problems installing PHPUnit on Ubuntu 9.10
Ralf Eggert
2009-11-04 07:12:41 UTC
Permalink
Hi,

I installed the new Ubuntu 9.10 and almost everything went smooth. Now
the only problem that is left over is installing PHPUnit via PEAR. I
used the following commands:

sudo su
export PHP_PEAR_PHP_BIN=/usr/bin/php5
pear install phpunit/PHPUnit
phpunit/PHPUnit requires PEAR Installer (version >= 1.8.1), installed version is 1.5.0
phpunit/PHPUnit can optionally use PHP extension "xdebug" (version >= 2.0.5)
No valid packages found
install failed
=========================================
Package Version State
....
PEAR 1.9.0 stable
....
Has anyone encountered the same problem? Thanks for any advice.

Best regards,

Ralf
Christian Weiske
2009-11-04 07:16:39 UTC
Permalink
Hello Ralf,
Post by Ralf Eggert
I installed the new Ubuntu 9.10 and almost everything went smooth. Now
the only problem that is left over is installing PHPUnit via PEAR. I
This is because Ubuntu ships a broken zlib:
http://blog.pear.php.net/2009/11/03/ubuntu-karmic-ships-with-pear-affecting-issues/



Christian
Ralf Eggert
2009-11-04 07:19:48 UTC
Permalink
Hi Christian,
Post by Christian Weiske
http://blog.pear.php.net/2009/11/03/ubuntu-karmic-ships-with-pear-affecting-issues/
Thanks for the link. I tried it but without any success, I got the same
Post by Christian Weiske
phpunit/PHPUnit requires PEAR Installer (version >= 1.8.1), installed version is 1.5.0
phpunit/PHPUnit can optionally use PHP extension "xdebug" (version >= 2.0.5)
No valid packages found
install failed
Anyone any other idea?

Thanks and best regards,

Ralf
Christian Weiske
2009-11-04 07:27:46 UTC
Permalink
Hello Ralf,
Post by Ralf Eggert
Thanks for the link. I tried it but without any success, I got the
phpunit/PHPUnit requires PEAR Installer (version >= 1.8.1),
installed version is 1.5.0 phpunit/PHPUnit can optionally use PHP
extension "xdebug" (version >= 2.0.5) No valid packages found
install failed
Anyone any other idea?
Yes, please read the output.
You have a really, really old version of PEAR. Upgrading it might help.


Christian
Ralf Eggert
2009-11-04 07:33:49 UTC
Permalink
Hi Christian,
Post by Christian Weiske
Yes, please read the output.
You have a really, really old version of PEAR. Upgrading it might help.
Thanks, but please read my first message until the end.
Post by Christian Weiske
=========================================
Package Version State
....
PEAR 1.9.0 stable
....
pear/PEAR is already installed and is newer than detected release version 1.9.0
Cannot initialize 'PEAR', invalid or missing package file
Package "PEAR" is not valid
upgrade failed
This is really weird indeed, isn't it?

Thanks for any further advise.

Best regards,

Ralf
Christian Weiske
2009-11-04 07:41:29 UTC
Permalink
Hello Ralf,
=========================================
Package Version State
....
PEAR 1.9.0 stable
....
Did you upgrade from an earlier version of ubuntu with an existing pear
installation? Maybe something got installed twice or so.

Christian
Ralf Eggert
2009-11-04 08:04:24 UTC
Permalink
Hi Christian,
Post by Christian Weiske
Did you upgrade from an earlier version of ubuntu with an existing pear
installation? Maybe something got installed twice or so.
No it is a fresh ubuntu installation. But I have PHP5 and PHP4 running,
so I have two pear files. One uses the PEAR version in PHP4 and the
other the PEAR version in PHP5. And this is were the confusion came
from. I just changed the paths in /usr/local/bin/pear now to use the
paths for the PHP5 installation of PEAR. And now the installation went
through.

Thanks for your help.

Best regards,

Ralf

Loading...