1,105,386 Community Members

trying to install a pear package

Member Avatar
eduard77
Junior Poster
119 posts since Dec 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I am trying to install XML_RSS extension but it seem that something is not working.
I was looking over the documentation and it says that I should run some commands in the command line.
this one confused me totally.
Could anyone help me get this done?
Thanks

Member Avatar
cereal
Posting Virtuoso
1,710 posts since Aug 2007
Reputation Points: 461 [?]
Q&As Helped to Solve: 345 [?]
Skill Endorsements: 44 [?]
 
0
 

In order to install a pear package you need to run a terminal and type the install commands there, not all hosting plans allows terminal sessions (ssh). Which platform are you using: linux, windows? Are you testing in a local server?

Member Avatar
eduard77
Junior Poster
119 posts since Dec 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I use windows and MySql

Member Avatar
cereal
Posting Virtuoso
1,710 posts since Aug 2007
Reputation Points: 461 [?]
Q&As Helped to Solve: 345 [?]
Skill Endorsements: 44 [?]
 
0
 
Member Avatar
eduard77
Junior Poster
119 posts since Dec 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Of course that I saw the installation instructions but but I am not familiar with the command line. When I write this command php go-pear.phar I receive the next error.
c:\users\Edy> `php` is not recognized as an internal or external command, operable program or batch file.
I downloaded the pyrus.phar file and I put it in the downloads folder

Member Avatar
cereal
Posting Virtuoso
1,710 posts since Aug 2007
Reputation Points: 461 [?]
Q&As Helped to Solve: 345 [?]
Skill Endorsements: 44 [?]
 
0
 

This error message means that PHP is not installed or path is not set.

Member Avatar
eduard77
Junior Poster
119 posts since Dec 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

And how do I set it?
I installed with wamp server.
the location of php is c:\wamp\bin\php

Member Avatar
eduard77
Junior Poster
119 posts since Dec 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

And how do I set it?
I installed php with wamp server.
the location of php is c:\wamp\bin\php

Member Avatar
diafol
Where are my eyes?
12,949 posts since Oct 2006
Reputation Points: 1,821 [?]
Q&As Helped to Solve: 1,846 [?]
Skill Endorsements: 92 [?]
Moderator
Featured
Sponsor
 
0
 

The manual states:

c:\php\go-pear.bat.

But your path is c:\wamp\bin\php\go-pear.bat (I assume).

Member Avatar
eduard77
Junior Poster
119 posts since Dec 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

but how do I change this path?

Member Avatar
diafol
Where are my eyes?
12,949 posts since Oct 2006
Reputation Points: 1,821 [?]
Q&As Helped to Solve: 1,846 [?]
Skill Endorsements: 92 [?]
Moderator
Featured
Sponsor
 
0
 

Open console
cd\wamp\bin\php
go-pear.bat

Member Avatar
cereal
Posting Virtuoso
1,710 posts since Aug 2007
Reputation Points: 461 [?]
Q&As Helped to Solve: 345 [?]
Skill Endorsements: 44 [?]
 
0
 

In addition to Ardav suggest, you can set the path in Windows Environment Variables, I don't have a Windows box, but searching on google it seems you can access to that going into Control Panel > System > Advanced > Environmental Variables as suggested here:

http://us2.php.net/manual/en/faq.installation.php#faq.installation.addtopath

bye.

Member Avatar
eduard77
Junior Poster
119 posts since Dec 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I changed the path with no problems but when I try to run pyrus.phar it opens me a box where is written that windows cannot open this extension .phar

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article