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 3974874
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:37:09+00:00 2026-05-20T04:37:09+00:00

I have a problem that seems very related to that in another post, but

  • 0

I have a problem that seems very related to that in another post, but I don’t understand the solution that was arrived at. I am new to Rails, and have put together a Rails 3 app. I am developing in Windows am trying to deploy it to my (shared) Redhat Linux server via git and capistrano, and using Passenger to serve the pages. The deployment process goes fine, but when I try to look at the webpage I get a Passenger error:

!!! Missing the mysql gem. Add it to your Gemfile: gem 'mysql', '2.8.1'.  

In fact, I have added the corresponding line to my Gemfile, and doing a ‘gem list’ on the server shows that it is there.

In this post, the user helpfully noted exactly the same problem and observed that the Gemfile.lock has the gem for Windows, i.e.

mysql (2.8.1-x86-mingw32).  

This is exactly the same in my Gemfile.lock, and so I imagine the same issue is happening for me; one can see that this is the gem in vendor/cache and vendor/bundle.

However, I don’t understand how the proposed fix from that post is supposed to work. I can edit the mysql line in Gemfile.lock to be mysql (2.8.1), but then I get a different Passenger error that says

Can't find mysql-2.8.1 in any of the sources.

How can I fix this?

  • 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-20T04:37:10+00:00Added an answer on May 20, 2026 at 4:37 am

    In case someone encounters the same problem, here are some things I did that made it work. I don’t understand enough of what was going on to know exactly what did the trick.

    First, in the Gemfile, I specified that we wanted both ruby and windows versions of the relevant gems.

    gem 'sqlite3-ruby', "~> 1.2.5", :platforms => [:mswin, :ruby_18]

    gem 'mysql', "2.8.1", :platforms => [:mswin, :ruby_18]

    Then on the production server, after using “cap deploy”, I removed the gem mysql-2.81-x86-mingw32 from both vendor/bundle and vendor/cache. My production server lets me ‘gem install mysql’ and ‘gem install sqlite3-ruby’ but puts it elsewhere in my home directory; I copied these into vendor/bundle and vendor/cache. I edited the Gemfile.lock to change the line ‘mysql (2.8.1-x86-mingw32)’ to ‘mysql (2.8.1)’. ‘bundle install’ on the production server then seems to install the linux native gems (at least it says ‘building native extensions’).

    After all this, it seems to work.

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

Sidebar

Related Questions

I have an issue that seems like very flaky behavour, is this a problem
I'm facing a problem that seems to have no straighforward solution. I'm using java.util.Map
Seems to be a problem that many people have, but all the answers I
I have a very simple C# DataTable problem that I cannot seem to wrap
I have a problem that seems so senseless that I'm sure I'm missing something
I have a problem that I have not faced before: It seems that the
I have a problem with something that otherwise seems to be an easy task.
Had a problem with the recursive conflictCheck() method. That seems fine now. I have
This seems like a simple problem: I have a WF4 activity that guides the
I have a problem that I have found many similar problems related to multi

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.