当前位置: 技术问答>linux和unix
在Ubuntu下用cmake编译mysql遇到的问题
来源: 互联网 发布时间:2017-04-26
本文导语: 提示是这样的 -- 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 pa...
提示是这样的
-- 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#
哪位大神知道怎么解决啊?谢谢!
-- 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
run this command to refresh system's library cache
|
ubuuntu 不能直接用
rpm的
|
apt-get 能直接解决依赖关系的
|
你的cmake是装系统时一起装的么?
很多光盘镜像里都有MySQL的,你用光盘镜像装