小编yab*_*njo的帖子

无法安装mysql2 gem OS X Mountain Lion

我是RoR的新手,我正在尝试安装Mysql2 -v'0.3.11'.我有OS X Mountain Lion,rails 3.2.6,ruby 1.9.3.

以下是我得到的错误.我到处看,没有找到任何东西.

$gem install mysql2 -v '0.3.11'
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
ERROR: Failed to build gem native extension.

    /Users/curiosity/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
creating Makefile

make
compiling client.c
In file included from client.c:1:
In file included from ./mysql2_ext.h:8:
In file included from /Users/curiosity/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/ruby.h:32:
/Users/curiosity/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/ruby.h:105:37:     error: 'ruby_check_sizeof_long' declared as an …
Run Code Online (Sandbox Code Playgroud)

mysql macos gem ruby-on-rails mysql2

6
推荐指数
1
解决办法
8564
查看次数

标签 统计

gem ×1

macos ×1

mysql ×1

mysql2 ×1

ruby-on-rails ×1