Rails Edge / 4“require”出错:无法加载此类文件 – thread_safe
按照这里的说明获取运行Rails Edge的应用程序来测试Rails 4: 使用edge生成Rails应用程序的最佳方法是什么? 以及如何创建Edge rails应用程序?
但遇到这个错误:
`require': cannot load such file -- thread_safe (LoadError)
使用命令:
rails new Edge --edge --skip-bundle --database=postgresql --skip-test-unit --skip-index-html
我的路径上有一个Rails master bin dir的结帐。
我使用rbenv与ruby 1.9.3p327。
我已经清除了所有已安装的gem,只是运行了捆绑器。
Rails 3.2.9在我的系统上工作正常,有一个正在开发的应用程序。
问题是没有安装rails gem(当通过rubygems安装时,依赖关系会自动解决。
请参阅https://github.com/rails/rails/pull/8589
需要进入克隆的rails dir并运行“bundle install”,这将拉入必要的gem。