2010-09-30 85 views
1

无聊,必要的细节:我在本地运行MySQL的Snow Leopard。MySQL错误:无法在库中找到符号'_mysql_plugin_interface_version_'

我试图安装Sphinx引擎MySQL像这样:

mysql> install plugin sphinx soname 'sphinx.so'; 
ERROR 1127 (HY000): Can't find symbol '_mysql_plugin_interface_version_' in library 

我GOOGLE了无处不在,似乎无法找到一个实际的解决这个问题。例如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.

但在这一点上,文章结束;我不知道这意味着什么或如何解决问题。

回答

0

我终于不得不重新编译MySQL,而不是将其安装为插件。这也涉及到一些问题。但是,让自己避免尝试重新创建与用于MySQL的Sphinx相同的编译条件并且在Sphinx文档之后立即重新编译所有信息的头痛问题。

2

配置MySQL这样的:

./configure --prefix=/usr/local/mysql 

使用:

./configure --prefix=/usr/local/mysql --with-plugins=sphinx 

它迫使编译器插件静态链接。

完成后,您应该有一个名为'ha_sphinx.so'的文件

相关问题