這就是我使用的:Windows 8. Cygwin32。 Rvm版本1.25.27。 Ruby版本2.1.2p95。寶石版本2.3.0。 Drush版本5.9。無法安裝軟件包 - 無盡的錯誤信息
我對這一切都很陌生,所以很可能這個解釋非常簡單。
我試圖從我的drupal主題文件夾中使用「drush omega-guard」,但得到一個錯誤,說我必須安裝Bundler 1.2或更新的版本。這沒關係,因爲我沒有安裝捆綁軟件。但是,當我嘗試使用命令「包安裝」我得到這個:
$ bundle install
-bash: bundle: kommandot finns inte
(Kommandot芬蘭人INTE =命令未找到。) 當我嘗試使用「寶石捆綁安裝」我得到這個:
$ gem bundler install
ERROR: While executing gem ... (Gem::CommandLineError)
Unknown command bundler
我也嘗試過「寶石包安裝」:
$ gem bundle install
ERROR: While executing gem ... (Gem::CommandLineError)
Unknown command bundle
所以我用「這束」,然後使用CD獲得該文件夾。
$ which bundle
/home/I/.rvm/gems/ruby-2.1.2/bin/bundle
我再次嘗試相同的命令,但是從其他文件夾,並結束了與此:
[email protected] ~/.rvm/gems/ruby-2.1.2/bin
$ gem install bundler
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
[email protected] ~/.rvm/gems/ruby-2.1.2/bin
$ gem install bundle
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
[email protected] ~/.rvm/gems/ruby-2.1.2/bin
$ bundle install
/home/I/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'bundler' (>= 0) among 13 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/I/.rvm/gems/ruby-2.1.2:/home/I/.rvm/gems/[email protected]', execute `gem env` for more information
from /home/I/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:322:in `to_spec'
from /home/I/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
from /home/I/.rvm/gems/ruby-2.1.2/bin/bundle:22:in `<main>'
當我使用命令「寶石名單」包未列出:
$ gem list
*** LOCAL GEMS ***
bigdecimal (1.2.5, 1.2.4)
io-console (0.4.2)
json (1.8.1)
minitest (5.3.5, 4.7.5)
psych (2.0.5)
rake (10.3.2, 10.1.0)
rdoc (4.1.1, 4.1.0)
test-unit (2.5.5, 2.1.2.0)
我失蹤或做錯了什麼?我一直在關注這個教程,一切都一直很好,直到這一點:https://www.youtube.com/watch?v=XF_LaSfua8Y&index=10&list=PLLnpHn493BHH5nnK2dKE_42l1oXA6Tq6H
編輯:因爲我問這個問題,我嘗試重新安裝紅寶石2.1.2。安裝卡在「#importing gemset」,大約36個小時後我的電腦因爲停電而被關閉。因此我不知道重新安裝是否完成。之後,我還將我的寶石版本更改爲2.1.2以匹配ruby版本。這些東西似乎有所幫助,事後我可以同時運行「gem install bundler」和「bundle install」。我gemlist現在看起來是這樣的:
$ gem list
*** LOCAL GEMS ***
addressable (2.3.6)
bigdecimal (1.2.5, 1.2.4)
breakpoint (2.0.7)
bundle (0.0.1)
bundler (1.6.3)
celluloid (0.15.2)
chunky_png (1.3.1)
coderay (1.1.0)
color-schemer (0.2.8)
compass (0.12.6)
compass-blend-modes (0.0.2)
compass-normalize (1.5)
compass-rgbapng (0.2.1)
compass-validator (3.0.1)
css_parser (1.3.5)
dash (0.4.0)
fssm (0.2.10)
io-console (0.4.2)
json (1.8.1)
minitest (5.3.5, 4.7.5)
psych (2.0.5)
rake (10.3.2, 10.1.0)
rdoc (4.1.1, 4.1.0)
sass (3.2.19)
test-unit (2.5.5, 2.1.2.0)
timers (1.1.0)
但是當我嘗試運行「drushω-衛士」會出現一個新的問題:
$ drush omega-guard
Which theme do you want to run Guard for?
[0] : Cancel
[1] : Ohm (Subtheme of Omega) - Omega based demonstration theme. Serves as a
best-practice reference for the Omega documentation. Ohm will be
constantly updated as best practice evolves so shouldn't be used in
production.
[2] : Omega - A powerful HTML5 base theme framework utilizing tools like
Sass, Compass, Grunt, Bower, Ruby Version Manager, Bundler and more.
[3] : Design (Subtheme of Omega) - Please provide a description for
your theme.
3
There was a problem with your setup: [error]
Resolving dependencies...
Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
所以我嘗試使用命令「包安裝」了,但結束與無盡的錯誤信息:
$ bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using addressable 2.3.6
Using chunky_png 1.3.1
Using fssm 0.2.10
Using sass 3.2.19
Using compass 0.12.6
Using breakpoint 2.0.7
Using timers 1.1.0
Using celluloid 0.15.2
Using coderay 1.1.0
Using compass-blend-modes 0.0.2
Using color-schemer 0.2.8
Using compass-normalize 1.5
Using compass-rgbapng 0.2.1
Using compass-validator 3.0.1
Using css_parser 1.3.5
0 [main] ruby 15100 child_info_fork::abort: address space needed by 'fcntl.so' (0x620000) is already occupied
0 [main] ruby 11364 child_info_fork::abort: address space needed by 'fcntl.so' (0x620000) is already occupied
1 [main] ruby 14584 child_info_fork::abort: address space needed by 'fcntl.so' (0x620000) is already occupied
最後三行不斷重複,但不同的數字。那麼這次的問題是什麼?
我得到xampp安裝,當我寫「哪個php」,我得到:$ which PHP /cygdrive/c/xampp/php/php 所以我想這不是問題? – user3785699