2015-03-10 2 views
0

Я пытаюсь клонировать и устанавливать civicrm-buildkit с использованием Git bash.
После успешного клонирования, я попытался запустить команду, но получил следующее сообщение об ошибке:Git Bash не удалось найти команду, не удалось установить путь соответствующим образом

Failed to locate command PHP. 
Please install it (and set path appropriately). 

Может ли, пожалуйста, скажите мне, как я могу установить путь команды PHP?
(я бегу на Windows 7)

ответ

1

civicrm/civicrm-buildkit делает список PHP в качестве предварительного условия:

PHP 5.3+ (For MAMP/XAMPP/etc, see Setup Command-Line PHP)

для Windows, вы можете следить за Command Line PHP on Microsoft Windows (после installing php first):

  • Append the location of the PHP executable (php.exe , php-win.exe or php-cli.exe depending upon your PHP version and display preferences) to the PATH environment variable. Read more about how to add your PHP directory to PATH in the corresponding FAQ entry .
  • Append the .PHP extension to the PATHEXT environment variable. This can be done at the same time as amending the PATH environment variable. Follow the same steps as described in the FAQ but amend the PATHEXT environment variable rather than the PATH environment variable.
  • Associate the .PHP extension with a file type.
    This is done by running the following command:
assoc .php=phpfile 
  • Associate the phpfile file type with the appropriate PHP executable.
    This is done by running the following command:
ftype phpfile="C:\PHP5\php.exe" -f "%1" -- %~2 
+0

Спасибо. Мне удалось преодолеть эту проблему, установив путь к среде в расширенных системных настройках Windows. :) –

+1

@NatnaelGetachew Отлично! не забудьте взять тур (http://stackoverflow.com/tour) и прочитать http://stackoverflow.com/help/accepted-answer – VonC

Смежные вопросы