目前我正在试图安装mysql2宝石,红宝石1.8.7和Mac 10.6.6和mysql 64位之下,这样我就可以使用的Rails 3和MySQL在一起。安装mysql2宝石红宝石1.8.7的Mac OSX 10.6
当我做了命令:
sudo gem install mysql2
我得到:
Building native extensions. This could take a while... Successfully installed mysql2-0.2.6 1 gem installed Installing ri documentation for mysql2-0.2.6... Enclosing class/module 'mMysql2' for class Client not known Enclosing class/module 'mMysql2' for class Result not known Installing RDoc documentation for mysql2-0.2.6... Enclosing class/module 'mMysql2' for class Client not known Enclosing class/module 'mMysql2' for class Result not known
我做了很多的建议在这里所以这个问题的事情,但似乎没有什么帮助。
有没有人有一个关于下一步要做什么想法?
编辑:当我尝试做耙分贝:迁移,它说:http://pastebin.com/tuPwQmqL。我也无法做rails服务器。
编辑2:设法做到这一点,谢谢!
问题是,我不能那样做。当我尝试做耙db:迁移时,它说:http://pastebin.com/tuPwQmqL。我也无法做rails服务器。 – bl00dshooter 2011-03-18 21:18:14
它是什么说..在问题 – 2011-03-18 21:18:58
耙中止它中止! dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle,9):未加载库:libmysqlclient.18.dylib 引用自:/ Library/Ruby/Gems /1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle 原因是:image not found - /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle /Users/eduardo/Sites/rsps/Rakefile:4 (使用--trace查看完整跟踪) – bl00dshooter 2011-03-18 21:19:44