Scientific Linuxã«MySQL5.5ãã¤ã³ã¹ãã¼ã«
ä»ã¾ã§ã¯æ®éã«CentOSã使ã£ã¦ããã ãã©ã
RHEL6ã®ã¯ãã¼ã³ã¯Scientific Linuxãè¯ããããã®ã§
試ãã«ç°å¢ãä½ã£ã¦ã¿ãã
MySQLãyum ã§ã¤ã³ã¹ãã¼ã«ãããã¨ããã¨ã
ãªãã ãã©5.5ã§è¡ãããã®ã§
http://www-jp.mysql.com/downloads/mysql/
ããrpmãæã£ã¦ãã¦ã¤ã³ã¹ãã¼ã«ã
ã¨ããã
ã¨ãããã¨ããã¨ãããããã£ã¨
æºåä¸... ########################################### [100%]
ãã¡ã¤ã« /usr/share/mysql/charsets/README (ããã±ã¼ã¸ MySQL-server-5.5.19-1.linux2.6.x86_64 ãã) ã¯ãããã±ã¼ã¸ mysql-libs-5.1.52-1.el6_0.1.x86_64 ããã®ãã¡ã¤ã«ã¨ç«¶åãã¦ãã¾ãã
ãã¡ã¤ã« /usr/share/mysql/charsets/Index.xml (ããã±ã¼ã¸ MySQL-server-5.5.19-1.linux2.6.x86_64 ãã) ã¯ãããã±ã¼ã¸ mysql-libs-5.1.52-1.el6_0.1.x86_64 ããã®ãã¡ã¤ã«ã¨ç«¶åãã¦ãã¾ãã
ã»
ã»
ã¨æãããã
ç´ ã®ç¶æ ã®OSã«ã¯mysqlã¯ããã¦ããªãçãªãã ãã©ã»ã»ã»ã¨æãããã
ãããã®ã§åé¤ãããã¨ã»ã»ã»
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Removing:
mysql-libs x86_64 5.1.52-1.el6_0.1 @anaconda-ScientificLinux-201107271550.x86_64 4.0 M
Removing for dependencies:
cronie x86_64 1.4.4-7.el6 @anaconda-ScientificLinux-201107271550.x86_64 166 k
cronie-anacron x86_64 1.4.4-7.el6 @anaconda-ScientificLinux-201107271550.x86_64 43 k
crontabs noarch 1.10-32.1.el6 @anaconda-ScientificLinux-201107271550.x86_64 2.4 k
postfix x86_64 2:2.6.6-2.1.el6_0 @anaconda-ScientificLinux-201107271550.x86_64 9.7 M
postfix x86_64 2:2.6.6-2.2.el6_1 installed 9.7 M
sysstat x86_64 9.0.4-18.el6 @anaconda-ScientificLinux-201107271550.x86_64 805 kTransaction Summary
========================================================================================================================
Remove 7 Package(s)Installed size: 24 M
Is this ok [y/N]:
ãããããããããªãã§ãã
cronã¨ãMTAã¨ãæ¶ãã¡ãããªãã¦ã»ã»ã»
sysstatãç¡ãã®ãå°ãã
ã§ããããã調ã¹ã¦ã¿ããã ãã©ãã¾ãã°ãã¨ãã解決çããªãã
- mysqlã¯5.1ã§ããããã
- remi ã§ã»ã»ã»
ï¼ãªãã¨ãªãremi使ãã®ã£ã¦è² ããªæ°ãããï¼
id:sh2 ããã®
http://d.hatena.ne.jp/sh2/20110720
ã¯ã¨ã¦ãåèã«ãªã£ããã©ãä»åã¯å¤é¨ãªãã¸ããªã«é ¼ããã
CentOSã«ãubuntuã«ãè¡ããã«MySQL5.5ã«ãã ãã£ã¦é å¼µãã
ï¼CentOSã§ã¯ãããªè¦å´ããã«ããããªãå
¥ãã¾ãããï¼ï¼
ã§ãããã¡ãã£ã¨æã£ã¦ã¿ãã
# yum deplist postfix | grep mysql
dependency: libmysqlclient.so.16()(64bit)
provider: mysql-libs.x86_64 5.1.52-1.el6_0.1
dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit)
provider: mysql-libs.x86_64 5.1.52-1.el6_0.1
dependency: mysql-libs
provider: mysql-libs.i686 5.1.52-1.el6_0.1
provider: mysql-libs.x86_64 5.1.52-1.el6_0.1
dependency: libmysqlclient.so.16()(64bit)
provider: mysql-libs.x86_64 5.1.52-1.el6_0.1
dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit)
provider: mysql-libs.x86_64 5.1.52-1.el6_0.1
dependency: mysql-libs
provider: mysql-libs.i686 5.1.52-1.el6_0.1
ãããªæãã§mysql-libsã«ç´æ¥ä¾åãã¦ãã®ã¯postfix(ã
ã§ãä¾åé¢ä¿ã¯
ã¨ããæãã§æ³åã
mysql-libsã®ä¸èº«ã¯ã¨ããã¨ã
# rpm -ql mysql-libs
/etc/ld.so.conf.d/mysql-x86_64.conf
/etc/my.cnf
/usr/lib64/mysql
/usr/lib64/mysql/libmysqlclient.so.16
/usr/lib64/mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so.16
/usr/lib64/mysql/libmysqlclient_r.so.16.0.0
以ä¸ãã³ãã¼ã©ã¤ãã¨å種è¨èª(i18n)é¢ä¿
ãªã®ã§ãmy.cnfã¯ã¨ããã
libmysqlclient.so.16
ãããã°è¯ããã¨è¸ãã
ãªã®ã§ã
- mysql-libsãåé¤
- ä¾åãã¦ãã©ã¤ãã©ãªãã¨ãããããµã¨ãã©
- libmysqllient.soã¯MySQL-sharedã®rpmã§å ¥ãã®ã§ãï½
- libmysqllientã®ãã¼ã¸ã§ã³éãã¯ã·ã³ããªãã¯ãªã³ã¯ã§è©¦ãã¦ã¿ã
- ãã®å¾ããµã¨ãã©ããã©ã¤ãã©ãªãåã¤ã³ã¹ãã¼ã«
ã¨ããæ¹éã
# yum remove mysql-libs
ï¼mysql-libs,cronie,cronie-anacron,crontabs,postfix,sysstatãåé¤ï¼
ï¼/etc/postfix/main.cf ã¯éé¿ãããã®ã§ãã¨ã§å¾©å¸°ããï¼
# rpm -ivh MySQL-server-5.5.19-1.linux2.6.x86_64.rpm
# rpm -ivh MySQL-devel-5.5.19-1.linux2.6.x86_64.rpm
# rpm -ivh MySQL-client-5.5.19-1.linux2.6.x86_64.rpm
# rpm -ivh MySQL-shared-5.5.19-1.linux2.6.x86_64.rpm
# rpm -ivh MySQL-test-5.5.19-1.linux2.6.x86_64.rpm
ã§ã
# yum install cronie
ï¼cronie,cronie-anacron,crontabsãã¤ã³ã¹ãã¼ã«ãããï¼
# yum install sysstat
ããã¾ã§ãã£ã¦ã
ã¯ãã£ã±ãmysql-libs欲ããã¨è¨ãããã®ã§ã
ã¡ãã£ã¨æ°æã¡æªãã¦å«ã ãã©å¼·å¼ã«
# yumdownloader postfix
# rpm -ivh --nodeps postfix-2.6.6-2.2.el6_1.x86_64.rpm
libmysqlclientã¯
# ls -la /usr/lib64/libmysqlclient*
lrwxrwxrwx. 1 root root 20 12æ 20 19:32 2011 /usr/lib64/libmysqlclient.so -> libmysqlclient.so.18
lrwxrwxrwx. 1 root root 24 12æ 20 19:32 2011 /usr/lib64/libmysqlclient.so.18 -> libmysqlclient.so.18.0.0
rwxr-xr-x. 1 root root 6856547 11æ 24 00:14 2011 /usr/lib64/libmysqlclient.so.18.0.0
lrwxrwxrwx. 1 root root 17 12æ 20 19:32 2011 /usr/lib64/libmysqlclient_r.so -> libmysqlclient.so
lrwxrwxrwx. 1 root root 17 12æ 20 19:32 2011 /usr/lib64/libmysqlclient_r.so.18 -> libmysqlclient.so
lrwxrwxrwx. 1 root root 17 12æ 20 19:32 2011 /usr/lib64/libmysqlclient_r.so.18.0.0 -> libmysqlclient.so
ãªæãã§ã
- libmysqlclient.so.18 ã¯å ¥ã£ã¦ãã
- 欲ããã®ã¯libmysqlclient.so.16
ã¨ããããã·ã³ããªãã¯ãªã³ã¯ã§ã
# ln -s /usr/lib64/libmysqlclient.so /usr/lib64/libmysqlclient.so.16
ã¨ããã¨postfixãåãã
MySQLã®ãã¦ã³ãã¼ããµã¤ãã«ãã
Connector/C 6.0.2
ã§ãlibmysqlclientã¯å
¥æã§ãããã§å±éãã¦è¦ã¦ã¿ããã ãã©
libmysqlclientã®ãã¼ã¸ã§ã³ã解ããªããã ããã»ã»ã»
ï¼ã²ãã£ã¨ãããããã16ã§ã¯ãªããã¨æããã ãã©ï¼
# ls -la mysql-connector-c-6.0.2-linux-glibc2.3-x86-64bit/lib/
åè¨ 12756
drwxr-xr-x. 2 root root 4096 12æ 20 19:28 2011 .
drwxr-xr-x. 5 root root 4096 12æ 20 19:28 2011 ..
lrwxrwxrwx. 1 7158 wheel 14 12æ 20 19:28 2011 libmysql.so -> libmysql.so.16
lrwxrwxrwx. 1 7158 wheel 18 12æ 20 19:28 2011 libmysql.so.16 -> libmysql.so.16.0.0
-rwxr-xr-x. 1 7158 wheel 4851331 8æ 8 01:48 2009 libmysql.so.16.0.0
-rw-r--r--. 1 7158 wheel 8199192 8æ 8 01:49 2009 libmysqlclient.a
lrwxrwxrwx. 1 7158 wheel 11 12æ 20 19:28 2011 libmysqlclient.so -> libmysql.so
lrwxrwxrwx. 1 7158 wheel 11 12æ 20 19:28 2011 libmysqlclient_r.so -> libmysql.so
ã¾ãä»ã«mysql-libsã«ä¾åããã©ã¤ãã©ãªãåºã¦ãããã©ããããããªãã»ã»ã»
追è¨ã
ãã£ã±ãæ°æã¡æªãã®ã§
http://pkgs.org/download/libmysqlclient.so.16(libmysqlclient_16)(64bit)
ãã®è¾ºãããmysqlclientã®rpmãè½ã¨ãã¦å
¥ãã¾ããã
追è¨ãã®ï¼ã(2012/04/24)
MySQLã®rpmãæ´æ°ããã¦ã5.5.23ããã¯ãããªãã¨ããªãã¦è¯ããªã£ãããã§ãã
@nakashii_ ãããããã°ã«æ¸ããã¦ãã¾ãã
http://oopsops.hatenablog.com/entry/2012/04/24/214759