On Debian (or Ubuntu) systems, just install libmysqlclient-dev package using:
sudo apt-get install libmysqlclient-dev
and then:
gem install mysql
It will be installed without any error.
More Related Contents:
- Error installing mysql2: Failed to build gem native extension
- Library not loaded: libmysqlclient.16.dylib error when trying to run ‘rails server’ on OS X 10.6 with mysql2 gem
- rails + MySQL on OSX: Library not loaded: libmysqlclient.18.dylib
- What the difference between mysql and mysql2 gem
- Location of my.cnf file on macOS
- ‘sudo gem install’ or ‘gem install’ and gem locations
- Setting the MySQL root user password on OS X
- Rails: Installing PG gem on OS X – failure to build native extension
- Mysql::Error: Specified key was too long; max key length is 1000 bytes
- MySQL user DB does not have password columns – Installing MySQL on OSX
- Rails, MySQL and Snow Leopard
- Rails 3 ActiveRecord: Order by count on association
- How do you uninstall MySQL from Mac OS X?
- Ruby on Rails 3 Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ on OSX
- Error: Tablespace for table xxx exists. Please DISCARD the tablespace before IMPORT
- how to use DISTINCT ON with mysql using ActiveRecord
- How to delete duplicate records in mysql database?
- libmysqlclient15-dev on macs?
- Connect to Docker MySQL container from localhost?
- How do you stop MySQL on a Mac OS install?
- How do you write a case insensitive query for both MySQL and Postgres?
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ [duplicate]
- Correct MySQL configuration for Ruby on Rails Database.yml file
- nokogiri gem installation error
- macOS, Rails: “Failed to build gem native extension”
- uninitialized constant MysqlCompat::MysqlRes (using mms2r gem)
- Rails select random record
- OSX ld: library not found for -lssl
- Ruby on Rails – cannot load such file — mysql2/2.2/mysql2 (LoadError)
- MySQL data directory location