AlexVangelov / sencha-touch-rails

Using Sencha Touch with Rails
Other
26 stars 10 forks source link

Missing dependency gem 'rubyzip' #8

Open cseelus opened 9 years ago

cseelus commented 9 years ago

When trying to install this gem on a clean machine (Ruby 2.2.0, RubyGems 2.4.5, Bundler 1.7.12), it fails with:

Building native extensions.  This could take a while...
/usr/local/opt/ruby/bin/ruby mkrf_conf.rb
/usr/local/opt/ruby/bin/ruby -rubygems /usr/local/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake RUBYARCHDIR=/usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0/sencha-touch-rails-2.0.1 RUBYLIBDIR=/usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0/sencha-touch-rails-2.0.1
rake aborted!
LoadError: cannot load such file -- zip

(See full trace by running task with --trace)
ERROR:  Error installing sencha-touch-rails:
    ERROR: Failed to build gem native extension.

Manually installing 'rubyzip' (rubyzip-1.1.6.gem) beforehand solves this and sencha-touch-rails will install just fine.

AlexVangelov commented 9 years ago

Yep, I add rubyzip only as development dependency, so this error may happen in other environments. I'll fix it. Thank you!

cseelus commented 9 years ago

The pleasures all mine