捆绑器在错误的位置安装宝石 [英] Bundler installing gems in wrong location

查看:69
本文介绍了捆绑器在错误的位置安装宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这有点奇怪。每当我进行捆绑安装时,Bundler都会将我所有的gem安装到路径#{RAILS_ROOT} /json_pure/ruby/1.8/gems中。我直接从另一个运行良好的应用程序复制了Gemfile,但我认为我没有修改任何其他配置。有什么想法吗?

This is kind of bizarre. Any time I do a bundle install, Bundler installs all my gems to the path #{RAILS_ROOT}/json_pure/ruby/1.8/gems. I copied the Gemfile directly from another application that works perfectly, and I don't think I've modified any other configuration. Any ideas what could be going on here?

不确定是否有帮助,但是我的Gemfile.lock在下面:

Not sure if it helps, but my Gemfile.lock is below:

GEM
  remote: http://rubygems.org/
  specs:
    GData (0.0.4)
      builder (>= 2.1.2)
      hoe (>= 1.2.1)
    abstract (1.0.0)
    actionmailer (3.0.0.rc)
      actionpack (= 3.0.0.rc)
      mail (~> 2.2.5)
    actionpack (3.0.0.rc)
      activemodel (= 3.0.0.rc)
      activesupport (= 3.0.0.rc)
      builder (~> 2.1.2)
      erubis (~> 2.6.6)
      i18n (~> 0.4.1)
      rack (~> 1.2.1)
      rack-mount (~> 0.6.9)
      rack-test (~> 0.5.4)
      tzinfo (~> 0.3.22)
    activemodel (3.0.0.rc)
      activesupport (= 3.0.0.rc)
      builder (~> 2.1.2)
      i18n (~> 0.4.1)
    activerecord (3.0.0.rc)
      activemodel (= 3.0.0.rc)
      activesupport (= 3.0.0.rc)
      arel (~> 0.4.0)
      tzinfo (~> 0.3.22)
    activeresource (3.0.0.rc)
      activemodel (= 3.0.0.rc)
      activesupport (= 3.0.0.rc)
    activesupport (3.0.0.rc)
    arel (0.4.0)
      activesupport (>= 3.0.0.beta)
    bcrypt-ruby (2.1.2)
    builder (2.1.2)
    capybara (0.3.9)
      culerity (>= 0.2.4)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      selenium-webdriver (>= 0.0.3)
    chronic (0.2.3)
      hoe (>= 1.2.1)
    columnize (0.3.1)
    configuration (1.1.0)
    crummy (0.1.0)
    culerity (0.2.10)
    database_cleaner (0.5.2)
    devise (1.1.rc2)
      bcrypt-ruby (~> 2.1.2)
      warden (~> 0.10.7)
    erubis (2.6.6)
      abstract (>= 1.0.0)
    factory_girl (1.3.2)
    factory_girl_rails (1.0)
      factory_girl (~> 1.3)
      rails (>= 3.0.0.beta4)
    faker (0.3.1)
    ffi (0.6.3)
      rake (>= 0.8.7)
    geokit (1.5.0)
    haml (3.0.16)
    hirb (0.3.2)
    hoe (2.6.1)
      rake (>= 0.8.7)
      rubyforge (>= 2.0.4)
    hpricot (0.8.2)
    i18n (0.4.1)
    json (1.4.6)
 json_pure (1.4.6)
    launchy (0.3.7)
      configuration (>= 0.0.5)
      rake (>= 0.8.1)
    libxml-ruby (1.1.4)
    linecache (0.43)
    mail (2.2.5)
      activesupport (>= 2.3.6)
      mime-types
      treetop (>= 1.4.5)
    mime-types (1.16)
    nokogiri (1.4.3.1)
    paperclip (2.3.3)
      activerecord
      activesupport
    polyglot (0.3.1)
    populator (0.2.5)
    rack (1.2.1)
    rack-mount (0.6.9)
      rack (>= 1.0.0)
    rack-test (0.5.4)
      rack (>= 1.0)
    rails (3.0.0.rc)
      actionmailer (= 3.0.0.rc)
      actionpack (= 3.0.0.rc)
      activerecord (= 3.0.0.rc)
      activeresource (= 3.0.0.rc)
      activesupport (= 3.0.0.rc)
      bundler (>= 1.0.0.rc.1)
      railties (= 3.0.0.rc)
    railties (3.0.0.rc)
      actionpack (= 3.0.0.rc)
      activesupport (= 3.0.0.rc)
      rake (>= 0.8.3)
      thor (~> 0.14.0)
 rake (0.8.7)
    roo (1.3.11)
      GData (>= 0.0.4)
      hpricot (>= 0.6)
      libxml-ruby (>= 1.1.3)
      rubyzip (>= 0.9.1)
      spreadsheet (>= 0.6.4)
    ruby-debug (0.10.3)
      columnize (>= 0.1)
      ruby-debug-base (~> 0.10.3.0)
    ruby-debug-base (0.10.3)
      linecache (>= 0.3)
    ruby-ole (1.2.10.1)
    rubyforge (2.0.4)
      json_pure (>= 1.1.7)
    rubyzip (0.9.4)
    selenium-webdriver (0.0.27)
      ffi (>= 0.6.1)
      json_pure
      rubyzip
    shoulda (2.11.0)
    spork (0.8.4)
    spreadsheet (0.6.4.1)
      ruby-ole
    sqlite3-ruby (1.3.1)
    thor (0.14.0)
    treetop (1.4.8)
      polyglot (>= 0.3.1)
    tzinfo (0.3.22)
    warden (0.10.7)
      rack (>= 1.0.0)
    will_paginate (3.0.pre)
    wirble (0.1.3)
PLATFORMS
  ruby

DEPENDENCIES
  capybara
  chronic
  crummy
  database_cleaner
  devise (= 1.1.rc2)
  factory_girl_rails
  faker
  geokit
  haml
  hirb
  hpricot
  json
  launchy
  paperclip
  populator
  rails (= 3.0.0.rc)
  roo (= 1.3.11)
  ruby-debug
  shoulda (= 2.11)
  spork
  sqlite3-ruby
  will_paginate (= 3.0.pre)
  wirble


推荐答案

如果不小心键入 bundle安装SOME_GEM 似乎将您的gem目录永久设置为SOME_GEM。

If you accidentally type bundle install SOME_GEM it seems to permanently set your gem directory to SOME_GEM.

看起来您可以使用恢复正常捆绑安装--system

命令行用户界面失败

从以下位置算出: http://www.theirishpenguin.com/2011/03/05/bundler-installing-gems-into-the-w rong-directory-mea-culpa /

这篇关于捆绑器在错误的位置安装宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