References
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
RPM file: http://rpm.pbone.net/index.php3
Mysql-5.5.1-m2.tar.gz download path
Http://download.csdn.net/detail/huahuagongzi9999/7238003
Yum. configuration of yum in conf may be a little troublesome, and some dependent packages may be required during mysql installation, so you can install yum in etc/yum. replace the conf file, and then use the yum search glibc yum-y install package name to install the required dependent package.
Yum. conf download path
Http://download.csdn.net/detail/huahuagongzi9999/7238119
Upload mysql-5.5.1-m2.tar.gz to linux root/mysql
Decompress tar-zxvf mysql-5.5.1-m2.tar.gz
Then run./configure -- prefix =/usr/local/mysql -- localstatedir =/usr/local/mysql/var.
If the configure: error: No curses/termcap library found
The system prompts that curses is missing.
Solution:
Download and install the software package
1. If your system is a RedHat series:
Yum list | grep ncurses
Yum-y install ncurses-devel
Yum install ncurses-devel
2. If your system is Ubuntu or Debian:
Apt-cache search ncurses
Apt-get install libncurses5-dev
Completed to be installed! Then, run./configure. Then, make & make install. The installation is successful. Everything is OK !~~~
If the problem persists, run./configure -- with-named-curses-libs =/usr/lib/libncursesw. so.5.
Then proceed
Make & make install, successfully installed, everything is OK !~~~
After running make, if:
../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
Run yum install gcc-c ++ libstdc ++-devel.
If an error occurs during execution
Install the configuration method and reconfigure the yum source.
Http://blog.sina.com.cn/s/blog_63d8dad80101cn2s.html
Http://www.cnblogs.com/shuaixf/archive/2011/11/30/2268496.html
After configuration is complete
Re-Execute./configure -- with-named-curses-libs =/usr/lib/libncursesw. so.5
Then
# Make
# Make install
Reference: http://hi.baidu.com/lijunyi0198/item/ccd8519933481cd87a7f01eb
If you execute yum install gcc-c ++ libstdc ++-devel
Yum configuration references
Http://www.cnblogs.com/shuaixf/archive/2011/11/30/2268496.html
Http://blog.sina.com.cn/s/blog_63d8dad80101cn2s.html