|
Prev: [ANNOUNCEMENT] Net_FTP-1.4.0a2 (alpha) Released.
Next: [ANNOUNCEMENT] XML_Util-1.2.0a2 (alpha) Released.
From: Mark Murphy on 21 May 2008 08:07 I am completely new to PHP and PEAR, so please excuse me if I ask a stupid question or two. I am trying to learn PHP, and would like to do that inside a framework. Anyway, I have Apache 2.0.63 installed with PHP 5.2.6, and both appear to be running successfully with default configurations. I can make basic examples from tutorials work properly. Here is my problem. I want to install the Symfony framework, and the installation instructions are this: $ pear install symfony/symfony I am running on windows and don't know how to translate this. I tried: c:\PHP5>pear install symfony/symfony I got: 'pear' is not recognized as an internal or external command, operable program or batch file Turns out Pear was not installed with PHP5, so I added Pear to the PHP installation using the PHP5 installer. Now I have a go-pear batch file in my PHP5 directory, but it gives me an error as well. Here is the error I am stuck on: (go-pear) phar "C\PHP5\PEAR\go-pear.phar" does not have a signaturePHP Warning: require_once(phar://go-pear.phar/index.php):failed to open stream: phar error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:\PHP5\PEAR\go-pear.phar on line 1236 PHP Fatal error: require_once(): Failed opening required 'phar://go-pear.phar/index.php' (include_path='.;c:\php5\pear') in C:\PHP5\PEAR\go-pear.phar on line 1236
From: "Jean-Lou Dupont" on 21 May 2008 08:15 Mark - you have to issue a command at the shell like ' pear channel-discover pear.symfony.net' or whatever the address of the channel is *before* issuing the install command. Jean-Lou Dupont. On Wed, May 21, 2008 at 8:07 AM, Mark Murphy <mmurph(a)cinci.rr.com> wrote: > I am completely new to PHP and PEAR, so please excuse me if I ask a stupid > question or two. I am trying to learn PHP, and would like to do that inside > a framework. Anyway, I have Apache 2.0.63 installed with PHP 5.2.6, and > both appear to be running successfully with default configurations. I can > make basic examples from tutorials work properly. > > Here is my problem. I want to install the Symfony framework, and the > installation instructions are this: > > $ pear install symfony/symfony > > I am running on windows and don't know how to translate this. > > I tried: > c:\PHP5>pear install symfony/symfony > > I got: 'pear' is not recognized as an internal or external command, > operable program or batch file > > Turns out Pear was not installed with PHP5, so I added Pear to the PHP > installation using the PHP5 installer. Now I have a go-pear batch file in > my PHP5 directory, but it gives me an error as well. > > Here is the error I am stuck on: (go-pear) > phar "C\PHP5\PEAR\go-pear.phar" does not have a signaturePHP Warning: > require_once(phar://go-pear.phar/index.php):failed to open stream: phar > error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in > C:\PHP5\PEAR\go-pear.phar on line 1236 > PHP Fatal error: require_once(): Failed opening required > 'phar://go-pear.phar/index.php' (include_path='.;c:\php5\pear') in > C:\PHP5\PEAR\go-pear.phar on line 1236 > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- http://jldupont.com http://blog.jldupont.com http://photos.jldupont.com http://news.jldupont.com
From: "Jean-Lou Dupont" on 21 May 2008 08:17 Of course, you have to install PEAR first... get the install script at http://pear.php.net/go-pear and just do 'php go-pear.php' On Wed, May 21, 2008 at 8:07 AM, Mark Murphy <mmurph(a)cinci.rr.com> wrote: > I am completely new to PHP and PEAR, so please excuse me if I ask a stupid > question or two. I am trying to learn PHP, and would like to do that inside > a framework. Anyway, I have Apache 2.0.63 installed with PHP 5.2.6, and > both appear to be running successfully with default configurations. I can > make basic examples from tutorials work properly. > > Here is my problem. I want to install the Symfony framework, and the > installation instructions are this: > > $ pear install symfony/symfony > > I am running on windows and don't know how to translate this. > > I tried: > c:\PHP5>pear install symfony/symfony > > I got: 'pear' is not recognized as an internal or external command, > operable program or batch file > > Turns out Pear was not installed with PHP5, so I added Pear to the PHP > installation using the PHP5 installer. Now I have a go-pear batch file in > my PHP5 directory, but it gives me an error as well. > > Here is the error I am stuck on: (go-pear) > phar "C\PHP5\PEAR\go-pear.phar" does not have a signaturePHP Warning: > require_once(phar://go-pear.phar/index.php):failed to open stream: phar > error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in > C:\PHP5\PEAR\go-pear.phar on line 1236 > PHP Fatal error: require_once(): Failed opening required > 'phar://go-pear.phar/index.php' (include_path='.;c:\php5\pear') in > C:\PHP5\PEAR\go-pear.phar on line 1236 > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- http://jldupont.com http://blog.jldupont.com http://photos.jldupont.com http://news.jldupont.com
From: Mark Murphy on 21 May 2008 21:23
I have a go-pear script that installed with PHP5. My problem is that go-pear gives the error listed below. Is there some sort of configuration I need to make it work? Jean-Lou Dupont wrote: > Of course, you have to install PEAR first... get the install script at > http://pear.php.net/go-pear > and just do 'php go-pear.php' > > > On Wed, May 21, 2008 at 8:07 AM, Mark Murphy <mmurph(a)cinci.rr.com > <mailto:mmurph(a)cinci.rr.com>> wrote: > > I am completely new to PHP and PEAR, so please excuse me if I ask > a stupid question or two. I am trying to learn PHP, and would > like to do that inside a framework. Anyway, I have Apache 2.0.63 > installed with PHP 5.2.6, and both appear to be running > successfully with default configurations. I can make basic > examples from tutorials work properly. > > Here is my problem. I want to install the Symfony framework, and > the installation instructions are this: > > $ pear install symfony/symfony > > I am running on windows and don't know how to translate this. > > I tried: > c:\PHP5>pear install symfony/symfony > > I got: 'pear' is not recognized as an internal or external > command, operable program or batch file > > Turns out Pear was not installed with PHP5, so I added Pear to the > PHP installation using the PHP5 installer. Now I have a go-pear > batch file in my PHP5 directory, but it gives me an error as well. > > Here is the error I am stuck on: (go-pear) > phar "C\PHP5\PEAR\go-pear.phar" does not have a signaturePHP > Warning: require_once(phar://go-pear.phar/index.php):failed to > open stream: phar error: invalid url or non-existent phar > "phar://go-pear.phar/index.php" in C:\PHP5\PEAR\go-pear.phar on > line 1236 > PHP Fatal error: require_once(): Failed opening required > 'phar://go-pear.phar/index.php' (include_path='.;c:\php5\pear') in > C:\PHP5\PEAR\go-pear.phar on line 1236 > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > http://jldupont.com > http://blog.jldupont.com > http://photos.jldupont.com > http://news.jldupont.com |