Category Archives: Web Development

Ruby on Rails – Error installing mysql2: Failed to build gem native extension – Ubuntu Linux

"ActiveRecord::ConnectionNotEstablished" Error in Ruby on Rails (ROR) when Connecting to MYSQL Server

Ruby on Rails – Error installing mysql2: Failed to build gem native extension – Ubuntu Linux

"ActiveRecord::ConnectionNotEstablished" Error in Ruby on Rails (ROR) when Connecting to MYSQL Server

      This is a very common issue where we get error “Error installing mysql2: Failed to build gem native extension” while installing mysql2 gem in Rails(in Ubuntu Linux OS). The problem is due to missing libmysql(from MYSQL) file. Linux Solution:       To solve the issue install the compnents libmysql-ruby and libmysqlclient-dev using the… Read More »