Hi Kedar, I am certainly no expert, but I suffered with the error for several days too.
I think you need more information on your install line. I used for OSX 10.5 sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/ mysql_config from: http://www.scribemedia.org/2009/01/02/installing-mysql-gem-on-mac-osx-105/ I have included the other links I browsed on the way to the solution too. There is likely a path difference with Ubuntu, but maybe this will help. Eric http://discuss.joyent.com/viewtopic.php?id=5992 sudo gem install mysql -- --with-mysql-include=/usr/local/mysql/ include/ with-mysql-lib=/usr/local/mysql/lib/ • A similar change (when rebuilding mysql) was required to install the mysql gem: ◦ ./configure --prefix=/web/pkg/mysql/mysql ... CPPFLAGS='-fPIC' ◦ • Installing the mysql gem also required an additional option to help it find the libraries ◦ sudo gem install mysql -- --with-mysql-config=/web/pkg/mysql/ current/bin/mysql_config I also looked here. http://pjforpresident.com/2008/06/20/compiling-mysql-native-bindings-on-os-x-macports/ http://blog.bmn.name/2008/02/rails-gem-install-mysql-throws-error-extconfrb-failed/ http://blog.springenwerk.com/2008/11/rails-22-and-native-mysql-gem-on-mac-os.html On Jan 19, 2009, at 9:29 PM, Kedar Mhaswade wrote: > > - I press on. > - ke...@kedar-laptop:~/Projects/ror/people$ sudo gem install mysql > [sudo] password for kedar: > Building native extensions. This could take a while... > ERROR: Error installing mysql: > ERROR: Failed to build gem native extension. > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

