I am having an issue with running a PHP project called Phing with Cygwin. It's not a huge problem because I can make it work but I am looking for a reason or a fix so I can do it differently.
In order to have Phing work with Cygwin on my system, I must add some paths to the windows 7 environment variables through the control panel
At first I had to add 4 variables.
PHP_COMMAND = /cygdrive/e/Server/php/php.exe
PHING_HOME = E:\Server\phing
PHP_CLASSPATH = E:\Server\phing\classes
PATH : add this to the end ;E:\Server\phing\bin
What I would rather do though it add these into my .bash_profile
under cygwin/home/jason/.bash_profile
Now I was able to successfully add 3 out of the 4 items to my bash_profile
PHP_COMMAND=:/cygdrive/e/Server/php/php.exe
PHP_CLASSPATH=:/cygdrive/e/Server/phing/classes
PATH=${PATH}:/cygdrive/e/Server/phing/bin
and then I had to still add
PHING_HOME=:E:\Server\phing
to my windows Environment Settings
Now I am not sure why though, when I try to add the PHING_HOME
path to my bash_profile
and then run phing
inside cygwin then I get this error...
Could not open input file: /cygdrive/e/Server/phing/bin/phing.php
As long as I keep PHING_HOME
as a Environment Variable then phing runs fine.
So does anyone have any idea why this 1 variable has to be in the Environment Variables in control panel instead of inside my CYGWIN .bash_profile file?