Active 11 months ago. Viewed 6k times. I followed the instructions in this post: Ruby MYSQL2 gem installation on windows 7 to install the mysql2 gem, and I did not get any error messages. I followed this with the bundle install command, and confirmed that the following gems are installed using bundle show , confirming that I have the following gems installed: Using devise 3. Solution: The answer is a combination of two answers from stackoverflow, plus modifications.
Improve this question. Community Bot 1 1 1 silver badge. EastsideDev EastsideDev 5, 7 7 gold badges 52 52 silver badges 94 94 bronze badges.
Please read my question. I run windows8. I can confirm that this solution works. I had to take one additional set prior to 9. I had to delete the mysql2 gem's already installed by Bundle. Bundle failed to install them mysql gem when I attempted other peoples solutions, but it still created the gem directory and installed some files. Deleting them prior to step 9 made it work!
Thanks Peter Kirby. I will add this as step 0. At step 10, I recommend perform the commands using administrator privileges. Add a comment. Active Oldest Votes. When you installed the mysql2 , did you download the lib files it needs?
Improve this answer. Richard Peck Richard Peck I am using the 64 bit connector, not the 32 bit. Other than that, if you look at my original question, I said that I followed the instructions in the link I included, and that's a more expanded version of the suggestion you provide here. Only issue is that the example you provided does not work, because it's using Windows style directory separator, but the installer expects Linux style directory separators.
You may need configuration options. Could not create Makefile due to some reason , probably lack of necessary. You may. Provided configuration options :. An error occurred while installing mysql2 0.
Successfully installed mysql This could take a while. Successfully installed mysql2 - 0. The point is to use the standalone mysql-connector-c.
Which is probably the reason why the one shipped with MySQL installer doesn't work. Also, add the version if a dependency requires it. The latest version the above gem install gets still caused me grief, so had to add "-v '0. WebDev WebDev 1, 8 8 silver badges 6 6 bronze badges.
It worked.! I wonder why your answer was downvoted Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Visit chat. Related
0コメント