Hi all, I run into a problem whilst installing the mysql gem on a debian box and not sure what I need to do. Cheers, Paul root@a:/tmp# gem install mysql Attempting local installation of ''mysql'' Local gem file not found: mysql*.gem Attempting remote installation of ''mysql'' Select which gem to install for your platform (i386-linux) 1. mysql 2.7.2006.05.10 (mswin32) 2. mysql 2.7.2006.04.21 (mswin32) 3. mysql 2.7 (ruby) 4. mysql 2.6 (ruby) 5. mysql 2.5.1 (ruby) 6. Cancel installation> 3Building native extensions. This could take a while... extconf.rb:1:in `require'': no such file to load -- mkmf (LoadError) from extconf.rb:1 ERROR: While executing gem ... (RuntimeError) ERROR: Failed to build gem native extension. Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection. ruby extconf.rb install mysql\n Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out root@a:/tmp# gem list *** LOCAL GEMS *** actionmailer (1.2.1) Service layer for easy email delivery and testing. actionpack (1.12.1) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.1.2) Web service support for Action Pack. activerecord (1.14.2) Implements the ActiveRecord pattern for ORM. activesupport (1.3.1) Support and utility classes used by the Rails framework. rails (1.1.2) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.1) Ruby based make-like utility. sources (0.0.1) This package provides download sources for remote gem installation -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060617/6ea04ec7/attachment.html
On Jun 17, 2006, at 4:52 AM, Paul Ardeleanu wrote:> Hi all, > > I run into a problem whilst installing the mysql gem on a debian > box and not sure what I need to do. > > Cheers, > Paul > > > root@a:/tmp# gem install mysql > Attempting local installation of ''mysql'' > Local gem file not found: mysql*.gem > Attempting remote installation of ''mysql'' > Select which gem to install for your platform (i386-linux) > 1. mysql 2.7.2006.05.10 (mswin32) > 2. mysql 2.7.2006.04.21 (mswin32) > 3. mysql 2.7 (ruby) > 4. mysql 2.6 (ruby) > 5. mysql 2.5.1 (ruby) > 6. Cancel installation > > 3 > Building native extensions. This could take a while... > extconf.rb:1:in `require'': no such file to load -- mkmf (LoadError) > from extconf.rb:1 > ERROR: While executing gem ... (RuntimeError) > ERROR: Failed to build gem native extension. > Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ > mysql- 2.7 for inspection. > ruby extconf.rb install mysql\n >OK try this instead: $ sudo gem install mysql -- --with-mysql-config make sure you have both sets of -- they are both needed. -Ezra