系统配置:
问题:
我正在尝试在localhost上使用 GoogleAppEngine 运行 Wordpress 的实例。
一位同事的OS X 10.7具有相同的设置,但没有收到错误。
GoogleAppEngineLauncher 正在运行该实例,并且可以通过localhost:8005访问管理员,但是日志会写入错误,并且无法在端口8080上访问该实例。
错误:
当我打开浏览器(localhost:8080)时,这是我看到的消息:
使用--php_executable_path标志指定的PHP解释器 (" /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-> default.bundle / Contents / Resources / php-cgi")与App Engine PHP>开发环境不兼容。
" /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-> default.bundle / Contents / Resources / php-cgi -v"返回错误[-5] dyld:未加载库:/usr/lib/libcurl.4.dylib 参考自:/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine->default.bundle/Contents/Resources/php-cgi 原因:不兼容的库版本:php-cgi需要7.0.0或更高版本,但> libcurl.4.dylib提供版本6.0.0
以下是日志控制台输出:
*** Running dev_appserver with the following flags:
--skip_sdk_update_check=yes --port=8080 --admin_port=8005
Python command: /usr/local/bin/python2.7
INFO 2014-03-29 17:50:41,177 devappserver2.py:682] Skipping SDK update check.
WARNING 2014-03-29 17:50:41,239 api_server.py:341] Could not initialize images API; you are likely missing the Python "PIL" module.
WARNING 2014-03-29 17:50:41,249 simple_search_stub.py:1038] Could not read search indexes from /var/folders/XH/XHpGp6dGGtCU4lwb+UDGdk+++TI/-Tmp-/appengine.testapp.martinnrgaardgregersen/search_indexes
INFO 2014-03-29 17:50:41,261 api_server.py:138] Starting API server at: http://localhost:49993
INFO 2014-03-29 17:50:41,279 dispatcher.py:182] Starting module "default" running at: http://localhost:8080
INFO 2014-03-29 17:50:41,404 admin_server.py:117] Starting admin server at: http://localhost:8005
ERROR 2014-03-29 17:50:42,248 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 [-5]
dyld: Library not loaded: /usr/lib/libcurl.4.dylib
Referenced from: /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php-cgi
Reason: Incompatible library version: php-cgi requires version 7.0.0 or later, but libcurl.4.dylib provides version 6.0.0
如果您尝试从php.ini文件动态加载curl,则必须注释掉该行" extension = curl.so"在php.ini文件中,因为这不受支持。但这不是我的问题。