Hello there, I was working on a Sinatra project when after refreshing the page (I use Shotgun), I was provided the following error:
LoadError: no such file to load -- mysql_adapter I honestly don't know what I have changed to make this happen. It was working very smoothly. I was able to put data in the MySQL database and everything. It seems that I can't install the gem dm-mysql-adapter. When trying to install this one with the following command: sudo gem install --http-proxy proxy:port dm-mysql-adapter I'm given the error: Building native extensions. This could take a while... ERROR: Error installing dm-mysql-adapter: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb checking for mysql_query() in -lmysqlclient... no *** extconf.rb failed *** 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. So I tried: sudo gem install --http-proxy proxy:port dm-mysql-adapter -- --with- mysql-dir=/usr/local/mysql --with-mysql-config=/usr/local/mysql/bin/ mysql_config But it gives me: Building native extensions. This could take a while... ERROR: Error installing dm-mysql-adapter: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-mysql-dir=/usr/local/mysql --with-mysql-config=/usr/ local/mysql/bin/mysql_config extconf.rb:3: command not found: --include *** extconf.rb failed *** 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. Please, help me on this one, I'm very frustrated because I tried everything I can think of. Reinstalled all me gems and so on. Thank you :-) -- You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en.
