首页 > 数据库技术 > 详细

[Ruby on Rails Issue] When Setting Sqlite version on the Gemfile, Show error "An error occurred while installing sqlite3 ",

时间:2014-08-25 01:10:23      阅读:326      评论:0      收藏:0      [点我收藏+]

Issue:

Gem files will remain installed in /tmp/bundler20140825-31835-p0c0p/sqlite3-1.3.9/gems/sqlite3-1.3.9 for inspection.
Results logged to /tmp/bundler20140825-31835-p0c0p/sqlite3-1.3.9/extensions/x86-linux/1.9.1/sqlite3-1.3.9/gem_make.out
An error occurred while installing sqlite3 (1.3.9), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v ‘1.3.9‘` succeeds before bundling.

Solution:

You need the SQLite3 development headers for the gem’s native extension to compile against. You can install them by running (possibly with sudo):
apt-get install libsqlite3-dev

 

-----------------------------------------------------------How to install local Gem extension File.

Gem install [your local gem path]

-----------------------------------------------------------

[Ruby on Rails Issue] When Setting Sqlite version on the Gemfile, Show error "An error occurred while installing sqlite3 ",

原文:http://www.cnblogs.com/haoliansheng/p/3933950.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!