Home >Database >Mysql Tutorial >Ubuntu编译MySQL5

Ubuntu编译MySQL5

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 16:54:43896browse

编译MySQL5源码提示 No curses/termcap library found,但安装curses termcap都提示已经安装。编译时加上路径即可解决,即./conf

编译MySQL5源码提示 No curses/termcap library found,但安装curses termcap都提示已经安装。
编译时加上路径即可解决,,即
./configure –with-named-curses-libs=/usr/lib/libncurses.so.5
以上为CentOS 5.2,如果是Ubuntu,需要安装.sudo apt-get install libncurses5-dev

编译代码:

/usr/sbin/groupadd mysql
/usr/sbin/useradd -g mysql mysql
tar zxvf mysql-5.1.35.tar.gz
cd mysql-5.1.35/
./configure –prefix=/usr/local/webserver/mysql/ –enable-assembler –with-extra-charsets=complex –enable-thread-safe-client –with-big-tables –with-readline –with-ssl –with-embedded-server –enable-local-infile –with-plugins=innobase
make && make install
chmod +w /usr/local/webserver/mysql
chown -R mysql:mysql /usr/local/webserver/mysql
cd ../

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn