Gem Install Mysql2 Error Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you
Gem Install Mysql2 Fails Centos
might have Meta Discuss the workings and policies of this site error installing mysql: error: failed to build gem native extension. About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or
Unable To Locate Package Libmysql-ruby
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of gem install mysql2 with mysql config 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up gem install mysql2 fails up vote 26 down vote favorite 8 I got this error: sudo gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem gem install mysql2 windows native extension. /usr/bin/ruby1.8 extconf.rb checking for rb_thread_blocking_region()... no checking for mysql.h... no checking for mysql/mysql.h... no ----- mysql.h is missing. please check your installation of mysql and try again. ----- *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. 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=/usr/bin/ruby1.8 --with-mysql-config --without-mysql-config Gem files will remain installed in /var/lib/gems/1.8/gems/mysql2-0.2.6 for inspection. Results logged to /var/lib/gems/1.8/gems/mysql2-0.2.6/ext/mysql2/gem_make.out I have tried: uninstall mysql2 and install it again uninstall mysql with apt-get installd dev-tools from mysql and almost all the pages on Google How can I fix this? mysql ubuntu gem share|improve this question edited Jul 30 '14 at 9:59 j0k 17.4k114960 asked Mar 7 '11 at 12:43 DenBelg 141124 add a comment| 7 Answers 7 active oldest votes up vote 89 down vote You need to install libmysqlclient-de
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Gem Mysql
and policies of this site About Us Learn more about Stack Overflow add gem mysql2 to your gemfile and ensure its version is at the minimum required by activerecord the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
Install Mysql Gem Ubuntu
Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it http://stackoverflow.com/questions/5219855/gem-install-mysql2-fails only takes a minute: Sign up gem install: Failed to build gem native extension (can't find header files) up vote 178 down vote favorite 29 I am using Fedora 14 and I have MySQL and MySQL server 5.1.42 installed and running. Now I tried to do this as root user: gem install mysql But I get this error: Building native http://stackoverflow.com/questions/4304438/gem-install-failed-to-build-gem-native-extension-cant-find-header-files extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out What's wrong here? In installed ruby 1.8.7. and the latest rubygems 1.3.7. mysql ruby rubygems share|improve this question edited Sep 27 at 17:45 Brian 3,76062341 asked Nov 29 '10 at 13:58 Tim 5,1172890147 Just a quick guess: do you have the dev fileheaders for MySQL –DrColossos Nov 29 '10 at 14:06 How can I get these dev fileheaders? –Tim Nov 29 '10 at 14:12 I did it in Ubuntu doing the following: apt-get install ruby-dev rubygems gem install mysql -- with-mysql-config=/usr/bin/mysql_config All works fine. –Ivan Carrasco Quiroz May 29 '12 at 16:51 add a comment| 11 Answers 11 active oldest votes up vote 358 down vote accepted For those who may be confused by the accepted answer, as I was, you also need to have the ruby headers installed [ruby-devel]. The arti
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://askubuntu.com/questions/613207/problem-in-installing-mysql2-in-ubuntu-14-04-in-virtual-box policies of this site About Us Learn more about Stack Overflow the company https://github.com/sharetribe/sharetribe/issues/388 Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask install mysql a question Anybody can answer The best answers are voted up and rise to the top Problem in installing mysql2 in ubuntu 14.04 in virtual box up vote 1 down vote favorite 1 When I run this command, I got this error $ sudo gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem install mysql2 gem native extension. software-installation share|improve this question edited Apr 24 '15 at 7:08 muru 69k12125176 asked Apr 24 '15 at 7:07 kalpit yadav 254 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You need to install a few mandatory packages for gem to work. Should be ... sudo apt-get install libmysql-ruby libmysqlclient-dev and after that sudo gem install mysql2 will work. Source. share|improve this answer answered Apr 24 '15 at 7:20 Rinzwind 140k17275380 Thanks It worked....:) –kalpit yadav Apr 24 '15 at 7:23 add a comment| Your Answer draft saved draft discarded 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 Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged software-installation or ask your own question. asked 1 year ago viewed 676 times active 1 year ago Linked 0 cant find libmysql-ruby on apt-get Related 3Failed to install a
Sign in Pricing Blog Support Search GitHub This repository Watch 90 Star 785 Fork 532 sharetribe/sharetribe Code Issues 8 Pull requests 17 Projects 0 Wiki Pulse Graphs New issue Installation instructions missing dependency (Ubuntu 14.04) #388 Closed klemensschindler opened this Issue Apr 25, 2014 · 6 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 5 participants klemensschindler commented Apr 25, 2014 On Ubuntu 14.04 I ran sudo gem install mysql2 -v 0.2.7 and got the following error: ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (Load) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from extconf.rb:2:in `