On Thu, Feb 9, 2012 at 12:19 PM, Karthikeyan Venkatraman <
[email protected]> wrote:

> After installing $gem update mysql2, I am getting the error message when I
> do $bundle install
>
> "Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
> extension.
>        /usr/bin/ruby1.8 extconf.rb --with-mysql-config=/var/lib/mysql/
> extconf.rb:10: command not found: /var/lib/mysql/ --cflags
> *** 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=/usr/bin/ruby1.8
>        --with-mysql-config
>
> Gem files will remain installed in
> /root/blog/mysql/ruby/1.8/gems/mysql-2.8.1 for inspection.
> Results logged to
> /root/blog/mysql/ruby/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
> An error occured while installing mysql (2.8.1), and Bundler cannot
> continue.
> Make sure that `gem install mysql -v '2.8.1'` succeeds before bundling."
>
> I tried to install all sorts of library files related to mysql. Also
> reinstalled several times $gem install mysql -v '2.8.1' with the syntax
> --with-mysql-config.
>
> Pl advice to overcome the problem.
>
>    Install the following package

   $ sudo apt-get install libmysqlclient-dev

   Then try doing bundle. I hope this should help.


>
> --
Regards
Ramachandran
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to