Home > Failed To > Gem Install Mysql2 Windows

Gem Install Mysql2 Windows


Yükleniyor... What's the purpose of the same page tool? yes checking for mysql_query() in -lmysqlclient... Installing mysql2 (0.3.11) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/eric/.rvm/rubies/ruby-2.0.0-p195/bin/ruby extconf.rb checking for rb_thread_blocking_region()... this contact form

What shell are you using? –Mrk Fldig Oct 5 '14 at 9:10 @MrkFldig I just copied the other answer pointed at the start of the answer. asked 3 years ago viewed 19155 times active 1 year ago Linked 4 ERROR: Failed to build gem native extension on Windows 4 gem install kgio 2.9.2 error 1 bundle install I have not done ruby for quite a while, sorry I could not be of more help. I've looked all over StackOverflow and haven't really had any luck there either.

Gem Install Mysql2 Windows

Building native extensions. Why does Hermione dislike Professor Trelawney from the start? share|improve this answer edited Apr 10 '14 at 10:46 answered Apr 9 '14 at 9:24 glenatron 7,50974687 add a comment| up vote 0 down vote Here's what worked for me: gem That's the reason the mysql gem nor the mysql2 gem won't install!

C:/Ruby200/bin/ruby.exe extconf.rb --with-mysql-include=C:\Devel\mysqlconnector-6.0.2\include --with-mysql-lib=C:\Devel\mysqlconnector-6.0.2\lib --with-mysql-dir=C:\Devel\mysqlconnector-6.0.2 checking for rb_thread_blocking_region()... UnzipNext, unzip the file to a path without any spaces (E.G c:/your/mysql/files/).3. mkmf's have_library function looks for the specified library and tries to find a main() function in it. Error Installing Rmagick: Error: Failed To Build Gem Native Extension. 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:/Ruby23-x64/bin/$(RUBY_BASE_NAME) C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:1392:in initialize': No such file or directory @ rb_sysopen - ./231/ruby_debug.h (Errno::ENOENT) from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:1392:inopen' from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:1392:in copy_file'

Stop. E: Unable To Locate Package Libmysql-ruby Yükleniyor... It's pretty irritating after just completing a whole Treehouse section (as part of the Ruby on Rails track) on how to use MySQL...and then the stuff we build with Rails doesn't Oturum aç Paylaş Daha fazla Bildir Videoyu bildirmeniz mi gerekiyor?

I'm going to see if I can build manually using the generated Makefiles. Extconf.rb Failed Windows PootyApplewater commented Oct 19, 2015 gem update --system 2.3.0 has worked! Say you're creating a blogging engine and want posts to be added to specific categories - you might want to pre-populate the categories using this script. It's worth the trouble.

E: Unable To Locate Package Libmysql-ruby

How does the FAA determine which format of location identifier to assign to an airport? Which I did find out in the end, and reinstall the 32 bit version. Gem Install Mysql2 Windows Steps to reproduce: Download and run Ruby 1.9.3-p551 installer. Failed To Build Gem Native Extension. Mysql2 why is Newton's method not widely used in machine learning?

I would also move to Linux or Mac if you want to do Rails development seriously (Virtual Machine). weblink C:\Ruby193\devkit\bin;C:\Ruby193\devkit\mingw\bin;C:\bin;C:\Ruby193\bin;C:\windows;C:\windows\system32;C:\windows\system32\Wbem;c:\Program Files (x86) \Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Pro gram Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Java\jdk1.6.0_33\bin;C:\Program Files (x86)\Common Files\Apple\Mobile Device Su pport\;C:\Program Files (x86)\Common Files\Apple\Apple Application Support;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Fixes #977.">Don't use relative paths on Windows. It helped in installing mongoid for me. (bson gem was stopping me from moving forward) mrthan commented Jan 8, 2015 I'm still getting this issue in 2.4.5 - reverting to 2.3.0 Gem Install Mysql2 Fails

