我在 Mac 10.7.5 上运行时遇到以下错误
Running dev_appserver with the following flags:
--skip_sdk_update_check=yes --port=8080 --admin_port=8888
Python command: /usr/bin/python2.7
INFO 2013-10-17 12:51:15,341 devappserver2.py:661] Skipping SDK update check.
WARNING 2013-10-17 12:51:15,350 api_server.py:332] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO 2013-10-17 12:51:15,359 api_server.py:139] Starting API server at: http://localhost:49520
INFO 2013-10-17 12:51:15,366 dispatcher.py:171] Starting module "default" running at: http://localhost:8080
INFO 2013-10-17 12:51:15,375 admin_server.py:117] Starting admin server at: http://localhost:8888
ERROR 2013-10-17 12:51:15,722 php_runtime.py:223] The PHP runtime is not available
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 219, in new_instance
self._check_environment(php_executable_path)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 171, in _check_environment
version_stdout))
_PHPEnvironmentError: "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php-cgi -v" returned an error [-11]
当我从 Google App Engine Launcher(版本 1.8.6)单击浏览时,我收到以下浏览器错误:
The PHP interpreter specified with the --php_executable_path flag ("/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php-cgi") is not compatible with the App Engine PHP development environment.
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php-cgi -v" returned an error [-11]
到目前为止我所做的:
- 重新安装 PHP 5.4
- 升级了 python 2.7.5(按照这些步骤)
有人遇到同样的问题并解决了吗?