今天遇到一个很狗血的问题...我在CentOS6下安装有MYSQL5.5.18的数据库,但是后来发现crontab居然没有安装,于是乎就yum install vixie-cron crontabs了一把,但是居然一直报了如下异常:
file /usr/share/mysql/charsets/README from install of mysql-libs-5.1.61-4.el6.i686 conflicts with file from package MySQL-server-5.5.18-1.linux2.6.i386 file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.61-4.el6.i686 conflicts with file from package MySQL-server-5.5.18-1.linux2.6.i386 file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.61-4.el6.i686 conflicts with file from package MySQL-server-5.5.18-1.linux2.6.i386 file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.61-4.el6.i686 conflicts with file from package MySQL-server-5.5.18-1.linux2.6.i386
于是我果断卸载掉MYSQL5.5(我在测试环境下做的,生产环境建议使用别的方法),然后安装crontab,再重新安装MYAQL,本以为这样可以很顺利的解决问题的,结果,杯具的是,再次遇到上述同样的问题...只是这回是反过来了,汗!
file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.18-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686 file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.18-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686 file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.18-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686 file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.5.18-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
注意,一定要加:--nodeps,否则也会将crontab等依赖卸掉,这样就不是我们的初衷了。
然后继续安装MYSQL,最后,检查测试MYSQL和crontab,都可以正常工作了,唉...你说这CentOS6咋这样呢.....
其他解决方法我也暂时没找到,也没时间去找了,如果有知道的,也请告知,谢谢:)