Links to know aboutMusic The Chiara String Quartet Chiara Quartet (MySpace) Greenwood Music Camp UNL School of Music PHP PEAR Installer Manifesto phpDocumentor PEAR phar docblock PHP_Parser PHP_Parser_DocblockParser PHP_ParserGenerator PHP_LexerGenerator PEAR_PackageFileManager PHP_Archive Games_Chess Blogs Joshua Eichorn Paul M. Jones Davey Shafik Popular EntriesSetting up your own PEAR channel with Chiara_PEAR_Server - the official way
(28) Do you develop a website? It is infinitely better to synchronize live and development sites using the PEAR Installer(25) doing the PEAR thing(19) Using PEAR 1.4.0 to install PEAR packages on a remote host(19) PEAR now fits in a bottle: meet go-pear.phar(17) CategoriesPowered by |
Thursday, July 21. 2005PEAR now fits in a bottle: meet go-pear.pharComments
Display comments as
(Linear | Threaded)
Hi Greg!
Sounds good, but if I try $ php go-pear.phar on windows (xp) with a default php 5.1b3 CLI-Binary without any extensions, I only get a new-line and nothing happens. What is needed to make it work? Any special extension or any PEAR-Packages? zlib is enabled by default. I don't get an error.
If I try your new version (md5sum: 920cf53f5d89be699464378f551dd512 *go-pear.phar), I get the following error:
Fatal error: Error: phar "C:\Dokumente und Einstellungen\andreas\Eigene Dateien\test\go-pear.phar" Checksum error on entry "m_tell() { return $this->position; } /** * The result of an fstat call, returns mod time from tar, and file size - PHP stre< 0) { return false; } $this->position = $pos" in C:\Dokumente und Einstellungen\andreas\Eigene Dateien\test\go-pear.phar on line 365
That is weird. I just tried the go-pear.phar on the Redhat-based server, and it works just fine. The md5sum is also the same.
Could it be an encoding issue in PHP? Which extensions do you have loaded? It is possible that the string functions used inside PHP_Archive are returning improper values.
$ php -m
[PHP Modules] bcmath date dom gd gettext iconv libxml mbstring mcrypt mime_magic mysql pcre PDO pdo_sqlite readline session SimpleXML SPL standard xml zlib I get this error on 3 different machines. All PHP 5.1. If I try PHP 5.0, it seems to work on both, windows and linux. Seems to be a php 5.1 issue, but I have no idea. Geat work! If I'm a user in a shared hosting enviroment and want to install PEAR::Mail_Mime - what will be necessary to make this package work, by using phar in future - if there is no PEAR installed?
The same error with the new version as described in my last post happens on linux, php 5.1b3.
Hi Greg,
A few remarks: Are you installing a system-wide PEAR or a local copy? [system] : -> What should I enter for local copy? putting [local] would make it obvious Initialized registry... Preparing to install... installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR_ErrorStack-0.8.0.tar.. . Unknown task "tasks:replace" passed in file Parsing of package.xml from file "C:\xxx\Temp\tmpC7.tmp/package.xml" failed Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR_ErrorStack-0.8 .0.tar', invalid or missing package file Package "phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR_ErrorStack-0.8.0.tar" is not valid install failed
I figured that someone would ask what to enter for local copy
I designed it so that if you enter anything other than "system" (case-insensitive), it will ask to confirm a local copy by typing 'yes'. It's a bit of a hack, but since most people will want a system copy, and hit enter, I figured that would work out ok. I'm quite surprised about the unknown task error - I have to make sure that the PEAR/Task.php is retrieving tasks from inside the .phar, I bet you it isn't right now. update: I just uploaded a new go-pear.phar that contains a fix for the problem you noticed, and better error reporting as well
No luck on Linux with PHP 4.4 CVS so far:
Beginning install... Configuration written to /home/dirk/pear/pearrc... Initialized registry... PHP Notice: Only variables should be assigned by reference in phar://go-pear.phar/PEAR/Start.php on line 267 Notice: Only variables should be assigned by reference in phar://go-pear.phar/PEAR/Start.php on line 267 Preparing to install... installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR_ErrorStack-0.8.0.tar... Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR_ErrorStack-0.8.0.tar', invalid or missing package file Package "phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR_ErrorStack-0.8.0.tar" is not valid install failed But it already looks really smart
MacOS X fails too, with the same error. Additionally the bootstrap configuration shows for the directories 3-6 "$this->prefix" instead of the content of $prefix.
I'm using WindowsXP and PHP 5.0.4.
I tried to overwrite my current (system) PEAR 1.4.0 install and got the following error: Beginning install... Configuration written to C:\PHP5\pear.ini... Initialized registry... Preparing to install... installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR_ErrorStack-0.8.0.tar... warning: pear/PEAR_ErrorStack requires package "pear/PEAR" (version >= 1.4.0a13), installed version is 1.4.0a12 install ok: channel://pear.php.net/PEAR_ErrorStack-0.8.0 installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar... install ok: channel://pear.php.net/Archive_Tar-1.3.1 installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar... install ok: channel://pear.php.net/Console_Getopt-1.2 installing phar://go-pear.phar/PEAR/go-pear-tarballs/XML_RPC-1.3.3.tar... install ok: channel://pear.php.net/XML_RPC-1.3.3 installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.0a13.tar... pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0) pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0) PHP Fatal error: Error: "PEAR/PackageFile/Generator/v2.php" not found in phar "go-pear.phar" in D:\temp\go-pear.phar on line 375 Fatal error: Error: "PEAR/PackageFile/Generator/v2.php" not found in phar "go-pear.phar" in D:\temp\go-pear.phar on line 375
Aha! This will be very helpful in figuring out why functionality is weird, thank you.
Greg,
I get this, Linux, PHP 5.1-cvs (as of about 3hrs ago Beginning install... Configuration written to /home/davey/.pearrc... Initialized registry... Preparing to install... installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR_ErrorStack-0.8.0.tar... PHP Warning: OS_Guess::_detectGlibcVersion(System.php): failed to open stream: No such file or directory in phar://go-pear.phar/OS/Guess.php on line 206 PHP Warning: OS_Guess::_detectGlibcVersion(): Failed opening 'System.php' for inclusion (include_path='.:') in phar://go-pear.phar/OS/Guess.php on line 206 warning: pear/PEAR_ErrorStack requires package "pear/PEAR" (version >= 1.4.0a13)warning : bad md5sum for file /usr/share/pear/PEAR/ErrorStack.php install ok: channel://pear.php.net/PEAR_ErrorStack-0.8.0 installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar... install ok: channel://pear.php.net/Archive_Tar-1.3.1 installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar... install ok: channel://pear.php.net/Console_Getopt-1.2 installing phar://go-pear.phar/PEAR/go-pear-tarballs/XML_RPC-1.3.3.tar... Parsing of package.xml from file "/tmp/tmpvOZiVG/package2.xml" failed Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/XML_RPC-1.3.3.tar', invalid or missing package file Package "phar://go-pear.phar/PEAR/go-pear-tarballs/XML_RPC-1.3.3.tar" is not valid install failed - Davey
After completing go-pear.phar on XP Pro with current xampp (1.4.14) distribution, it won't work because option #8 yields the path, rather than the path\php.exe. I went back and tried to specify the php.exe (5.0.4); but, it refuses anything other than a folder.
The old go-pear.bat would accept the folder path and append the php.exe to that path. The resulting error says that the path "is not recognized as an internal or external command, operable program or batch file."
I figured out what's generating the above PATH error.
In the old go-pear.bat option 8 SETs PHP_PEAR_PHP_BIN to the PHP CLI binary version, including appending \php.exe. Option 8 in go-pear.phar option is neglecting to append \php.exe to the PHP_PEAR_PHP_BIN PATH in pear.bat line 33, as follows: IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=C:\xampp\php\php.exe" Instead, it's only SETing the PATH, as follows: IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=C:\xampp\php" ` hope this helps direct you right to the solution ... ?
I have sbs2003 with iis6 and php5; but when i run go_pear i get a whole list of modules that cannot be found, do i ignore this, or should i go find and install them first or something?
C:\php>go-pear Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none) Are you installing a system-wide PEAR or a local copy? (system|local) [system] : Further to this should i choose 'system' or 'local' and what exactly is the difference?
If for any reason you have trouble with go-pear.phar, or are looking for an alternative still, I have posted a manual post go-pear.PHP fix that may work for you. It is at http://www.asherwolf.com/projects/php/pear/index.html
Thanks, Asher |
Links in this articlePEAR Installer ManifestoCalendar
QuicksearchMy Latest ReleasesTop Exitspear.php.net (304)
www.php.net (86) pear.chiaraquartet.net (79) pecl.php.net (58) news.php.net (43) Blog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||
This is a great news from Greg Beaver : PEAR now fits in a bottle with the go–pear.phar. The beginning of a new era in PEAR has arrived. I have just uploaded the first ever self-contained
Tracked: Jul 21, 05:33