在Ubuntu下用cmake编译mysql遇到的问题
提示是这样的
-- MySQL 5.5.24
-- Packaging as: mysql-5.5.24-Linux-i686
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:83 (MESSAGE):
Curses library not found. Please install appropriate package,
remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
Call Stack (most recent call first):
cmake/readline.cmake:118 (FIND_CURSES)
cmake/readline.cmake:214 (MYSQL_USE_BUNDLED_READLINE)
CMakeLists.txt:268 (MYSQL_CHECK_READLINE)
我明明已经安装了libncurses5-dev
如下
root@leo-Satellite-L750:/usr/local/src/lampresource# apt-get install libncurses5-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
libncurses5-dev 已经是最新的版本了。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
root@leo-Satellite-L750:/usr/local/src/lampresource#
哪位大神知道怎么解决啊?谢谢!
------解决方案--------------------
sudo ldconfig
run this command to refresh system's library cache
------解决方案--------------------
------解决方案--------------------apt-get 能直接解决依赖关系的
------解决方案--------------------