2010-09-30 81 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'的文件

相關問題