2014-06-30 71 views
1

这就是我使用的: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 

最后三行不断重复,但不同的数字。那么这次的问题是什么?

回答

0

Drush是一个PHP应用程序,而不是Ruby应用程序。

您需要一个PHP工作环境(首先是一个PHP cli)才能使用drush。

+0

我得到xampp安装,当我写“哪个php”,我得到:$ which PHP /cygdrive/c/xampp/php/php 所以我想这不是问题? – user3785699