无聊的、必要的细节:我在本地运行 MySQL
的 Snow Leopard。
我正在尝试为 MySQL
安装 Sphinx
引擎,如下所示:
mysql> install plugin sphinx soname 'sphinx.so';
ERROR 1127 (HY000): Can't find symbol '_mysql_plugin_interface_version_' in library
我到处用谷歌搜索,似乎找不到解决这个问题的实际方法。例如this issue on the Sphinx forums似乎没有解决。 Someone else also raised this issue具有相似的结果。
第一个帖子链接到 this O'Reilly article其中说:
There is a common problem that might occur at this point: ERROR 1127 (HY000): Can't find symbol '_mysql_plugin_interface_version_' in library If you see a message like this, it is likely that you forgot to include the -DMYSQL_DYNAMIC_PLUGIN option when compiling the plugin. Adding this option to the g++ compile line is required to create a dynamically loadable plug-in.
但文章就此结束;我不知道这意味着什么或如何解决这个问题。
最佳答案
像这样配置mysql:
./configure --prefix=/usr/local/mysql
不要使用:
./configure --prefix=/usr/local/mysql --with-plugins=sphinx
它强制编译器静态链接插件。
完成后,您应该有一个名为“ha_sphinx.so”的文件
关于MySQL 错误 : Can't find symbol '_mysql_plugin_interface_version_' in library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3827069/