ERROR: cannot find MySQL include files 安裝 coreseek-3.2.14 遇到的問題及解決

1.安裝 coreseek-3.2.14 遇到問題:“ERROR: cannot find MySQL include files,隨即在網上搜索各種答案說是要找到mysql.h的正確路徑加入./configure纔行,可惜找之不到,後來在官網(http://dev.mysql.com/doc/refman/5.5/en/c.html)上找到這樣一段話:


NoteIf, after an upgrade, you experience problems with compiled client programs, such as Commands out of sync or unexpected core dumps, you probably have used old header or library files when compiling your programs. In this case, check the date for your mysql.h file and libmysqlclient.a library to verify that they are from the new MySQL distribution. If not, recompile your programs with the new headers and libraries. Recompilation might also be necessary for programs compiled against the shared client library if the library major version number has changed (for example from libmysqlclient.so.15 to libmysqlclient.so.16.



建議用戶使用新的 headers 和 library 重新編譯 mysql ,說實話我們現在安裝 mysql 已經很少使用手動編譯的方式了,於是在下面有一個用戶評論(User Comments)很有用:


Connect to the Internet and do this on Debian Linux to get mysql_config and libraries for C code to compile:


apt-get install libmysqlclient15-dev

See http://packages.debian.org for place to search for missing libraries


使用之後,再編譯coreseek-3.2.14,安裝成功。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章