我在本地克隆了一个 1.8.7 rails 应用程序,我正在尝试运行 ruby 服务器,但是当我输入“ruby server”时,我收到以下错误:
./../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
所以我然后尝试通过“gem install bundler”安装捆绑器,但收到此错误:
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。我在这方面相当新,所以任何帮助将不胜感激!提前致谢。