Unable to install mysql2 gem on windows 7 stack overflow. Im installing redmine for the first time and i dont know ruby. Just in case heres the general outline of what youd need to get up and running with mysql instead of sqlite in rails. I am trying to install the rubygems native mysql gem, but i am getting these errors. Im trying to install mysql2 gem on my windows 7 computer. How do i install the mysql gem, and how do i set it as the default. Download free gem install mysql2 extconf rb failed windows 10 cnet download. They do have the same answer though, but the other questions answer doesnt tell what the solution is explicitly. I have searched the internet and found similar problems but none of the solutions have worked for me. The guides would instruct you to install the mysql client libraries from the mysql website, which is fine.
Installing ruby on rails with mysql on windows gamecreatures. A modern, simple and very fast mysql library for ruby binding to libmysql brianmariomysql2. Installing mysql on windows 7 x64 and using ruby with it. Else youre bundle install will fail when installing or updating the mysql2 gem. Use the archive provided by mysql to download the zip version of the.
After installing rubydevel as shown below the gem installed without issue. By continuing to use pastebin, you agree to our use of cookies as described in the cookies policy. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. It looks like you dont have mysql installed on your system or at least when building the native extension it cant find mysql. This is simple program that checks for prerequisites needed for the extension to be built. This time we are displaying complete output of gem install command because we will completely analyze it. Im completely new to rails development and have been struggling with installing mysql2 with the past month. Apr 06, 2015 participate in discussions with other treehouse members and learn. Installing mysql2 gem fails while running bundle install on. Unless your application really is going to use more than 2gb of ram, the usage of 64bits ruby is not necessary.
Nov 04, 2014 it looks like you dont have mysql installed on your system or at least when building the native extension it cant find mysql. Using apt i followed the steps mentioned in but unfortunately i was stuck with the following issue error. We use cookies for various purposes including analytics. Mar 10, 2009 both of those directories will relate to how mysql was installed but by default it will be something similar to c.
If like me, you have some coworker working on a rails project using windows in my case windows 7. Downloaded the zip archive for the 32bit version 5. You can download the mysql community server from this location. Sep 10, 2010 as you can see above the gem failed to install. You cannot just install the mysql2 gem on windows it needs extra c header. Download free download free gem install mysql2 extconf rb. The reason is that i had not yet installed the rubydevel package which is needed during the gem compilation process. Download mysql connector c 64 bit zip file, put in c drive as mysqlc 5.
This question is mysql gem and the other question is mysql2 gem. Running bundle install on rails master rake routes. I kept running into issues installing the mysql gem. However the bundle install still failed with the same error mysql2 failed to build gem native. Stack overflow for teams is a private, secure spot for you and your coworkers to find and share information. Jun 14, 2011 if like me, you have some coworker working on a rails project using windows in my case windows 7. This is apparently an incompatibility issue and the solution is as follows.
The strategy is to download and build the needed libraries and other resourced so the mysql gem can be. Youll probably want something more robust like mysql or postgresql. Both of those directories will relate to how mysql was installed but by default it will be something similar to c. The other day i was installing mysql2 gem on macos for ruby 2. Gem files will remain installed in usrlocallibruby. Add comments here to get more clarity or context around a question.
562 805 1423 555 1142 428 362 71 1324 116 1355 1143 1014 777 802 1318 736 1428 97 989 886 1094 772 356 652 60 554 241 317 453 294 125 595 1129 581 851 887 246 1257 1260 485 25 947