2014-06-12 25 views
0

我是Ruby的新手。試圖在我的機器上設置nanoc。我正在運行Ubuntu 14.04。Linux中的nanoc安裝設置

的nanoc安裝後,當我輸入

$nanoc --version 

我收到以下錯誤:

/home/ananth/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/shared_helpers.rb:24:in `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound) 
from /home/ananth/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler.rb:248:in `default_gemfile' 
from /home/ananth/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler.rb:192:in `root' 
from /home/ananth/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler.rb:99:in `bundle_path' 
from /home/ananth/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler.rb:400:in `configure_gem_home_and_path' 
from /home/ananth/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler.rb:90:in `configure' 
from /home/ananth/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler.rb:151:in `definition' 
from /home/ananth/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler.rb:116:in `setup' 
from /home/ananth/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler.rb:132:in `require' 
from /home/ananth/.rvm/gems/ruby-head/gems/nanoc-3.7.0/bin/nanoc:7:in `<top (required)>' 
from /home/ananth/.rvm/gems/ruby-head/bin/nanoc:23:in `load' 
from /home/ananth/.rvm/gems/ruby-head/bin/nanoc:23:in `<main>' 
from /home/ananth/.rvm/gems/ruby-head/bin/ruby_executable_hooks:15:in `eval' 
from /home/ananth/.rvm/gems/ruby-head/bin/ruby_executable_hooks:15:in `<main>' 

我失去了從我RVM的東西嗎?任何與$ PATH,.bashrc或.bash_profile有關的事情? 感謝您的幫助!

回答

1

這是3.7.0中的一個bug,將在3.7.1中解決。

3.7.0安裝Bundler時無意中需要Gemfile存在。

爲了避免這個bug,要麼暫時切換回3.6.11,要麼使用Gemfile(我推薦後者)。