尝试运行我的插座时出现错误:
并运行以下命令:
$> rails _3.2.8_ new demo_app -T
$> cd demo_app
$> rake rails:template LOCATION=https://raw.github.com/gist/3752746/a259f4307b65493f4b7043bd78f30efa3ba6191e/test.rb
Recept在这里https://raw.github.com/gist/3752746/a259f4307b65493f4b7043bd78f30efa3ba6191e/test.rb
然后我得到以下错误
Could not find gem 'ffi (~> 1.0.0) ruby',
which is required by gem 'libnotify (= 0.5.9) ruby', in any of the sources.
当我使用手工安装复制粘贴宝石并运行'捆绑安装'时,一切正常 怎么了?
答案 0 :(得分:1)
试试这个:
require 'bundler'
# do your template gem adding stuff...
Bundler.with_clean_env do
run 'bundle install'
end
答案 1 :(得分:0)
gem install ffi