Search code examples
phpwindowspear

Can't find the go-pear.bat file PHP 5.5 Windows 7


The command from their documentation says to run the command:

C:\php>php go-pear.phar
Could not open input file: go-pear.phar

According to Installation Documents the go-pear.bat file should be located in the root of the php files (c:\php). I have downloaded php-5.5.9-Win32-VC11-x64 to go with my x64 version of Apache 2.4

The closest thing I have to this is: phar.phar.bat.

When trying to run this I get the following:

C:\php>"C:\php\php.exe" "C:\php\pharcommand.phar"
No command given, check C:\php\pharcommand.phar help

or

C:\php>php phar.phar.bat
"%~dp0php.exe" "%~dp0pharcommand.phar" %*

Solution

  • Did you save go-pear.phar to C:\php\ ? If php is working fine then you should be able to just cd to the directory where you saved the go-pear.phar file and do

     $ php go-pear.phar