Unable to install mysql2 gem OS X Mountain Lion

后端 未结 3 2070
悲&欢浪女
悲&欢浪女 2020-12-19 08:45

I\'m new with RoR and I\'m trying to install Mysql2 -v \'0.3.11\'. I have OS X Mountain Lion, rails 3.2.6 ,ruby 1.9.3.

Below is the error I get. I looked everywher

3条回答
  •  孤城傲影
    2020-12-19 09:04

    As Deefour said, I had to use RVM. Answer goes to him, I just couldn't comment on his answer. +1

    But rvm exec bundle install gave me an error:

    rvm do bundle install was removed, use rvm 1.9.2,1.9.3 do bundle install or rvm all do bundle install instead.

    I used sudo rvm all do bundle install and it all went flawlessly from then on.

提交回复
热议问题