码迷,mamicode.com
首页 > 数据库 > 详细

[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      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:style   os   io   strong   for   2014   cti   log   linux   

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 ",

标签:style   os   io   strong   for   2014   cti   log   linux   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!