0
我已經更新了我的紅寶石版本2.0.0 RVM。然後安裝mysql2寶石不能要求mysql2與ruby2
-> % gem install mysql2
Building native extensions. This could take a while...
Successfully installed mysql2-0.3.13
1 gem installed
Installing ri documentation for mysql2-0.3.13...
Building YARD (yri) index for mysql2-0.3.13...
Installing RDoc documentation for mysql2-0.3.13...
之後,我試圖要求IRB mysql2
。但它會導致以下錯誤!
-> % irb
2.0.0p247 :001 > require 'mysql2'
LoadError: cannot load such file -- mysql2/mysql2
from /home/sayuj/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/custom_require.rb:36:in `require'
from /home/sayuj/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/custom_require.rb:36:in `require'
from /home/sayuj/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `<top (required)>'
from /home/sayuj/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/custom_require.rb:60:in `require'
from /home/sayuj/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/custom_require.rb:60:in `rescue in require'
from /home/sayuj/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/custom_require.rb:35:in `require'
from (irb):1
from /home/sayuj/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `<main>'
我該如何解決這個問題。請幫助我。