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.
Thanks,
V. Karthick
On Wed, Feb 8, 2012 at 7:04 PM, Ramachandran V <[email protected]>wrote:
> On Wed, Feb 8, 2012 at 4:02 PM, Karthikeyan Venkatraman <
> [email protected]> wrote:
>
> > When I do gem install mysql -v '2.8.1' no errors. The output is
> >
> > "Building native extensions. This could take a while...
> > Successfully installed mysql-2.8.1
> > 1 gem installed
> > Installing ri documentation for mysql-2.8.1...
> > Installing RDoc documentation for mysql-2.8.1..."
> >
> > When I do bundle install in the created blog I am getting an error
> message
> > \
> >
> > "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."
> > and also Iam getting an unique error when I run the command $rake
> db:create
> >
> > Pl advice.
> >
> > Try this
>
> gem install mysql2
>
> and do a bundle
>
>
> > --
> Regards
> Ramachandran
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
--
Thanks,
V. Karthick
My Experience shared in : http://vkarthickeyan.wordpress.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc