gem install mysql error windows West Babylon New York

Address 1221 Suffolk Ave, Brentwood, NY 11717
Phone (631) 433-2177
Website Link

gem install mysql error windows West Babylon, New York

Because I wasn't sure whether changing these would break the installation, once I realised why the problem was arising I just created a symlink from the command line ( something that This could take a while... It's very shiny and looks expensive! Then for step 5, I installed this devkit exe, because the newer version of Ruby didn't have a dev kit that was x86.

Terms Privacy Security Status Help You can't perform that action at this time. So I downloaded the 64-bit MySQL Connector/C from MySQL website and installed the gem with the "with-mysql-dir" option share|improve this answer answered Sep 27 '14 at 12:56 user3282989 12 add a I think this has to do with how you go about installing rails, this time round I used the railsinstaller which seems to set the paths up correctly. So...

Are the words "expression" and "term" interchangeable in programming language theory? Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/ruby200/bin/ruby --with-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib=${mysql-dir}/ --with-libmysqllib --without-libmysqllib Gem files will remain installed in C:/ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1 for inspection. What is not mentioned in the documentation installation is that development tools (a compiler) and specific headers and libraries are required. How should I interpret "English is poor" review when I used a language check service before submission?

The above command contains two special things: First, we are telling RubyGems that we want the ruby platform of mysql gem. I'll try installing x86 (32 bit) Ruby. ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. This is the x86 (32 bit) version.

Not the answer you're looking for? Install it normally and follow the on-screen instructions. yes checking for rb_thread_start_timer()... Jeff Lange 7,493 Points Jeff Lange Jeff Lange 7,493 Points 2y ago I definitely have mysql installed, as I spent the last few days going through Treehouse badges that involved learning

then cd {folder extracted zip to} ruby setup.rb Then I tried installing the mysql gem like so. yes checking for rb_thread_blocking_region()... any suggestions? If you have multiple Ruby installations and you use Pik to change between them, you can place the library in the same directory Pik is installed.

This time I'm going to use Ruby 1.9.2, properly installed and configured with the complementary Development Kit (DevKit) which is provided at RubyInstaller website (In case you haven't installed yet, don't MySQL offers an installer, you can use Homebrew, or your preferred method. You may need configuration options. Can you install other native gems like bson_ext? –crazybob Sep 26 '13 at 6:05 Yeah thanks for the help guys, @R_G yeah you were right I needed to specify

So make sure you make a new folder after downloading, and before extracting. For anyone else experiencing the same problem, I did the following: 1) Download the MySql C Connector from: NOTE Don't download the installer, download the ARCHIVE for your OS Download You need to generate mingw64 compatible libmysql.lib file. C:/ruby200/bin/ruby.exe extconf.rb --with-mysql-dir=C:/mysql-connector-c-noinstall-6.0.2-win32 --with-mysql-lib=C:\mysql-connector-c-noinstall-6.0.2-win32\lib\libmysql.dll checking for main() in -llibmysql...

Richard Duffy 14,644 Points Richard Duffy Richard Duffy 14,644 Points almost 2 years ago Hey, as Geoff Parsons said, that is totally correct! Nothing else worked... After receiving error 'while installing mysql2 (0.3.17), and bundler cannot continue' Make sure that 'gem install mysql2 -v '0.3.17' succeeds... 1) Download the MySql C Connector from: 2) Extract the Wesley says: May 16, 2014 at 11:29 am THANKS A LIFE!

You can find it inside the lib directory of MySQL Connector. I had some errors getting it to download a couple of (superfluous) modules, so I uninstalled everything and reinstalled it clean with only the modules I needed, namely, Connector J, Connector Option 1: gem install mysql --platform=ruby -- --with-opt-dir=C:/mysql-connector-c-noinstall-6.0.2-win32 That should use that directory too. I have not done ruby for quite a while, sorry I could not be of more help.

no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. You've got a couple of options. But, there is a small detail: Ruby is 32bits and my MySQL is 64bits, this means I can't use MySQL provided libraries from Ruby. C:>gem install mysql Fetching: mysql-2.9.1.gem (100%) ERROR: Error installing mysql: The 'mysql' native gem requires installed build tools.

I've looked all over the interwebs for this, and can't find an answer that works. Ok, so let's move to the next thing… Before installing MySQL/Ruby bindings Update: mysql gem version `2.9.0` already fix the issues shown here. Initialize the ruby devkit dk.rb init Download the mysql connector 32-bit, and place it in the mysql-connector C: \ mysql-connector You should be aware, that when you unzip the file, it Pedersen says: October 9, 2013 at 12:26 am Awesome Tutorial Bro!!!