本文共 5211 字,大约阅读时间需要 17 分钟。
wget http://pear.php.net/go-pear.phar/usr/local/php/bin/php php go-pear.phar
log
[root@grande tools]# /usr/local/php/bin/php go-pear.phar Failed loading /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so: /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so: undefined symbol: sapi_globalsPHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/redis.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/redis.so: undefined symbol: executor_globals in Unknown on line 0PHP Warning: PHP Startup: pdo_mysql: Unable to initialize moduleModule compiled with build ID=API20100525,NTSPHP compiled with build ID=API20100525,TSThese options need to match in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/soap.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/soap.so: undefined symbol: sapi_globals in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/oauth.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/oauth.so: undefined symbol: executor_globals in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/imap.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/imap.so: undefined symbol: file_globals in Unknown on line 0PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/mongo.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/mongo.so: undefined symbol: executor_globals in Unknown on line 0Below is a suggested file layout for your new PEAR installation. Tochange individual locations, type the number in front of thedirectory. Type 'all' to change all of them or simply press Enter toaccept these locations. 1. Installation base ($prefix) : /usr/local/php 2. Temporary directory for processing : /tmp/pear/install 3. Temporary directory for downloads : /tmp/pear/install 4. Binaries directory : /usr/local/php/bin 5. PHP code directory ($php_dir) : /usr/local/php/share/pear 6. Documentation directory : /usr/local/php/docs 7. Data directory : /usr/local/php/data 8. User-modifiable configuration files directory : /usr/local/php/cfg 9. Public Web Files directory : /usr/local/php/www10. System manual pages directory : /usr/local/php/man11. Tests directory : /usr/local/php/tests12. Name of configuration file : /usr/local/php/etc/pear.conf1-12, 'all' or Enter to continue: Beginning install...Configuration written to /usr/local/php/etc/pear.conf...Initialized registry...Preparing to install...installing phar:///tools/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.4.0.tar...installing phar:///tools/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.4.1.tar...installing phar:///tools/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.1.tar...installing phar:///tools/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.1.1.tar...installing phar:///tools/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.3.0.tar...install ok: channel://pear.php.net/Archive_Tar-1.4.0install ok: channel://pear.php.net/Console_Getopt-1.4.1install ok: channel://pear.php.net/Structures_Graph-1.1.1install ok: channel://pear.php.net/XML_Util-1.3.0install ok: channel://pear.php.net/PEAR-1.10.1PEAR: 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! The include_path defined in the currently used php.ini does notcontain the PEAR PHP directory you just specified:If the specified directory is also not in the include_path used byyour scripts, you will have problems getting any PEAR packages working.Would you like to alter php.ini ? [Y/n] : Yphp.ini include_path updated.Current include path : .:Configured directory : /usr/local/php/share/pearCurrently used php.ini (guess) : /etc/php.iniPress Enter to continue: ** WARNING! Old version found at /usr/local/php/bin, please remove it or be sure to use the new /usr/local/php/bin/pear commandThe 'pear' command is now at your service at /usr/local/php/bin/pear** The 'pear' command is not currently in your PATH, so you need to** use '/usr/local/php/bin/pear' until you have added** '/usr/local/php/bin' to your PATH environment variable.Run it without parameters to see the available actions, try 'pear list'to see what packages are installed, or 'pear help' for help.For more information about PEAR, see: http://pear.php.net/faq.php http://pear.php.net/manual/Thanks for using go-pear!
转载地址:http://xtdli.baihongyu.com/