小编zer*_*nna的帖子

需要 Ruby Gem LoadError mysql2/mysql2

我试图在 OSX 10.8 上设置我的 rails 服务器,但我无法运行我的 rails 服务器。
- 目前我正在使用带有 mysql 5.1 的 Zend 服务器。
- 我也有安装brewbrew mysql
- 我用过:
gem install mysql2 -- --srcdir=/usr/local/mysql/include --with-opt-include=/usr/local/mysql/include
服务器已经工作了,但是现在,我总是在下面收到这个 loadError。

这是我的 Gemfile 所说的:

ralphs-macbook-pro:admin-mockup zero$ bundle install
Using rake (10.0.2) 
Using i18n (0.6.1) 
Using multi_json (1.3.7) 
Using activesupport (3.2.7) 
Using builder (3.0.4) 
Using activemodel (3.2.7) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.1) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets …
Run Code Online (Sandbox Code Playgroud)

ruby mysql gem rvm

5
推荐指数
1
解决办法
2961
查看次数

标签 统计

gem ×1

mysql ×1

ruby ×1

rvm ×1