Giter Club home page Giter Club logo

Comments (8)

mpapis avatar mpapis commented on June 30, 2024

can you confirm that result of:

ruby -rrubygems -e 'puts(Gem.bindir(Gem.user_dir))'

is in:

echo $PATH

from rubygems-bundler.

postmodern avatar postmodern commented on June 30, 2024
$ ruby -rrubygems -e 'puts(Gem.bindir(Gem.user_dir))'
/home/hal/.gem/ruby/1.9.1/bin
$ echo $GEM_HOME
/home/hal/.gem/ruby/1.9.3

Note that Gem.user_dir does not respect $GEM_HOME. Also Gem.bindir argument defaults to Gem.dir, so you probably want to call Gem.bindir without an argument.

from rubygems-bundler.

mpapis avatar mpapis commented on June 30, 2024

what is in echo $GEM_PATH, echo $PATH and gem env?

from rubygems-bundler.

mpapis avatar mpapis commented on June 30, 2024

and if any /etc/gemrc / ~/.gemrc

from rubygems-bundler.

postmodern avatar postmodern commented on June 30, 2024
$ echo $GEM_PATH
/home/hal/.gem/ruby/1.9.3:/opt/rubies/ruby-1.9.3-p392/lib/ruby/gems/1.9.1
$ echo $PATH
/home/hal/.gem/ruby/1.9.3/bin:/opt/rubies/ruby-1.9.3-p392/lib/ruby/gems/1.9.1/bin:/opt/rubies/ruby-1.9.3-p392/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/hal/bin:/home/hal/bin

from rubygems-bundler.

postmodern avatar postmodern commented on June 30, 2024

Nothing significant in ~/.gemrc. Here's my gem env:

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.23
  - RUBY VERSION: 1.9.3 (2013-02-22 patchlevel 392) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/hal/.gem/ruby/1.9.3
  - RUBY EXECUTABLE: /opt/rubies/ruby-1.9.3-p392/bin/ruby
  - EXECUTABLE DIRECTORY: /home/hal/.gem/ruby/1.9.3/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/hal/.gem/ruby/1.9.3
     - /opt/rubies/ruby-1.9.3-p392/lib/ruby/gems/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-rdoc"
     - "pgp_keyid" => 3109117559
  - REMOTE SOURCES:
     - http://rubygems.org/

from rubygems-bundler.

mpapis avatar mpapis commented on June 30, 2024

there is something wrong, why would the gem execute from /home/hal/.gem/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb? It is clearly using Gem.user_dir for loading rake gem.

what is the path for which rake and can you gist the file, also env | grep "^RUBY"

from rubygems-bundler.

postmodern avatar postmodern commented on June 30, 2024

Actually, I can't seem to reproduce this with a Gemfile that requires rake ~> 0.9 and with rake 10.0.04 installed. I suspect I might have ran rake on a different branch that didn't have a .ruby-version file, and that I didn't have rubygems-bundler installed in my default Ruby.

Closing.

from rubygems-bundler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.