-3
A
回答
2
首先做到這一點:
gem install mysql2 -- '--with-mysql-lib="c:\Program Files\MySQL\MySQL Server 5.5\lib" --with-mysql-include="c:\Program Files\MySQL\MySQL Server 5.5\include"'
然後:
bundle config build.mysql2 '--with-mysql-lib="c:\Program Files\MySQL\MySQL Server 5.5\lib" --with-mysql-include="c:\Program Files\MySQL\MySQL Server 5.5\include"'
你的路徑可能會有所不同,請檢查第一。
在你的Gemfile:
gem 'mysql2'
然後通過命令行:
bundle install
相關問題
- 1. Ruby on Rails with Xampp
- 2. Ruby on Rails with Plupload
- 3. link_to ruby on rails with additional html
- 4. If-Statement with Paperclip | Ruby on Rails
- 5. Ruby on Rails ActiveModel with Associations
- 6. Bulk onsert with Ruby on Rails
- 7. Ruby on Rails noob named_scope with datetime
- 8. Heroku with ruby on rails and Mongoid
- 9. Ruby on rails with different user types
- 10. em-websocket gem with Ruby on Rails
- 11. Android - Ruby on Rails - MySQL
- 12. ruby on rails + xampp + mysql(windows 7)
- 13. Ruby on Rails,MySQL和雪豹
- 14. 從Android到Ruby on Rails WebAPI POST with retrofit2
- 15. Ruby on Rails with Unobtrusive JavaScript - 管理URL
- 16. Ruby on Rails with JQuery可排序問題
- 17. Ruby On Rails - Simple_fields_for with nested_form,傳遞變量
- 18. Ruby ON rails- Webrick
- 19. Ruby on Rails和MySQL錯誤
- 20. Ruby On Rails上的MySQL Gem
- 21. Ruby on rails mysql搜索
- 22. Ruby on Rails - MySQL和PostGres
- 23. Ruby on Rails和遠程MySQL
- 24. Ruby on rails MYSQL查詢
- 25. Ruby on rails mysql問題
- 26. Ruby on rails $ mysql配置
- 27. Ruby on Rails用MySQL測試
- 28. Ruby on Rails/Activerecord mySQL建模
- 29. jruby jruby on rails with jdbc
- 30. Ruby on Rhodes with ajax
有什麼問題在我的Quetion? – baxri
如果我不得不猜測我會說人是-1你是因爲你的問題不顯示研究努力:) –
那個和錯誤消息告訴你到底該怎麼辦 – sevenseacat