为什么这个Rails Gem不会冻结?

时间:2010-11-04 17:34:40

标签: ruby-on-rails rubygems

我已将以下内容添加到我的environment.rb:

config.gem "json", :version => '>=1.2.3'

当我跑步时

rake rails:freeze:gems

json gem没有安装。我得到了

Freezing to the gems for Rails 2.3.8
rm -rf vendor/rails
mkdir -p vendor/rails
cd vendor/rails
Unpacked gem: '/Users/chad/www/aromapersona.localhost/vendor/rails/activesupport-2.3.8'
mv activesupport-2.3.8 activesupport
Unpacked gem: '/Users/chad/www/aromapersona.localhost/vendor/rails/activerecord-2.3.8'
mv activerecord-2.3.8 activerecord
Unpacked gem: '/Users/chad/www/aromapersona.localhost/vendor/rails/actionpack-2.3.8'
mv actionpack-2.3.8 actionpack
Unpacked gem: '/Users/chad/www/aromapersona.localhost/vendor/rails/actionmailer-2.3.8'
mv actionmailer-2.3.8 actionmailer
Unpacked gem: '/Users/chad/www/aromapersona.localhost/vendor/rails/activeresource-2.3.8'
mv activeresource-2.3.8 activeresource
Unpacked gem: '/Users/chad/www/aromapersona.localhost/vendor/rails/rails-2.3.8'
cd -

我也试过

rake gems:unpack:dependencies

rake gems:unpack

但我没有输出,并且仍未安装gem。

我运行了错误的命令吗?我误解了什么吗?

注意:我已经在vendor / gem上安装了一些gem。我不记得我是怎么做到的。

1 个答案:

答案 0 :(得分:0)

找到答案here

cd vendor/gems
gem unpack active_support