小编sha*_*mil的帖子

安装 MySQL Ruby Gem

嗨,我尝试在 Ubuntu 10.04 上安装 MySQL Gem 失败。

我尝试了以下命令:

sudo gem install mysql
sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
Run Code Online (Sandbox Code Playgroud)

我收到以下消息:

Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check …
Run Code Online (Sandbox Code Playgroud)

installation mysql ruby

9
推荐指数
2
解决办法
1万
查看次数

标签 统计

installation ×1

mysql ×1

ruby ×1