You are not logged in.

#1 2012-04-17 00:04:02

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

'gem install rails' seems to miss a bunch of dependencies

I followed the Arch Wiki instructions for installing rails. (Though I modified /etc/gemrc to do a system install). 'gem update' worked fine, 'gem install rails' worked fine... But when I try to create a test app for rails as per the wiki:

$ rails new testapp_name

The console spits out an error such as this:

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.9.1/cache/coffee-rails-3.2.2.gem] in /home/proteus/testapp_name
An error occured while installing coffee-rails (3.2.2), and Bundler cannot continue.
Make sure that `gem install coffee-rails -v '3.2.2'` succeeds before bundling.

So I run 'gem install coffee-rails' and try again, and lo and behold another message appears:

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.9.1/cache/jquery-rails-2.0.2.gem] in /home/proteus/testapp_name
An error occured while installing jquery-rails (2.0.2), and Bundler cannot continue.
Make sure that `gem install jquery-rails -v '2.0.2'` succeeds before bundling.

It looks like gem failed to install a large number of dependencies (of Bundler?) and is now leaving me to install them manually. Can I make the dependency resolution work properly here? Failing that, can I get a list of missing dependencies so I can manually install the rest of them?

Offline

#2 2012-04-18 15:49:59

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: 'gem install rails' seems to miss a bunch of dependencies

Okay, FWIW, here is the list of stuff needed...

Using rake (0.9.2.2) 
Using i18n (0.6.0) 
Using multi_json (1.3.2) 
Using activesupport (3.2.3) 
Using builder (3.0.0) 
Using activemodel (3.2.3) 
Using erubis (2.7.0) 
Using journey (1.0.3) 
Using rack (1.4.1) 
Using rack-cache (1.2) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.1.2) 
Using actionpack (3.2.3) 
Using mime-types (1.18) 
Using polyglot (0.3.3) 
Using treetop (1.4.10) 
Using mail (2.4.4) 
Using actionmailer (3.2.3) 
Using arel (3.0.2) 
Using tzinfo (0.3.33) 
Using activerecord (3.2.3) 
Using activeresource (3.2.3) 
Using bundler (1.1.3) 
Using coffee-script-source (1.3.1) 
Using execjs (1.3.0) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.2) 
Using json (1.6.6) 
Using rdoc (3.12) 
Using thor (0.14.6) 
Using railties (3.2.3) 
Using coffee-rails (3.2.2) 
Using jquery-rails (2.0.2) 
Using rails (3.2.3) 
Using sass (3.1.15) 
Using sass-rails (3.2.5) 
Using sqlite3 (1.3.6) 
Using uglifier (1.2.4)

I'd still like to know how to get all that in the future!

Offline

Board footer

Powered by FluxBB