I'm running WAMP on Windows 7 64 Bits.
The PATH
variable is set to c:\wamp\bin\php\php5.3.13\
I'm trying to install Symfony and I do not understand why first line runs and not the second:
This runs successfully:
php c:\wamp\bin\php\php5.3.13\composer.phar update
This line fails:
php composer.phar update
With the error:
"Could not open input file: composer.phar"
What can explain this?
get_include_path
returns : `
.;C:\wamp\bin\php\php5.3.13\php\PEAR`.
Does this mean that if composer.phar is not in PEAR directory 'php composer.phar update' will not work?
Command composer self-update
will do the trick.
For example:
goto cmd and jump into your project folder if in case c:\wamp\www\{yourprojectfolder}
as your project
Run this cd c:\wamp\www\{yourprojectfolder}
composer self-update
You should try this instead:
composer.phar update
Why would php be aware of your $PATH variable?
Plus, I think $PATH is only used by your shell when dealing with the first word of your command line.
You should logout and then login or restart in order to changes in path becomes available.
Okay this is how i solved it.
cheers hope this helps you too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With