我已經在Linux Mint v14 Nadia上安裝rails 4.0.0.rc1。錯誤生成新的應用程序與軌道4.0.0.rc1在Linux Mint 14
當我運行
rails new something
它給我的錯誤(我把這裏只有最後幾行):
創建供應商/資產/樣式表/ .keep 運行捆綁安裝 /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/ui.rb:36:in
initialize': undefined method
[] for#(NoMethodError) from/usr/lib/ruby/vendor_ruby/bundler/cli.rb:12:在new' from /usr/lib/ruby/vendor_ruby/bundler/cli.rb:12:in
中從/ usr/lib/ru初始化' 通過/ vendor_ruby /捆綁/供應商/ thor.rb:263:在new' from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor.rb:263:in
調度 ' 從/usr/lib/ruby/vendor_ruby/bundler/vendor/thor/base.rb:386:instart' from /var/lib/gems/1.9.1/gems/bundler-1.3.5/bin/bundle:20:in
塊在' 從/ VAR /lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:inwith_friendly_errors' from /var/lib/gems/1.9.1/gems/bundler-1.3.5/bin/bundle:20:in
'
然後我改變目錄,檢查依賴性:
cd something
bundle check
它說:
Resolv ing依賴關係... Bundler無法滿足您的Gemfile的依賴關係。 安裝缺失的寶石與
bundle install
。
然後我運行:
捆綁安裝
而且它的顯示:
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Enter your password to install the bundled RubyGems to your system:
Installing rake (10.0.4)
Using i18n (0.6.4)
Using minitest (4.7.4)
Using multi_json (1.7.3)
Using atomic (1.1.9)
Using thread_safe (0.1.0)
Using tzinfo (0.3.37)
Using activesupport (4.0.0.rc1)
Using builder (3.1.4)
...等等是要帶一個多小時,仍然跑。
我認爲這裏發生了一些奇怪的事情。 也許我的安裝不正確...
您運行的是哪個版本的ruby? – muttonlamb 2013-05-09 11:16:50
Ruby版本是1.9.3 – Askar 2013-05-09 11:44:07