这就是我正在使用的:Windows 8. Cygwin32。 Rvm版本1.25.27。 Ruby版本2.1.2p95。宝石版本2.3.0。 Drush版本5.9。 Bundler版本1.6.3。我的宝石列表如下所示:
$ 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.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 omega-guard”,但最终只会出现错误。首先它告诉我运行“bundle install”。
$ 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”。当我这样做时,我最终得到一个无尽的错误信息,其中最后两行不断重复自己,但每次都有不同的数字。
$ 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 12988 child_info_fork::abort: address space needed by 'fcntl.so' (0x760000) is already occupied
0 [main] ruby 7192 child_info_fork::abort: address space needed by 'date_core.so' (0x5A0000) is already occupied
所以我按ctrl + C取消它并以此结束:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/I/.rvm/rubies/ruby-2.1.2/bin/ruby.exe extconf.rb
Resource temporarily unavailable - /home/I/.rvm/rubies/ruby-2.1.2/bin/ruby.exe extconf.rb 2>&1
Gem files will remain installed in /home/I/.rvm/gems/ruby-2.1.2/gems/eventmachine-1.0.3 for inspection.
Results logged to /home/I/.rvm/gems/ruby-2.1.2/extensions/x86-cygwin/2.1.0/eventmachine-1.0.3/gem_make.out
然后无休止的错误消息再次继续,所以我再次按ctrl + C并得到这个:
An error occurred while installing eventmachine (1.0.3), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.
当我尝试“gem install eventmachine -v'1.0.3'时,我再次得到无尽的错误消息,我再次用ctrl + C取消:
$ gem install eventmachine -v '1.0.3'
Building native extensions. This could take a while...
0 [main] ruby 3396 child_info_fork::abort: address space needed by 'fcntl.so' (0x380000) is already occupied
0 [main] ruby 7192 child_info_fork::abort: address space needed by 'date_core.so' (0x5A0000) is already occupied
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/home/I/.rvm/rubies/ruby-2.1.2/bin/ruby.exe extconf.rb
Resource temporarily unavailable - /home/I/.rvm/rubies/ruby-2.1.2/bin/ruby.exe extconf.rb 2>&1
Gem files will remain installed in /home/I/.rvm/gems/ruby-2.1.2/gems/eventmachine-1.0.3 for inspection.
Results logged to /home/I/.rvm/gems/ruby-2.1.2/extensions/x86-cygwin/2.1.0/eventmachine-1.0.3/gem_make.out
我找到了关于如何安装eventmachine的说明,我试了一下。据说按照他们的步骤:
git clone git://github.com/eventmachine/eventmachine.git
cd eventmachine
rake gem
gem install pkg/eventmachine-0.12.3.gem
gem install thin rack
(http://snippets.aktagon.com/snippets/289-how-to-install-thin-rack-and-eventmachine-on-windows-cygwin)我试了一下,得到了这个:
$ git clone git://github.com/eventmachine/eventmachine.git
Cloning into 'eventmachine'...
remote: Reusing existing pack: 4744, done.
remote: Total 4744 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (4744/4744), 2.04 MiB | 44 KiB/s, done.
Resolving deltas: 100% (2607/2607), done.
I@I ~/.rvm/gems
$ cd eventmachine
I@I ~/.rvm/gems/eventmachine
$ rake gem
rake-compiler gem seems to be missing. Please install it with
gem install rake-compiler
(add sudo if necessary).
rake aborted!
uninitialized constant Rake::ExtensionTask
/home/I/.rvm/gems/eventmachine/rakelib/package.rake:44:in `<top (required)>'
(See full trace by running task with --trace)
I@I ~/.rvm/gems/eventmachine
$ gem install rake-compiler
Fetching: rake-compiler-0.9.2.gem (100%)
ERROR: While executing gem ... (TypeError)
no implicit conversion of nil into String
我真的想自己解决我的问题,但我有点绝望了。一旦一个问题得到解决,另一个就会发生。我对这一切都是全新的,我想做的就是能够运行“drush omega-guard”,这样我就可以继续学习本教程了:https://www.youtube.com/watch?v=AZw8J1zfzZk&index=9&list=PLLnpHn493BHH5nnK2dKE_42l1oXA6Tq6H我感谢我能得到的任何帮助。