ubuntu 升到10.04 后 mysql报错

ubuntu 升到10.04 后 mysql报错

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant MysqlCompat::MysqlRes (NameError)

我机器上的 mysql 为系统带的msql,更新ubuntu时 mysql也被更新

 

解决方案:

 

sudo gem uninstall mysql
 
sudo apt-get install libmysqlclient15-dev

 

sudo gem install mysql
 

 

 

 

 

 

你可能感兴趣的:(mysql,ubuntu,Ruby)