目前我正在試圖安裝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