gem 'my_cool_gem', git: '..' ).
gem 'my_cool_gem', git: '..'
但是当我运行应用程序时( rails s )我出错了-
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
只有这样,我的应用程序才能工作。
有什么想法吗?
你可能对你的 extconf.rb
extconf.rb
create_makefile 线条看起来像:
create_makefile
create_makefile(File.join(extension_name, extension_name))