[Ruby on Rails Issue] When Setting Sqlite version is on the gemfile, Show error "A error occurred while installing Sqlite3",

Source: Internet
Author: User
Tags ruby on rails

Issue:

Gem files would 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 the them by running (possibly with sudo):
Apt-get Install Libsqlite3-dev

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

Gem install [your local gem path]

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

[Ruby on Rails Issue] When Setting Sqlite version is on the gemfile, Show error "A error occurred while installing Sqlite3",

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.