Hendra Nicholas I am a software engineer, consultant and CEO at 41studio currently living in West Java, Indonesia. My interests range from programming to sport. I am also interested in entrepreneurship, technology, and design.

Error while install mysql2 ruby gem on Ubuntu

9 sec read

ubuntu

How to fix “An error occurred while installing mysql2 (*)” when install mysql2 ruby gem ? The solution is just run this command on your terminal :

On Ubuntu :

$ sudo apt-get install libmysqlclient-dev

On Redhat / Centos / Fedora :

$ sudo yum install mysql-devel

On Mac OSX with Homebrew :

$ brew install mysql
Hendra Nicholas I am a software engineer, consultant and CEO at 41studio currently living in West Java, Indonesia. My interests range from programming to sport. I am also interested in entrepreneurship, technology, and design.