You probably need to include the double-hypen if you need to pass options to the gem:
gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config Darian Shimy -- http://www.darianshimy.com http://twitter.com/dshimy On Wed, Nov 25, 2009 at 8:46 PM, dwhitekiss <[email protected]> wrote: > Hi, > > I've setting up my ROR environemtn in Ubuntu linux, however, I'm > having difficulties when installing the mysql driver: > > # gem install mysql > Building native extensions. This could take a while... > ERROR: Error installing mysql: > ERROR: Failed to build gem native extension. > > /usr/bin/ruby1.8 extconf.rb > extconf.rb:10:in `require': no such file to load -- mkmf (LoadError) > from extconf.rb:10 > > > Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ > mysql-2.8.1 for inspection. > Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/ > mysql_api/gem_make.out > > > Not sure how to deal with the last paragraph. > > I googled about the error and tried the suggested > gem install mysql --with-mysql-config=/usr/local/mysql/bin/ > mysql_config > > but did not work. > > Please help! > > D > > -- > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

