gaoshan8008的专栏
mysql 源码安装
分类: linux 2013-03-08 15:35 47人阅读评论(0) 收藏举报
mysql官方安装配置地址
http://dev./doc/refman/-
安装的工具需要以下几个:
libncurses
bison
cmake
libaio
安装libncurses
<pre>
wget /wp-content/uploads/2010/12/ncurses-
tar xzf ncurses-
cd ncurses-
./configure --prefix=/usr/ncurses
make
make install
ls -la /opt/ncurses
</pre>
安装bison
要看你的m4装在什么地方(whereis m4)
把他放到环境变量中/etc/export
PATH=$PATH:/usr/bin/m4
看你的libiconv转在什么地方(whereis libiconv),指定(我的是在/usr/local/lib) 他所在的文件夹就可以了
<pre>
wget /wp-content/uploads/2010/12/bison-
tar -xvzf bison-
cd bison-
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/lib
make
make install
</pre>
安装 cmake
<pre>
wget /wp-content/uploads/2010/12/cmake-
tar xzf cmake-
cd cmake-
./configure --prefix=/usr/cmake
make
make install
安装之后看下版本吧
/usr/cmake/bin/cmake -version
cmake version
</pre>
安装libaio(这个太大,我没有上传到服务器上)
<pre>
cd /usr
wget /~wkj/download/
bunzip2
tar xf
</pre>
< 转载请说明出处>
<!--more-->
<pre>
groupadd mysql
useradd -r -g mysql mysql
wget http://dev./get/Downloads/MySQL--
tar xzf mysql-
cd mysql-
PATH=$PATH:/usr/bin/bison
1
PATH=$PATH:/usr/
mysql 5.5.8 源码安装 来自淘豆网m.daumloan.com转载请标明出处.