Hi,
The problem solved by removing the new app created by rails and I recreated
the new blog using the command $rails new blog. Also I add the two syntax
in the Gemfile which is helped during the compilation
gem 'execjs'
gem 'therubyracer'
Thanks,
V. Karthick
On Thu, Feb 9, 2012 at 4:38 PM, Ramachandran V vramachandra...@gmail.comwrote:
On Thu, Feb 9, 2012 at 12:19 PM, Karthikeyan Venkatraman
vgkarthick...@gmail.com 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
--
Thanks,
V. Karthick
My Experience shared in : http://vkarthickeyan.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc