Ashvin Gargave
2012-Dec-25 14:40 UTC
ERROR : An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
I am a php programmer, learning ruby on rails I am using ubuntu 10.10. i am not so fine with linux. i have installed ruby, gems etc. I want to make app with using mysql. I have used *$ rails new clogs_web_app -d mysql* to make app but the process stops with this statement *Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.* it give me error : * An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue. Make sure that `gem install mysql2 -v ''0.3.11''` succeeds before bundling.* Please help me to gatting out. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/bJfu2qeOSIgJ. For more options, visit https://groups.google.com/groups/opt_out.
Hassan Schroeder
2012-Dec-25 17:42 UTC
Re: ERROR : An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
On Tue, Dec 25, 2012 at 6:40 AM, Ashvin Gargave <ashvin.gargave-DJvAs9aYWq8WQnjQ7V0W7w@public.gmane.org> wrote:> ERROR: Failed to build gem native extension. > it give me error : > An error occurred while installing mysql2 (0.3.11), and Bundler cannot > continue. > Make sure that `gem install mysql2 -v ''0.3.11''` succeeds before bundling.I''ll bet that message also referenced a log file for the installation process; have you looked at it? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Norbert Melzer
2012-Dec-25 18:34 UTC
Re: ERROR : An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
You need to install ruby-Dev and mysql-Dev packages. sudo apt-get install ruby-Dev mysql-dev Could also be Devel instead of Dev, not sure about that at the moment. Also it may be that you have to purge and reinstall ruby after that to get it working. This part is covered in any ruby with Ubuntu tutorial I am aware of. Another one is that you really shouldn''t use 10.10 any more. 12.04 is the latest Ubuntu with Long Term Support. 10.10 not supported anymore as far as I remember. Am 25.12.2012 17:46 schrieb "Ashvin Gargave" <ashvin.gargave-DJvAs9aYWq8WQnjQ7V0W7w@public.gmane.org>:> I am a php programmer, learning ruby on rails > I am using ubuntu 10.10. i am not so fine with linux. > i have installed ruby, gems etc. > I want to make app with using mysql. > > I have used *$ rails new clogs_web_app -d mysql* to make app but > the process stops with this statement *Gem::Installer::ExtensionBuildError: > ERROR: Failed to build gem native extension.* > it give me error : * > An error occurred while installing mysql2 (0.3.11), and Bundler cannot > continue. > Make sure that `gem install mysql2 -v ''0.3.11''` succeeds before bundling.* > > Please help me to gatting out. > Thanks in advance > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/bJfu2qeOSIgJ. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Hassan Schroeder
2012-Dec-25 22:12 UTC
Re: ERROR : An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
On Tue, Dec 25, 2012 at 10:34 AM, Norbert Melzer <timmelzer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Another one is that you really shouldn''t use 10.10 any more. 12.04 is the > latest Ubuntu with Long Term Support.It might have "Long Term Support" but it also includes "Regular File System Corruption" :-) Based on personal experience (substantiated by Rackspace Cloud support as well as a bit of googling...). FWIW, YMMV, etc. -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Maybe Matching Threads
- An error occured while installing mysql2 (0.3.11), and Bundler cannot continue.
- Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?
- Need Some Guides on Solr with Rails.
- Rails and MySQL
- Bundler - how to re-install all gems after os update?