64位CONTOS6.2安装编译安装MYSQL无法安装上,总是提示错误,请教这个这个是什么问题呢!
[root@localhostmysql-5.5.24]#cmake.-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-DMYSQL_DAT...
[root@localhost mysql-5.5.24]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysqld.sock -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_TCP_PORT=3306 -DWITH_EXTRA_CHARSETS:STRING=utf8,gbk -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock -DWITH_DEBUG=0 -DWITH_READLINE=1 -DWITH_SSL=yes -DSYSCONFDIR=/usr/local/mysql
-- MySQL 5.5.24
-- Packaging as: mysql-5.5.24-Linux-x86_64
-- 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)
-- Configuring incomplete, errors occurred! 展开
-- MySQL 5.5.24
-- Packaging as: mysql-5.5.24-Linux-x86_64
-- 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)
-- Configuring incomplete, errors occurred! 展开
3个回答
展开全部
这个问题我遇到过一次,好像是ncurses没有装,但是我遇到的问题还不太一样,我查了一下,当时我装了ncurses-5.7
报错信息说Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
就是说缺少CURSES_LIBRARY CURSES_INCLUDE_PATH,就是找不到CURSES库,或是缺少CURSES包含路径
configure的时候加个参数 --with-named-curses-libs=/usr/lib/libncursesw.so.5
就是指定CURSES库的路劲
实际编译时候很多问题跟环境有关系,多试试
祝你好运
报错信息说Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
就是说缺少CURSES_LIBRARY CURSES_INCLUDE_PATH,就是找不到CURSES库,或是缺少CURSES包含路径
configure的时候加个参数 --with-named-curses-libs=/usr/lib/libncursesw.so.5
就是指定CURSES库的路劲
实际编译时候很多问题跟环境有关系,多试试
祝你好运
展开全部
我也是这个问题,不行啊
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询