no checking for main() in -lnsl... Alonso Campos 2.459 görüntüleme 2:34 Install Ruby on Rails on Windows 7, 8 or 10 in 3 Minutes - Süre: 3:38. I went into my environment path and added it and my install worked. navigate here My machine is Win 7 64bit.

Check the mkmf.log file for more details. Error: Failed To Build Gem Native Extension. Windows This allows Ruby to identify the `include` and `lib` paths, which is what many other tutorials reference:gem install mysql2 —platform=ruby — ‘—with-mysql-dir=”C:\mysql-connector-path”’Once you perform this function, you should see that the MYSQL2 gem I think the proper gem is gem install mysql2 When generating a new app, you can theoretically indicate what database is to be used.

Member drbrain commented Oct 2, 2014 Nope, its still open, I haven't had time to fix it yet.

Which meta can includegraphics read and report? HomepageSign in / Sign up42Share4FL UtilitiesBlockedUnblockFollowFollowingFull Stack Software | Ruby On Rails | PHP | Cloud Hosting | CRM | Enterprise SoftwareJan 24, 2014Installing The MYSQL2 #RubyOnRails Gem On Windows 7 This could take a while... Gem Mysql2 CooperPress 21.784 görüntüleme 13:11 How to Install and Configure Devise in a Ruby on Rails Application - Süre: 25:34.

Download the MYSQL C-Connector LibraryDownload the 32-bit version of the MYSQL C-Connector libraryThis will download a ZIP file to your system2. Stop. Iteration can replace Recursion? his comment is here Error installing mysql2: Failed to build gem native extension I would recommend to use the normal command prompt.

ERROR: Error installing json: ERROR: Failed to build gem native extension. share|improve this answer answered Nov 29 '15 at 18:49 EarlLamont 1 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Building native extensions. C:\beef>gem install libgmp-dev ERROR: Could not find a valid gem 'libgmp-dev' (>= 0) in any repository ERROR: Possible alternatives: libevdev, librmpd C:\beef>gem sources -r https://rubygems.org -a http://rubygems.org https://rubygems.org is recommended for

yes checking for errmsg.h... pritamdstan commented Sep 3, 2016 C:\beef>bundle install Fetching gem metadata from http://rubygems.org/ Fetching version metadata from http://rubygems.org/ Fetching dependency metadata from http://rubygems.org/ Resolving dependencies... C:\Ruby193>gem install json Temporarily enhancing PATH to include DevKit... I eventually switched over to Ubuntu Linux OS and my issue has been resolved On Aug 19, 2014, at 4:54 AM, ishristov [email protected] wrote: Is there any progress on this?

Oturum aç Çeviri Yazısı 1.054 görüntüleme 3 Bu videoyu beğendiniz mi? I am not sure why the removal of the leading C: breaks it, and as such this issue is still unresolved. Terms Privacy Security Status Help You can't perform that action at this time. I want to scream and hug someone right now..

Nothing else worked... Building native extensions. make: *** [city.o] Error 1 make failed, exit code 2 Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/cityhash-0.8.1 for inspection. This could take a while...

Join them; it only takes a minute: Sign up Ruby on Windows: Cannot install mysql2 gem - Failed to build gem native extension up vote 4 down vote favorite 1 I Thanks to a suggestion from another SO question, I moved the devkit installations inside the Ruby directories: The tdm devkit now lives in C:\Ruby193\devkit while the mingw64 lives in C:\Ruby200\devkit. anyway if you are using ubuntu, from this https://github.com/brianmario/mysql2/issues/8 run: sudo apt-get install mysql-client libmysqlclient-dev Otherwise for Mac users,(use brew to install) check this http://mxcl.github.com/homebrew/, or run: brew install mysql then I am getting the same error.

Hope this helps. ealexhaywood commented Aug 19, 2014 No. The build process in the gem was reporting that it could not find "C:\MySQL\MySQL" ( and before that when I had it in Program Files, it complained it couldn't find "C:\Program\includes"