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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:33:13+00:00 2026-05-27T07:33:13+00:00

When I do Bundle Install, I get following error: Installing mysql2 (0.3.10) with native

  • 0

When I do Bundle Install, I get following error:

Installing mysql2 (0.3.10) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /Users/manish/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb 
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... 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.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/manish/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
--with-mysql-config
--without-mysql-config
extconf.rb:33:in ``': No such file or directory - /usr/local/bin/mysql_config --cflags    (Errno::ENOENT)
from extconf.rb:33:in `<main>'


Gem files will remain installed in /Users/manish/.rvm/gems/ruby-1.9.2-p290/gems/mysql2- 0.3.10 for inspection.
Results logged to /Users/manish/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-  0.3.10/ext/mysql2/gem_make.out
An error occured while installing mysql2 (0.3.10), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.10'` succeeds before bundling.

In the Gemfile MySql is something like this:

gem "mysql2", ">=0.3.0"

And when I also try to install MySql using brew followed with sudo it gives following error:

 sudo: unable to execute /usr/local/bin/brew: Permission denied

How can I resolve 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-27T07:33:14+00:00Added an answer on May 27, 2026 at 7:33 am

    I found my solution and here it is:

    Step 1: Clean Up your previously installed rvm and Xcode

        => rm -rf ~/.rvm    
        => sudo rm -rf /Developer
    

    Step 2: Install Xcode from App Store or the installer might be saved in your Launchpad.

    Step 3: Install HomeBrew:

        => mkdir -p /usr/local/Cellar
        => /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
    

    Step 4: Install RVM

        => bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
        => echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" #  Load RVM function' >> ~/.bash_profile
    

    Step 5: Install Ruby 1.9.2

        => rvm install 1.9.2
        => rvm use ruby-1.9.2 --default
        => gem install rails thin bundler
        => rvm install 1.9.2-head
        => brew install git ack wget curl redis memcached libmemcached colordiff imagemagick
    

    Step 6: Install MySql

        => brew install mysql
        => mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
        => mkdir -p ~/Library/LaunchAgents
        => cp /usr/local/Cellar/mysql/5.5.15/com.mysql.mysqld.plist ~/Library/LaunchAgents/
        => launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
        => mysql -u root
        => UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
        => FLUSH PRIVILEGES;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When i enter bundle install I get the error '-bash: bundle: command not found'.
When I run 'rails server' I get the following error: Could not find gem
I am trying to install gems using the following: gem install bundler && bundle
I get the following error while trying to install PMD, Find Bugs, Lint4j etc.
Following instructions from http://web2linux.com/installing-rails-3-on-ubuntu-10-04-lucid-lynx/ I get to the following line: rvm install 1.9.2 returns:
I'm trying to install OEPE from the site: http://download.oracle.com/otn_software/oepe/ganymede But I get the following
while running rake db:migrate i get the following error : rake db:migrate (in /Users/hrastogi/ruby_project/contactlist)
After heroku rake db:migrate I get the following error: rake aborted! no such file
WhenI run (as root) gem install pg -v '0.12.0' -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config I get the
Is there a way to bundle PowerShell such that I don't have to install

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.