[1.7.4-VC6] PHPUnit Installation via PEAR schlägt fehlt

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

[1.7.4-VC6] PHPUnit Installation via PEAR schlägt fehlt

Postby Xantiva » 02. May 2011 23:57

Hallo zusammen,

ich versuche seit Stunden ein aktuelles PHPUnit zu installieren, scheitere aber scheinbar immer an dieser Fehlermeldung:

SECURITY ERROR: package in channel "pear.symfony-project.com" retrieved another
channel's name for download! ("pear.php.net")


Hier mal komplett:

Code: Select all
E:\xampp\php>pear install phpunit/PHPUnit

Notice: unserialize(): Error at offset 0 of 99 bytes in PEAR\REST\10.php on line
 288
PHP Notice:  unserialize(): Error at offset 0 of 99 bytes in E:\xampp\php\PEAR\P
EAR\REST\10.php on line 288

Notice: unserialize(): Error at offset 0 of 99 bytes in E:\xampp\php\PEAR\PEAR\R
EST\10.php on line 288
SECURITY ERROR: package in channel "pear.symfony-project.com" retrieved another
channel's name for download! ("pear.php.net")

Notice: unserialize(): Error at offset 0 of 99 bytes in PEAR\REST\10.php on line
 288
PHP Notice:  unserialize(): Error at offset 0 of 99 bytes in E:\xampp\php\PEAR\P
EAR\REST\10.php on line 288

Notice: unserialize(): Error at offset 0 of 99 bytes in E:\xampp\php\PEAR\PEAR\R
EST\10.php on line 288
SECURITY ERROR: package in channel "pear.symfony-project.com" retrieved another
channel's name for download! ("pear.php.net")
Did not download optional dependencies: ezc/ConsoleTools, use --alldeps to downl
oad automatically
phpunit/PHPUnit requires package "symfony/YAML" (version >= 1.0.2)
phpunit/PHPUnit can optionally use PHP extension "curl"
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/DbUnit requires package "symfony/YAML" (version >= 1.0.2)
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2
.0.5)
downloading File_Iterator-1.2.6.tgz ...
Starting to download File_Iterator-1.2.6.tgz (3,439 bytes)
....done: 3,439 bytes
downloading Text_Template-1.1.0.tgz ...
Starting to download Text_Template-1.1.0.tgz (2,783 bytes)
...done: 2,783 bytes
downloading PHP_CodeCoverage-1.0.4.tgz ...
Starting to download PHP_CodeCoverage-1.0.4.tgz (115,029 bytes)
...done: 115,029 bytes
downloading PHP_Timer-1.0.0.tgz ...
Starting to download PHP_Timer-1.0.0.tgz (2,536 bytes)
...done: 2,536 bytes
downloading PHPUnit_MockObject-1.0.8.tgz ...
Starting to download PHPUnit_MockObject-1.0.8.tgz (18,199 bytes)
...done: 18,199 bytes
downloading PHPUnit_Selenium-1.0.2.tgz ...
Starting to download PHPUnit_Selenium-1.0.2.tgz (16,412 bytes)
...done: 16,412 bytes
downloading PHP_TokenStream-1.0.1.tgz ...
Starting to download PHP_TokenStream-1.0.1.tgz (7,250 bytes)
...done: 7,250 bytes
downloading ConsoleTools-1.6.1.tgz ...
Starting to download ConsoleTools-1.6.1.tgz (869,994 bytes)
...done: 869,994 bytes
downloading Base-1.8.tgz ...
Starting to download Base-1.8.tgz (236,357 bytes)
...done: 236,357 bytes
install ok: channel://pear.phpunit.de/File_Iterator-1.2.6
install ok: channel://pear.phpunit.de/Text_Template-1.1.0
install ok: channel://pear.phpunit.de/PHP_Timer-1.0.0
install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.0.2
install ok: channel://components.ez.no/Base-1.8
install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.0.8
install ok: channel://components.ez.no/ConsoleTools-1.6.1
install ok: channel://pear.phpunit.de/PHP_TokenStream-1.0.1
install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.0.4


Was habe ich gemacht?

* Installation von xampp-win32-1.7.4-VC6-installer.exe nach E:\xampp (auf einem Win 7 64bit).
* Der Umgebungsvariablen PATH ;E:\xampp\php angefügt und noch PHP_PEAR_SYSCONF_DIR=e:\xampp\php gesetzt.
* PEAR config Pfade angepasst:
Code: Select all
E:\xampp\php>pear config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels     auto_discover    <not set>
Default Channel                default_channel  pear.php.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          E:\xampp\php
PEAR documentation directory   doc_dir          E:\xampp\php\docs
PHP extension directory        ext_dir          E:\xampp\php\ext
PEAR directory                 php_dir          E:\xampp\php\pear
PEAR Installer cache directory cache_dir        E:\xampp\php\tmp
PEAR configuration file        cfg_dir          E:\xampp\php\cfg
directory
PEAR data directory            data_dir         E:\xampp\php\data
PEAR Installer download        download_dir     E:\xampp\php\tmp
directory
PHP CLI/CGI binary             php_bin          E:\xampp\php\.\php.exe
php.ini location               php_ini          <not set>
PEAR Installer temp directory  temp_dir         E:\xampp\php\tmp
PEAR test directory            test_dir         E:\xampp\php\tests
PEAR www files directory       www_dir          E:\xampp\php\www
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            0
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          C:\Program Files
                                                (x86)\GNU\GnuPG\pub\gpg.EXE
