看以下这篇文章就够了
http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html
查看有没有安装过:
yum list installed mysql*
rpm -qa | grep mysql*
查看有没有安装包:
yum list mysql*
RPM 文件下载地址:http://rpm.pbone.net/index.php3
mysql-5.5.1-m2.tar.gz 下载路径
http://download.csdn.net/detail/huahuagongzi9999/7238003
yum.conf 配置yum可能有点麻烦,安装mysql时可能须要一些依赖包,所以能够在etc/yum.conf 替换该文件,然后能够使用yum search glibc yum -y install 包名 安装须要的依赖包
yum.conf下载路径
http://download.csdn.net/detail/huahuagongzi9999/7238119
将mysql-5.5.1-m2.tar.gz上传至linux root/mysql 中
解压缩 tar -zxvf mysql-5.5.1-m2.tar.gz
然后运行./configure
--prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/var
运行完毕后,假设出现configure: error: No curses/termcap library found
提示缺少curses。
解决的方法:
下载安装对应软件包
一、假设你的系统是RedHat系列:
yum list|grep ncurses
yum -y install ncurses-devel
yum install ncurses-devel
二、假设你的系统是Ubuntu或Debian:
apt-cache search ncurses
apt-get install libncurses5-dev
待安装completed!之后,再./configure,顺利通过,然后make && make install,安装成功,一切OK!~~~
假设还是不行,则运行./configure --with-named-curses-libs=/usr/lib/libncursesw.so.5
然后继续
make && make install,安装成功,一切OK!~~~
运行make后,假设出现:
../depcomp: line 571: exec: g++: not found
make[1]: *** [my_new.o] Error 127
make[1]: Leaving directory `/root/mysql/mysql-5.5.1-m2/mysys'
make: *** [install-recursive] Error 1
则运行yum install gcc-c++ libstdc++-devel
假设运行过程中出现错误
则安装一下配置方式,又一次配置yum源
http://blog.sina.com.cn/s/blog_63d8dad80101cn2s.html
http://www.cnblogs.com/shuaixf/archive/2011/11/30/2268496.html
配置完毕之后
又一次运行./configure --with-named-curses-libs=/usr/lib/libncursesw.so.5
然后
#make
#make install
參考文章:http://hi.baidu.com/lijunyi0198/item/ccd8519933481cd87a7f01eb
假设运行yum install gcc-c++ libstdc++-devel
yum配置相关參考资料
http://www.cnblogs.com/shuaixf/archive/2011/11/30/2268496.html
http://blog.sina.com.cn/s/blog_63d8dad80101cn2s.html
參考资料
http://blog.sina.com.cn/s/blog_a5ec47fa0100zt63.html
http://rq2-79.iteye.com/blog/175869
http://www.jz123.cn/text/3035482.html
http://www.jb51.net/os/RedHat/1262.html
http://blog.csdn.net/zccst/article/details/4493074
http://linux.vbird.org/linux_server/redhat6.1/linux_26wwwapache.php
http://younglab.blog.51cto.com/416652/136495
http://www.360doc.com/content/13/0425/11/12094763_280802902.shtml
參考资料
http://blog.sina.com.cn/s/blog_a5ec47fa0100zt63.html
http://rq2-79.iteye.com/blog/175869
http://www.jz123.cn/text/3035482.html
http://www.jb51.net/os/RedHat/1262.html
http://blog.csdn.net/zccst/article/details/4493074
http://linux.vbird.org/linux_server/redhat6.1/linux_26wwwapache.php
http://younglab.blog.51cto.com/416652/136495
http://www.360doc.com/content/13/0425/11/12094763_280802902.shtml