MySQL 错误 : Can't find symbol '_mysql_plugin_interface_version_' in library

标签 mysql plugins osx-snow-leopard sphinx

无聊的、必要的细节:我在本地运行 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/

相关文章:

php - 网站文字大小限制

mysql - 在 MYSQL 存储过程中选择和更新相同的行

javascript - 我还应该在 jQuery 插件闭包中确保 undefined 吗?

maven - apache maven 构建失败 - 无法执行目标 org.apache.felix :maven-bundle-plugin:4. 2.0:manifest

python - OSX 上的 "No module named _scproxy"

iphone - 我的 iOS 5 调试符号丢失了。我怎样才能把它们找回来?

mysql - 简单的mysql选择问题

mysql - django - 记录未保存在 MySQL 数据库中但自动增量增加

java - 我的 bundle 正在使用哪个版本的软件包?

ruby - 安装 RMagick gem——找不到 MagickWand.h