Signature Key Directory        sig_keydir       e:\xampp\php\pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         e:\xampp\php\pear.ini
System Configuration File      Filename         e:\xampp\php\pearsys.ini

* die korrupte go-pear.phar ersetzt und dann ausgeführt =>http://stackoverflow.com/questions/4997628/installing-pear-on-windows-7-using-phar
Code: Select all
E:\xampp\php>go-pear.bat

Are you installing a system-wide PEAR or a local copy?
(system|local) [system] : local
Please confirm local copy by typing 'yes' : yes

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)                   : E:\xampp\php
 2. Temporary directory for processing            : E:\xampp\php\tmp
 3. Temporary directory for downloads             : E:\xampp\php\tmp
 4. Binaries directory                            : E:\xampp\php
 5. PHP code directory ($php_dir)                 : E:\xampp\php\pear
 6. Documentation directory                       : E:\xampp\php\docs
 7. Data directory                                : E:\xampp\php\data
 8. User-modifiable configuration files directory : E:\xampp\php\cfg
 9. Public Web Files directory                    : E:\xampp\php\www
10. Tests directory                               : E:\xampp\php\tests
11. Name of configuration file                    : E:\xampp\php\pear.ini
12. Path to CLI php.exe                           : E:\xampp\php\.

1-12, 'all' or Enter to continue:
Beginning install...
Configuration written to E:\xampp\php\pear.ini...
Initialized registry...
Preparing to install...
installing phar://E:/xampp/php/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.7.tar...
installing phar://E:/xampp/php/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.3.0.tar...
installing phar://E:/xampp/php/PEAR/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.9.2.tar...
installing phar://E:/xampp/php/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.4.tar...
installing phar://E:/xampp/php/PEAR/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.tar...
install ok: channel://pear.php.net/Archive_Tar-1.3.7
install ok: channel://pear.php.net/Console_Getopt-1.3.0
install ok: channel://pear.php.net/Structures_Graph-1.0.4
install ok: channel://pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.9.2
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)

PEAR: To install optional features use "pear install pear/PEAR#featurename"

** WARNING! Old version found at E:\xampp\php, please remove it or be sure to us
e the new e:\xampp\php\pear.bat command

The 'pear' command is now at your service at e:\xampp\php\pear.bat
Drücken Sie eine beliebige Taste . . .

* fehlende Channels ergänzt
Code: Select all
E:\xampp\php>pear channel-discover pear.phpunit.de
Adding Channel "pear.phpunit.de" succeeded
Discovery of channel "pear.phpunit.de" succeeded

E:\xampp\php>pear channel-discover components.ez.no
Adding Channel "components.ez.no" succeeded
Discovery of channel "components.ez.no" succeeded

E:\xampp\php>pear channel-discover pear.symfony-project.com
Adding Channel "pear.symfony-project.com" succeeded
Discovery of channel "pear.symfony-project.com" succeeded

* pear install phpunit/PHPUnit => Fehlermeldung siehe zu Beginn ...

Ich bekomme das symfony/YAML nicht installiert und damit auch das PHPUnit nicht :cry:
Code: Select all
E:\xampp\php>pear remote-list -c symfony
CHANNEL SYMFONY AVAILABLE PACKAGES:
===================================
PACKAGE         VERSION
pake            1.1.4
symfony         1.4.11
YAML            1.0.5
EventDispatcher 1.0.0

E:\xampp\php>pear install symfony/YAML

Notice: unserialize(): Error at offset 0 of 99 bytes in PEAR\REST\10.php on line
 288
PHP Notice:  unserialize(): Error at offset 0 of 99 bytes in E:\xampp\php\PEAR\P
EAR\REST\10.php on line 288

Notice: unserialize(): Error at offset 0 of 99 bytes in E:\xampp\php\PEAR\PEAR\R
EST\10.php on line 288
SECURITY ERROR: package in channel "pear.symfony-project.com" retrieved another
channel's name for download! ("pear.php.net")
install failed


Was mache ich falsch, was könnte ich noch ausprobieren?

Danke für Eure Hilfe,

Mike
Xantiva
 
Posts: 3
Joined: 17. May 2009 13:52

Re: [1.7.4-VC6] PHPUnit Installation via PEAR schlägt fehlt

Postby Xantiva » 04. May 2011 01:45

So, Problem gelöst, Fehler umgangen. http://blog.xantiva.de/archives/111-PHP ... ieren.html
Kurzfassung: PEAR Installation mit URI und nicht Paketnamen
Xantiva
 
Posts: 3
Joined: 17. May 2009 13:52


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 9 guests