Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7660505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:28:32+00:00 2026-05-31T13:28:32+00:00

I have a very recurrent problem here. (it happens literally all the time). I

  • 0

I have a very recurrent problem here. (it happens literally all the time). I have found ways to go around it but i really would appreciate a solution for this problem:

Here is how it goes:

At my development machine, i have in my gem file a line like this:

gem "sqlite3-ruby", :require => "sqlite3"

what happens is that, when i bundle install –no-deployment, it goes alright:

Using sqlite3 (1.3.5)
Using sqlite3-ruby (1.3.3)
Updating .gem files in vendor/cache
Your bundle is complete! It was installed into ./vendor/bundle

But then, in the deployment, running bundle install –deployment, i get:

Using sqlite3-ruby (1.3.3)
Updating .gem files in vendor/cache
Your bundle is complete! It was installed into ./vendor/bundle

… which causes require errors that makes the application crash.. Then, what i do is bundle install –no-deployment at the deployment machine. Then i run again bundle install –deployment and then, magically:

Using sqlite3 (1.3.5)
Using sqlite3-ruby (1.3.3)
Updating .gem files in vendor/cache

And then the application runs fine.

So, what i most basically want is that bundler recognizes the sqlite3 dependency on sqlite3 gem

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:28:33+00:00Added an answer on May 31, 2026 at 1:28 pm

    But then, in the development, running bundle install –deployment, i get:

    Okay, this is the first suspicious thing. Why would you run --deployment in development?

    You generally don’t want to do that. If you’re switching all the time between “–deployment” and “–no-deployment” on the same machine, it’s easy to get things confused, yes.

    Running “bundle install –deployment” will save something in the .bundle/config file in your project, that tells bundler “from here on out, only install these certain gems”. “–no-deployment” removes that again, in case you made a mistake or need to hack around. But in general, you shouldn’t need to and don’t want to always be switching back and forth. Run --deployment on your production/deployment machine, don’t run it on your development machine. You don’t ever need to run --no-deployment unless you made a mistake and didn’t mean --deployment

    At this point, I’d rm -rf .bundle (it’s okay, it’ll just remove all the things bundler ‘remembers’ about what you want to do, like --deployment), and start over with bundle install.

    If there’s some reason this doesn’t work, then that’s the question.

    From the line Updating .gem files in vendor/cache, I suspect at some point you also ran bundle package, which is another thing that’s “remembered” in the .bundle/config thing, and is also probably interacting with your other commands oddly and doing things you don’t expect. Removing your .bundle/config will get rid of that remembered setting too. (you may also need to delete your ./vendor/cache directory contents)

    Just run bundle install unless you have a reason you understand for needing package, and understand what it does. Or it’ll confuse you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have very strange problem, one of our applications is continually querying server by
i have very simple problem. I need to create model, that represent element of
I have very little experience using Sharepoint but a good amount using Visual Studio
I have very general problem on DNN 6.0 web site that I am working
I have very strange problem specific to IE (confirmed in v8 and v9). When
I have very small and quick question. Is it neceseary for all the developers
Have seen some conversations revolving around this, but hoping for some current input as
I have very big solution, and it compiling every time I'm tring to debug.
I have a recurrent chunk of code where I loop over all the members
I have very specific problem running PHP as Apache 2.2 module. When running PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.