Home > install mysql > gem install mysql2 error ubuntu

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 `

' The issue was fixed by running: sudo apt-get install ruby1.9.1-dev Adding this to the installation instructions would add to a "smoother" installation experience. Source of solution: http://stackoverflow.com/questions/13767725/unable-to-install-gem-failed-to-build-gem-native-extension-cannot-load-such fedeEspinoza commented May 29, 2014 I did not work. also thanks for the input klemensschindler commented May 31, 2014 Hmm, I already removed my installation on ubuntu 14.04 and changed to 12.04 instead. So currently I'm unable to try to re-check this. subintp commented Jun 11, 2014 same issue for me also Sharetribe member gnomet commented Jun 12, 2014 Hmm.. This seems to be more related to the gem installation than to Sharetribe code itself, but anyway seems to be an issue for many installers. Based on my earlier experience with gem issues, and also the solution suggested above, it's probably due some missing libraries. But it seems that installing ruby1.9.1-dev didn't work fo

 

Related content

error failed dependencies mysql-devel is needed by

Error Failed Dependencies Mysql-devel Is Needed By table id toc tbody tr td div id toctitle Contents div ul li a href How To Install Mysql In Linux Centos a li li a href Mysql Installation On Linux Step By Step a li li a href Install Mysql Linux Yum a li ul td tr tbody table p dependencies perl DBI is needed relatedl by MySQL-server- - i If you seeerror linux install mysql server Failed dependencies perl DBI is needed error failed dependencies rpm install by MySQL-server- - i error Failed dependencies perl DBI is p h id How

error importing mysqldb module. this is a prerequisite

Error Importing Mysqldb Module This Is A Prerequisite table id toc tbody tr td div id toctitle Contents div ul li a href Pip Install Mysql-python Mysql config Not Found a li li a href Install Mysqldb Python Mac a li li a href Import Mysqldb a li li a href Importerror No Module Named configparser a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us relatedl Learn more about Stack Overflow the

error installing mysql gem extconf.rb failed

Error Installing Mysql Gem Extconf rb Failed table id toc tbody tr td div id toctitle Contents div ul li a href Extconf rb Failed Mysql a li li a href Ruby Mysql Example a li li a href Checking For Mysql query In -lmysqlclient No a li ul td tr tbody table p here relatedl for a quick overview of the site gem install mysql ubuntu Help Center Detailed answers to any questions you might gem install mysql failed to build gem native extension have Meta Discuss the workings and policies of this site About Us Learn more error

error mysql conflicts with mysql-server

Error Mysql Conflicts With Mysql-server table id toc tbody tr td div id toctitle Contents div ul li a href Install Mysql Linux Yum a li li a href Mysql Rpm Download a li ul td tr tbody table p Variables Archives August July June May March January November October September August July relatedl June May April March February linux install mysql server January July June April March December August how to install mysql in linux centos June May April March February January December November October September mysql installation on linux step by step May January November October September August

error mysql-5.0.77-4.el5_6.6 specifies multiple packages

Error Mysql- - el Specifies Multiple Packages table id toc tbody tr td div id toctitle Contents div ul li a href How To Install Mysql Rpm Package In Linux a li li a href Uninstall Mysql Centos a li ul td tr tbody table p p h id How To Install Mysql Rpm Package In Linux p mysql- - el br freeradius -mysql- - el br mysql-devel- - el br mysql-devel- - el br install mysql redhat br root foo rpm -qa --queryformat name arch n grep mysql br mysql i br freeradius -mysql x br yum install mysql

error mysql-devel-5.0.77-4.el5_6.6 specifies multiple packages

Error Mysql-devel- - el Specifies Multiple Packages table id toc tbody tr td div id toctitle Contents div ul li a href Uninstall Mysql Linux Redhat a li li a href Install Mysql Redhat a li li a href No Package Mysql-server Available a li li a href Error Access Denied For User root localhost using Password No a li ul td tr tbody table p Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies relatedl of this site About Us Learn more about

mysql error rails

Mysql Error Rails table id toc tbody tr td div id toctitle Contents div ul li a href Error Failed To Build Gem Native Extension Mysql a li li a href Gem Mysql a li li a href Gem Install Mysql With Mysql Config a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might relatedl 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