views:

511

answers:

2

I would like to install Rails 3.0 Beta but ran into what appears to be a dependency error:

$: sudo gem install rack-mount
Successfully installed rack-mount-0.5.1
1 gem installed
Installing ri documentation for rack-mount-0.5.1...
Installing RDoc documentation for rack-mount-0.5.1...



$: sudo gem install rails --prerelease
ERROR:  Error installing rails:
    actionpack requires rack-mount (~> 0.4.0, runtime)

Why is it unable to recognize that rack-mount is already installed?

+1  A: 
gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
gem install rails --pre

If it still doesn't work make sure you drop the rack-mount gem.

My other question is whether you're using RVM or not.

Chuck Vose
+5  A: 

As noted in the comments here, you need rack-mount at exactly version 0.4.0. Install with the following command:

gem install rack-mount -v 0.4.0
Damien Wilson