2
我创建了新的Ruby C扩展,并将其托管在GitHub中, 和我通过Bundler(gem 'my_cool_gem', git: '..'
)进行安装。Ruby原生扩展 - 手动编译
但是当我运行应用程序(rails s
)我得到一个错误 -
cannot load such file -- my_cool_gem/my_cool_gem
我目前的解决方案是手动编译:
$ cd $(bundle show my_cool_gem)
$ rm ext/my_cool_gem/*.o
$ rake compile
只有到那时,我的应用程序的作品。
任何想法?
你有没有列在'gemspec'扩展? – matt
@matt是的,我在'gemspec'中列出了我的扩展名 – Yosi