我已经在本地克隆了1.8.7 rails应用程序,我试图运行ruby服务器,但是当我输入“ruby server”时,我收到以下错误:红宝石服务器“Bundler无法找到一些宝石”捆绑器将不会安装
./../config/../config/preinitializer.rb:18: Bundler couldn't find some gems.Did you run `bundle install`? (RuntimeError)
from ./../config/boot.rb:28:in `load'
from ./../config/boot.rb:28:in `preinitialize'
from ./../config/boot.rb:10:in `boot!'
from ./../config/boot.rb:124
from server:2:in `require'
from server:2
于是,我又试图通过安装“宝石安装捆绑”的捆绑,但收到此错误:
Successfully installed bundler-1.3.5
1 gem installed
dyld: lazy symbol binding failed: Symbol not found: _rb_intern2
Referenced from: /usr/local/rvm/gems/ruby-1.9.3-p392/gems/json- 1.7.7/lib/json/ext/parser.bundle
Expected in: flat namespace
dyld: Symbol not found: _rb_intern2
Referenced from: /usr/local/rvm/gems/ruby-1.9.3-p392/gems/json-1.7.7/lib/json/ext/parser.bundle
Expected in: flat namespace
...它将无法运行“捆绑安装”
ERROR: Gem bundler is not installed, run `gem install bundler` first.
我目前正在运行3.2.12 rails,我需要切换到早期版本吗?我安装了RVM。我相当新,所以任何帮助将不胜感激!提前致谢。
已经有一段时间了,因为我使用了旧的rails应用程序,但是你不想'''ruby script/server'''? – 2013-04-25 18:04:09
从/脚本目录运行它 – 2013-04-25 18:13:42
你的补丁版本的红宝石1.8.7是什么? Rails 3.2的发布指南指出:“请注意,Ruby 1.8.7 p248和p249有编组错误,导致Rails崩溃。” – 2013-04-25 18:32:05