首先,我将从我在 MAC 上的事实开始。
我已经 git 将 cakeDC 评论插件克隆到我的应用程序插件目录中。在尝试执行给定的命令来为此插件设置数据库表时,我收到此错误:
sudo Console/cake scheme create --plugin Comments --name app
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysqli.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysqli.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_openssl.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_openssl.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.dll, 9): image not found in Unknown on line 0
Error: Shell class SchemeShell could not be found.
#0 /Users/bellis/workspace/intranet/lib/Cake/Console/ShellDispatcher.php(167): ShellDispatcher->_getShell('scheme')
#1 /Users/bellis/workspace/intranet/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#2 /Users/bellis/workspace/intranet/app/Console/cake.php(33): ShellDispatcher::run(Array)
#3 {main}
为什么这个命令试图在我的 MAC 安装上使用 .dll 文件(仅限 Windows)。我在这里缺少什么吗?非常感谢您的帮助。