Comments (8)
can you confirm that result of:
ruby -rrubygems -e 'puts(Gem.bindir(Gem.user_dir))'
is in:
echo $PATH
from rubygems-bundler.
$ 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.
what is in echo $GEM_PATH
, echo $PATH
and gem env
?
from rubygems-bundler.
and if any /etc/gemrc
/ ~/.gemrc
from rubygems-bundler.
$ 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.
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.
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.
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)
- Extract hooking up into executables as a separate gem HOT 2
- cannot run gem from default environment inside directory with deployed gems HOT 1
- add a global variable to ignore executables HOT 1
- "Unresolved specs" warning with Ruby 2.0.0-p247 and rubygems 2.0.3 HOT 9
- Could not find 'rubygems-bundler' (>= 0) HOT 4
- License missing from gemspec HOT 4
- Unable to execute tmuxinator without "bundle exec" HOT 7
- Psych double loading problem with version > 1.1.0: psych.rb: warning: already initialized constant VERSION HOT 2
- rubygems-bundler-uninstaller fails weirdly HOT 3
- error when running rake db:drop HOT 1
- Breaking the spring gem HOT 6
- rubygems-bundler-uninstaller: command not found HOT 17
- NoMethodError - undefined `name' for #<Array> HOT 1
- Gem::use_gemdeps HOT 5
- Git repo not being loaded HOT 2
- /usr/bin/env: ‘ruby_executable_hooks’: No such file or directory on Heroku after removing this gem
- Broken with Ruby 2.7.0-preview2 HOT 1
- Error when use bundler v2.1.0 HOT 3
- Homepage returns a 404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubygems-bundler.