Would you like to answer one of these unanswered questions instead? MOD Maciej Czuchnowski Treehouse Moderator 27,402 Points Maciej Czuchnowski Maciej Czuchnowski Treehouse Moderator 27,402 Points almost 2 years ago You're using Windows, so this will be the first hurdle in Rails This could take a while... I've also tried executing command from error message (gem install mysql2 -v '0.3.17') but of course this also failed with same result. this contact form
To tell Rails to use mysql2, you have to remove sqlite3 from gemfile and add the mysql2 gem in its place. share|improve this answer answered Oct 16 '10 at 12:40 arty 51142 add a comment| up vote 3 down vote This solved my problem once in Windows: subst X: "C:\Program files\MySQL\MySQL Server How exactly does the typical shell "fork bomb" calls itself twice? Normal ActiveRecord calls would go in here, e.g.
Also, I needed to do first type this: yum install mysql-devel and then: gem install mysql For some people you may need to type: gem install mysql -- --with-mysql-config=/usr/local/mysql/mysql_config share|improve this I'm using arch and it was: sudo pacman -S base-devel which installed: m4, autoconf, automake, bison, fakeroot, flex, libmpc, ppl, cloog-ppl, elfutils, gcc, libtool, make, patch, pkg-config but I think it You may need configuration options. ...
Gem files will remain installed in /home/pi/.gem/ruby/2.1.5/gems/mysql2-0.3.17 for inspection. Not the answer you're looking for? Setup your database credentials in config/database.yml: development: adapter: mysql2 encoding: utf8 database: myapp_development pool: 5 username: someuser password: somepassword Run rake db:create db:migrate --trace from the command line to make sure Gem Install Mysql2 Fails Centos no checking for mysql.h...
These are how you should be managing the structure of your database within a rails app. Gem Install Mysql2 Fails I have tried the following commands: sudo gem install mysql sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config I get the following message for each: Building native extensions. asked 6 years ago viewed 86248 times active 6 months ago Visit Chat Linked 26 When i try sudo gem install json I get the following error 9 gem install mysql http://stackoverflow.com/questions/2167598/mysql-install-error-failed-to-build-gem-native-extension So...
Why can't we use the toilet when the train isn't moving? this website Karger's Algorithm question When to use "bon appetit"? Gem Install Mysql2 Ubuntu How to deal with sewage on a map with no water anywhere Flow Chart with tikzpicture: particular tipes of arrows more hot questions question feed about us tour help blog chat Gem Mysql mysql ruby rubygems gem share|improve this question asked Jan 16 '10 at 1:35 Andrew 5,277245375 add a comment| 3 Answers 3 active oldest votes up vote 27 down vote accepted Thanks
I google and tried the below but still the same error. weblink more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out I've read on a lot of forums that installing MySQL client libraries (libmysqlclient-dev) helps fix the above issue, but it does for me. The transformation T on the set of all continuous functions that is defined by T(f) = f (1) is a linear transformation. Gem Install Mysql2 With Mysql Config
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. Sign into your account, or create a new one, to start interacting. Why does this execution plan have Compute Scalars? navigate here Share on Twitter Replace previous answer?
My server was running perfectly fine until I updated my xcode. Unable To Locate Package Libmysql-ruby But there was warning before it saying Warning: You have not agreed to the Xcode license. share|improve this answer answered May 25 '11 at 22:48 Kelsin 68567 3 I'm getting error even after doing this.
That may be all you need to fix it. no extconf.rb failed Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. I guess you can reproduce this by creating a new temporary droplet Ubuntu 14.04 with ruby and rails Reply Log In to Comment 0 bonnet.benjamin November 21, 2014 thanks for the Add Gem Mysql2 To Your Gemfile And Ensure Its Version Is At The Minimum Required By Activerecord Share it with others to increase its visibility and to get it answered quickly.
EDIT EDIT I've just completely reinstalled MySQL using this guide http://hivelogic.com/articles/installing-mysql-on-mac-os-x Unfortunately this didn't work either, I still receive the same errors. It's working now!!! I have one additional question: where is the database information being stored? his comment is here asked 6 years ago viewed 15687 times active 5 years ago Related 0How to install/update Ruby on Rails on Ubuntu 9.10?6How to configure installed Ruby and gems?5Ruby RubyGems: Why do I