小编Den*_*elg的帖子

gem install mysql2失败

我收到了这个错误:

sudo gem install mysql2
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
    ERROR: Failed to build gem 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 …
Run Code Online (Sandbox Code Playgroud)

mysql ubuntu gem

27
推荐指数
3
解决办法
2万
查看次数

标签 统计

gem ×1

mysql ×1

ubuntu ×1