require 'linguistics'

`require': cannot load such file -- linguistics (LoadError)


但是当我尝试在IRB中测试代码时-一切都很好

最佳答案

我怀疑您需要编辑应用程序的Gemfile

看到此:http://gembundler.com/v1.3/gemfile.html

简而言之,编辑Gemfile并添加一行

gem 'linguistics'


然后跑

bundle install


从您的终端。

然后再试一次rake命令

关于ruby - 不需要文件中的语言学或其他库,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15728178/

10-10 17:48