I''ve found other online references to this error: ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. ruby extconf.rb install mysql checking for mysql_query() in -lmysqlclient... no ... blah blah The most apparently relevant is old, though, from November 2005 <http://www.rubyforums.com/showthread.php?p=462> blaming gcc4. Is this still the case? Does anyone know of an alternative workaround? Unfortunately I only have gcc4.0.2 on this system (SuSE 10.0 64bit). TIA, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
i use debian and i faced with the same problem. i installed the mysql-lib-dev package and that solved this problem. you can try this way. Hassan Schroeder wrote:> I''ve found other online references to this error: > > ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) > ERROR: Failed to build gem native extension. > > ruby extconf.rb install mysql > checking for mysql_query() in -lmysqlclient... no > ... blah blah > > The most apparently relevant is old, though, from November 2005 > <http://www.rubyforums.com/showthread.php?p=462> > blaming gcc4. > > Is this still the case? Does anyone know of an alternative workaround? > Unfortunately I only have gcc4.0.2 on this system (SuSE 10.0 64bit). > > TIA, > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 7/22/07, Bahadır Doğan <rails-mailing-list@andreas-s.net> wrote:> i use debian and i faced with the same problem. i installed the > mysql-lib-dev package and that solved this problem.No, I already have all the dev header stuff; what version(s) of gcc are on your system? Or more to the point, which did you use to compile? -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I didn''t compile it. i get mysql-dev-lib using "apt-get" utility and then installed mysql gem with "gem install mysql". all is that. Hassan Schroeder wrote:> On 7/22/07, Bahad�r Do�an <rails-mailing-list-ARtvInVfO7m5VldFQK4jKA@public.gmane.orgt> wrote: > >> i use debian and i faced with the same problem. i installed the >> mysql-lib-dev package and that solved this problem. > > No, I already have all the dev header stuff; what version(s) of gcc are > on your system? Or more to the point, which did you use to compile? > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 7/22/07, Bahadır Doğan <rails-mailing-list@andreas-s.net> wrote:> > I didn't compile it. i get mysql-dev-lib using "apt-get" utility and > then installed mysql gem with "gem install mysql". all is that.'gem install mysql' uses gcc -- what do you get from `which gcc`? -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
dnstevenson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jul-24 01:32 UTC
Re: gem install mysql fails
Here''s what I do on my Centos 4/5 boxes. After installing mysql and mysql-devel (using yum), I do this: gem install mysql (let it fail) cd /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config make && make install from gem directory Hope this helps, Dave http://www.stevensonsoftware.com - affordable VPS Hosting http://www.gotossh.com - web based SSH On Jul 22, 8:35 pm, "Hassan Schroeder" <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 7/22/07, Bahadır Doğan <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > I didn''t compile it. i get mysql-dev-lib using "apt-get" utility and > > then installed mysql gem with "gem install mysql". all is that. > > ''gem install mysql'' uses gcc -- what do you get from `which gcc`? > > -- > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
for CentOS, yum installmysql-devel gem install mysql -- --with-mysql-config=/usr/bin/mysql_config Dave Stevenson wrote:> Here''s what I do on my Centos 4/5 boxes. After installing mysql and > mysql-devel (using yum), I do this: > > gem install mysql (let it fail) > cd /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 > ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config > make && make install from gem directory > > Hope this helps, > > Dave > http://www.stevensonsoftware.com - affordable VPS Hosting > http://www.gotossh.com - web based SSH > > > > On Jul 22, 8:35 pm, "Hassan Schroeder" <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 7/23/07, dnstevenson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <dnstevenson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> gem install mysql (let it fail) > cd /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 > ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config > make && make install from gem directory! Thanks, that /seemed/ to work, in the sense that no error messages were generated :-) However, when I do a `gem query --local` there''s no ''mysql'' in the list -- is that normal? Having gotten this far I''d like to see the documentation and run the unit tests... -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---