Why do the physical properties of an egg shell change when the egg shell is exposed to vinegar for a week? share|improve this answer answered Dec 13 '11 at 2:49 mmell 1,6021311 add a comment| up vote 0 down vote download the right version of mysqllib.dll then copy it to ruby bin Just please try putting '' around mysql on the database file. Is there something I'm missing? have a peek here
Is it OK to "pause" an advert in terms of SEO? It's working now!!! Are there any rules of thumb for the most comfortable seats on a long distance bus? You may need configuration options.
Results logged to `.../gems/ruby-1.9.3-p392/extensions/x86_64-darwin-14/1.9.1/mysql2-0.3.17/gem_make.out` How can I fix this and successfully install mysql2? rb /migrate which contains 20141105155758_create_posts.rb None of which are MySQL database files (.sql). Boyfriend is coowner with sister, wants to move out Was the London Blitz accidentally started by lost pilots?
A question can only have one accepted answer. adapter: 'mysql' It took around 5 hours of my life, dll files, messing with adapter files, updating bundle, uninstalling lots of things, reinstalling them... Should we kill the features that users are not using frequently, to improve performance? Error Installing Rmagick: Error: Failed To Build Gem Native Extension. Subscribed!
You also have to configure the database.yml file correctly, including the name of the local user and his password. E: Unable To Locate Package Libmysql-ruby Now it's failing because it can't find mysql.h, which I'm assuming are part of the libraries/headers? –Ryan Arneson Apr 7 '12 at 3:54 add a comment| 6 Answers 6 active oldest Success! no checking for mysql_query() in -lmysqlclient...
Did Joseph Smith “translate the Book of Mormon”? Don't Know How To Set Rpath On Your System, If Mysql Libraries Are Not In Path Mysql2 May Not Load Check the mkmf.log file for more details. no checking for main() in -lz... Difference between if else and && || Detect ASCII-art windows made of M and S characters A few rebus puzzles Electrical Propulsion Thrust How to prove that gcd(m+1, n+1) divides (mn-1)
This worked great.. –e3matheus Aug 24 '11 at 15:08 add a comment| up vote 7 down vote If you are using yum try: sudo yum install mysql-devel share|improve this answer edited To tell Rails to use mysql2, you have to remove sqlite3 from gemfile and add the mysql2 gem in its place. Failed To Build Gem Native Extension Mysql2 Mac Richard Duffy 16,484 Points Richard Duffy Richard Duffy 16,484 Points about 2 years ago Hey, as Geoff Parsons said, that is totally correct! Error Installing Mysql2 Gem Why do CDs and DVDs fill up from the centre outwards?
When you're done, gem will install –Lukasz Muzyka Jan 8 '15 at 3:08 add a comment| up vote 2 down vote hi this might be happening for two reason. 1) You navigate here When I try to run gem install mysql2 (or bundle install) I get errors: C:\ruby\cred2>gem install mysql2 Building native extensions. Share your knowledge. Special header with logo in center of it Ultimate Australian Canal When jumping a car battery, why is it better to connect the red/positive cable first? Gem Install Mysql2 Fails
How do I know which Pokemon I have caught? share|improve this answer answered Jan 13 '11 at 8:22 tobinjim 1,28411525 add a comment| up vote 0 down vote If still getting error then follow the steps of mysql2 gem installation Error output said (on my machine, among other): "You have to install development tools first." So it was an obvious decision and it helped. Check This Out After installed, just re-enter the command to gem install mysql2 or if necessary, sudo gem install mysql2, if you are getting permission denied problems.
This could take a while... Rails Mysql Gem Check the mkmf.log file for more details. try with gem install mysql2 Its working..
no checking for mysql_query() in -lmysqlclient... 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 mysql ruby-on-rails ruby ruby-on-rails-3 gem share|improve this question edited Jan 8 '15 at 3:02 Prakash Murthy 9,88732249 asked Jan 8 '15 at 2:40 Thanh Khiet Nguyen 3614 Could you Gem Mysql2 Can time travel make us rich through trading, and is this a problem?
Thanks all . I had the same mysql install issue (even when using the --with-mysql-config=/usr/local/mysql/bin/mysql_config ) –Americo Savinon Mar 8 '13 at 21:32 1 Did not need libmysql-ruby since I had installed Ruby First things first: I'm using a Windows 7 64-bit machine In the console, when I try to: gem install mysql It gives me: Temporarily enhancing PATH to include DevKit... http://blackplanetsupport.com/failed-to/failed-to-initialize-jaybird-native-library.html You can try to use mysql or ruby-mysql on your Windows machine.
Should we eliminate local variables if we can? Back to your issues with the mysql2 gem it looks like it can't find development headers: checking for mysql.h... To do that in Windows you'd probably need to have the whole mingw (or possibly cygwin) environment set up. How to explain extreme human dimorphism?
mysql ruby-on-rails ruby rubygems bundler share|improve this question edited Nov 4 '13 at 10:07 asked Nov 4 '13 at 9:59 user2951937 add a comment| 3 Answers 3 active oldest votes up sudo apt-get install mysql-client libmysqlclient-dev 2 comments 0 wavrin September 10, 2014 Maybe run this update first: sudo gem update --system 0 abe.petrillo September 10, 2014 Might be worth upgrading ruby How can I solve this integer equation with Mathematica? Bend the Extrusion of a text Difference between if else and && || Why leave magical runes exposed?
MySQL installed. Follow this link plases mysql2 gem compiled for wrong mysql client library share|improve this answer answered Oct 3 '12 at 9:36 Bruce 685 add a comment| up vote 0 down vote Check the mkmf.log file for more details. I had the same problem, and for me, the sudo apt-get install libmysql-ruby libmysqlclient-dev did the job!!!