I''ve installed rails (and it works) and now I want to be able to connect to a mysql database. The database.yml file tells me to install the mysql drivers by typing: gem install mysql This is the error I receive: Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Any help is greatly appreciated! Thank you! jmvbxx is online now Edit/Delete Message -- Posted via http://www.ruby-forum.com/.
What platform is this on? -------------------------------------------------- Peter Wright froogle@tinfoilcat.net Personal Blog -> http://peterwright.blogspot.com Agile Development Blog -> http://exceeding-expectations.blogspot.com On 7 Jul 2006, at 02:31, jmvbxx wrote:> I''ve installed rails (and it works) and now I want to be able to > connect > to a mysql database. > > The database.yml file tells me to install the mysql drivers by typing: > > gem install mysql > > This is the error I receive: > > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > Any help is greatly appreciated! Thank you! > jmvbxx is online now Edit/Delete Message > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060707/9e8fad6c/attachment-0001.html
Try this: sudo gem install mysql -- --with-mysql-config I had the same problem and it worked for m. Thank You, Ben Johnson E: bjohnson@contuitive.com On Jul 7, 2006, at 2:44 PM, Pete Wright wrote:> What platform is this on? > -------------------------------------------------- > Peter Wright > froogle@tinfoilcat.net > > Personal Blog -> http://peterwright.blogspot.com > Agile Development Blog -> http://exceeding-expectations.blogspot.com > > > > > On 7 Jul 2006, at 02:31, jmvbxx wrote: > >> I''ve installed rails (and it works) and now I want to be able to >> connect >> to a mysql database. >> >> The database.yml file tells me to install the mysql drivers by >> typing: >> >> gem install mysql >> >> This is the error I receive: >> >> Could not create Makefile due to some reason, probably lack of >> necessary libraries and/or headers. Check the mkmf.log file for more >> details. You may need configuration options. >> >> Any help is greatly appreciated! Thank you! >> jmvbxx is online now Edit/Delete Message >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060707/fb65a1e2/attachment.html