Ruby On Rails 3 and Webrick issue

后端 未结 5 729
余生分开走
余生分开走 2020-12-20 03:26

Thanks for taking a look at this.

I started a beginner\'s tutorial on RoR through lynda.com. I followed the instructions to the letter. Everything was working so far

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 03:59

    I ran into the same problem as you (also attempting to go through the Lynda course), and also being a newbie I got pretty frustrated pretty quickly.

    Buuuuut, after some searching, I found and answer here I got it to work.

    First, I installed the 32-bit version of MySQL, as opposed to the 64-bit version, but I'm not sure if that made a difference.

    Then, uninstall the Mysql gem

     gem uninstall mysql2
    

    then reinstall it

    sudo gem install mysql2
    

    and finally

    sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib /Library/Ruby/Gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle
    

    and you should be good to go! Worked for me anyways. good luck!

提交回复
热议问题