Ruby gem error when installing rack + Rails

I would like to install Rails 3.0 Beta, but encountered 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 can't he recognize that the rack is already installed?

+4
source share
2 answers

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

 gem install rack-mount -v 0.4.0 
+7
source
 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 stone in the rack.

My other question is whether you use RVM or not.

+1
source

Source: https://habr.com/ru/post/1301518/


All Articles