1、解压tar包:
[root@localhost mysql-5.1.60]# tar -vzxf mysql-5.1.60.tar.gz
2、配置安装:
./configure '--prefix=/usr/local/mysql' '--with-charset=utf8' '--with-extra-charsets=complex' '--with-pthread' '--enable-thread-safe-client' '--with-ssl' '--with-client-ldflags=-all-static' '--with-mysqld-ldflags=-all-static' '--with-plugins=partition,innobase,blackhole,myisam,innodb_plugin,heap,archive' '--enable-shared' '--enable-assembler'
报错:checking for termcap functions library... configure: error: No curses/termcap library found
[root@localhost mysql-5.1.60]# yum -y install ncurses-devel
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.i686 0:5.7-3.20090208.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
ncurses-devel i686 5.7-3.20090208.el6 rhel-source 641 k
Transaction Summary
=============================================================================================================================================================
Install 1 Package(s)
Total download size: 641 k
Installed size: 1.7 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : ncurses-devel-5.7-3.20090208.el6.i686 1/1
duration: 382(ms)
Installed products updated.
Installed:
ncurses-devel.i686 0:5.7-3.20090208.el6
Complete!
make
报错误:make[1]: *** [link_sources] Error 1
mv 源包到虚拟机上即可解决
make install
报错:
cannot create regular file `/usr/local/mysql/share/mysql/slovak/errmsg.sys'
3
、初始化数据库: