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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:24:51+00:00 2026-05-23T07:24:51+00:00

I created a VM running the latest Ubuntu because it was causing so many

  • 0

I created a VM running the latest Ubuntu because it was causing so many problems on my Windows machine.

I got RVM installed, have versions 1.8.7 and 1.9.2 setup with 1.9.2 as the default. I installed gems, installed Rails.

If I try to do anything with Rails (generate, server, etc.) I get this error:

You have requested: mysql2 ~> 0.2.6

The bundle currently has mysql2 locked
at 0.2.6. Try running bundle update
mysql2

First problem, my rails app isn’t even using mysql. It’s using SQLite.
Anyway, I run bundle update mysql2 like it says…and I get a bunch of errors. The start of them is this:

Installing mysql2 (0.2.6) with native extensions /home/jamesw/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

        /home/jamesw/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb 
checking for rb_thread_blocking_region()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

I am not good with server setup and things like this. I am an OS X user, but didn’t have to deal with any of this on OS X. Can anyone point me in the right direction?

  • 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-23T07:24:52+00:00Added an answer on May 23, 2026 at 7:24 am

    Look in the Gemfile and see if there is a line that looks like either of the following.

    gem "mysql2"
    gem "mysql2", 0.2.6
    

    If there are, comment out or delete these lines, remove Gemfile.lock and run bundle install again.

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

Sidebar

Related Questions

I have an app.Config that was created on the dev machine running Windows 7.
I am running ubuntu server with Subversion 1.6.6. In windows I use the latest
I've installed the latest version of CakePHP on a Ubuntu 10.10 machine. I was
I just got the latest Xcode 4.2 and I am running into problems with
I have two users Bob and Alice in Oracle, both created by running the
I'm running MOSS 2007 and have created a new site under an existing one
I have created a workflow, and Im running it via WorkflowInstance.Run(). This workflow has
I'm running Windows 7, Python 2.6.4 and the latest version of Eclipse. I downloaded
I have installed the latest JBoss AS 7 (7.0.2) and installed the eclipse tools
I have a fluent nhibernate configuration in my app. Running latest of both. I

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.