luislavena / mysql-gem

MySQL/Ruby Bindings, wrapped as Gem with improved cross-platform support
http://rubyforge.org/projects/mysql-win
Other
53 stars 20 forks source link

ERROR: Failed to build gem native extension. #36

Closed mittalyashu closed 6 years ago

mittalyashu commented 6 years ago

Getting this error after running this command: gem install mysql.

mintty_2018-10-02_17-03-17

I am not facing issue with other gems and I have already searched StackOverflow but didn't found any solution.

luislavena commented 6 years ago

Hello @mittalyashu and welcome.

The error you're receiving is because you environment lacks the dependencies necessary for this gem to install, notice the check part:

checking for -llibmysql... no

You need to install support dependencies like libmysql-dev in order for the gem to compile.

PS: please note that this project has no maintainer (and still looking for one). I will recommend check any documentation provided by the Ruby distribution you're using on how to install these dependencies.