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

  • Home
  • SEARCH
  • 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 6954579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:37:27+00:00 2026-05-27T14:37:27+00:00

I run cap deploy and got the following problem, ** [out :: 122.248.240.239] Installing

  • 0

I run cap deploy and got the following problem,

 ** [out :: 122.248.240.239] Installing mysql2 (0.3.7)
 ** [out :: 122.248.240.239] with native extensions
 ** [out :: 122.248.240.239] 
 ** [out :: 122.248.240.239] Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
 ** [out :: 122.248.240.239] 
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
 ** [out :: 122.248.240.239] 
 ** [out :: 122.248.240.239] Gem files will remain installed in /var/www/iperpus/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.7 for inspection.
 ** [out :: 122.248.240.239] Results logged to /var/www/iperpus/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.7/ext/mysql2/gem_make.out
 ** [out :: 122.248.240.239] An error occured while installing mysql2 (0.3.7), and Bundler cannot continue.
 ** [out :: 122.248.240.239] Make sure that `gem install mysql2 -v '0.3.7'` succeeds before bundling.
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/installer.rb:80:in `rescue in install_gem_from_spec'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/installer.rb:61:in `install_gem_from_spec'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/installer.rb:50:in `block in run'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/installer.rb:49:in `run'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/installer.rb:8:in `install'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/cli.rb:219:in `install'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `run'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in `dispatch'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in `start'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/bin/bundle:13:in `<top (required)>'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/bin/bundle:19:in `load'
 ** [out :: 122.248.240.239] /home/ubuntu/.rvm/gems/ruby-1.9.2-p290/bin/bundle:19:in `<main>'

Content of Gemfile:

source 'http://rubygems.org'

gem 'rails', '3.1.0'

# Bundle edge Rails instead:
# gem 'rails',     :git => 'git://github.com/rails/rails.git'

group :development, :test do
  gem 'sqlite3'
end

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails', "  ~> 3.1.0"
  gem 'coffee-rails', "~> 3.1.0"
  gem 'uglifier'
end

gem 'jquery-rails'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

group :test do
  # Pretty printed test output
  gem 'turn', :require => false
end

gem 'execjs'
gem 'therubyracer'

gem 'devise', "1.4.7"
gem "compass", ">= 0.11.5"
gem 'haml'
gem "oa-oauth", :require => "omniauth/oauth"

gem 'mysql2'
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'

gem 'sunspot'
gem 'sunspot_rails'

Inside deploy.rb, I already added:

require "bundler/capistrano"

I use RVM 1.8.4, running on Ubuntu 10.04.
All the dependencies of MySQL have been installed.

Oddly, gem install mysql2 works! But bundle install mysql2 doesn’t works

What would be the source of the problem?

  • 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-27T14:37:28+00:00Added an answer on May 27, 2026 at 2:37 pm

    Make sure you have the client development libraries for mysql installed:

    sudo apt-get install libmysqlclient-dev

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

Sidebar

Related Questions

Each time i run on my local machine cap:deploy i get next error when
When I run cap deploy , Capistrano will attempt to create a folder such
I am receiving the following error when running a cap deploy:update failed: sh -c
Everytime I run cap deploy in the remote server I lost some unversioned files
My run of cap deploy fails, and I think it's because of a formatting
If I execute cap deploy from a workstation how can I specify custom feedback
I'm getting a strange error when running cap deploy:setup: cap deploy:setup Using ActiveModel validations.
This happens when I try to run rinari-cap: ~/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require': no such file to
In Eclipse, Run Configurations, I added additional emulator command line option -tcpdump emulator1.cap and
I'm getting a port error when I try to deploy my app via: cap

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.