Linux学习网!Linux爱好者的家园~凡事都是必须经过枯燥无味阶段才能做到较高层次的。
首页 新闻 Linux命令 学习入门 Ubuntu 服务配置 数据库 Linux发行版 视频教程 Linux下载 Linux论坛 留言本

TOP

mysql 5.5.11安装出现Could NOT find Curses解决方法
2012-04-04 21:27:00 来源:Linux学习网 】 浏览:0次 评论:0
安装cmake
[root@localhost ~]# cd /software/
[root@localhost software]#  tar zxvf cmake-2.8.4.tar.gz
[root@localhost software]# cd cmake-2.8.4

[root@localhost cmake-2.8.4]# ./bootstrap
[root@localhost cmake-2.8.4]# gmake
[root@localhost cmake-2.8.4]# gmake install

创建mysql组和用户
[root@localhost ~]# groupadd mysql
[root@localhost ~]# useradd -g mysql mysql
[root@localhost cmake-2.8.4]# cd /software/
[root@localhost software]#  tar zxvf mysql-5.5.11.tar.gz

[root@localhost software]# cd mysql-5.5.11
[root@localhost mysql-5.5.11]# cmake .
-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:82 (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:126 (FIND_CURSES)
  cmake/readline.cmake:216 (MYSQL_USE_BUNDLED_LIBEDIT)
  CMakeLists.txt:250 (MYSQL_CHECK_READLINE)


-- Configuring incomplete, errors occurred!
[root@localhost mysql-5.5.11]# rm CMakeCache.txt
[root@localhost mysql-5.5.11]# yum install ncurses-devel
Warning: Bison executable not found in PATH
-- Configuring done
-- Generating done
-- Build files have been written to: /software/mysql-5.5.11
[root@localhost mysql-5.5.11]# yum install bison
[root@localhost mysql-5.5.11]# cmake .

[root@localhost mysql-5.5.11]# cd /software/cmake-2.8.4
[root@localhost cmake-2.8.4]# ./configure --prefix=/usr/local/mysql
[root@localhost cmake-2.8.4]# gmake
[root@localhost cmake-2.8.4]# gmake install
[root@localhost cmake-2.8.4]# cd /software/mysql-5.5.11/
[root@localhost mysql-5.5.11]# make && make install

[root@localhost mysql-5.5.11]# cd /usr/local/mysql/
[root@localhost mysql]# chown -R root .
[root@localhost mysql]# chown -R mysql .
[root@localhost mysql]# chgrp -R mysql .

设置选项文件,将配置文件拷贝到/etc下
[root@localhost mysql]# cp support-files/my-large.cnf /etc/my.cnf
[root@localhost mysql]# scripts/mysql_install_db --user=mysql
启动mysql
[root@localhost mysql]# bin/mysqld_safe --user=mysql &

为root用户设置密码
[root@localhost mysql]# bin/mysqladmin -u root password "root"
[root@localhost mysql]# bin/mysqladmin -u root -h localhost password "root"

以root用户登录mysql
[root@localhost mysql]# bin/mysql -u root

关闭mysql
[root@localhost mysql]# bin/mysqladmin -u root shutdown

方便调用,为mysql设置一个软链接
[root@localhost ~]# ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql


设置开机自启动
[root@localhost ~]# cd /usr/local/mysql/
[root@localhost mysql]# cp support-files/mysql.server /etc/init.d/mysql
[root@localhost mysql]# chmod +x /etc/init.d/mysql
分享到:
你可能感兴趣的文章:
Tags:mysql Could NOT find Curses
】 【打印繁体】【投稿】 【评论】 【关闭】 【返回顶部
上一篇没有了 下一篇如何开启MySQL的远程帐号连接

推荐图文

赞助商

相关栏目

最新文章

热门文章

推荐文章