Skip to content
Browse files

fixed bindir in installer.rb

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1840 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
1 parent 8e701b5 commit 3331df59eb68ea43abc13605b17371d2a14bb7dd technomancy committed Jul 3, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rubygems/installer.rb
View
4 lib/rubygems/installer.rb
@@ -110,15 +110,15 @@ def initialize(gem, options={})
if options[:user_install] == false # You explicitly don't want to use ~
raise Gem::FilePermissionError, @gem_home
elsif options[:user_install].nil?
- say "Warning: falling back to user-level install since #{@gem_home} and #{@bin_dir} aren't both writable."
+ say "Warning: falling back to user-level install since #{@gem_home} and #{Gem.bindir} aren't both writable."
end
options[:user_install] = true
end
if options[:user_install]
@gem_home = Gem.user_dir
- user_bin_dir = File.join(@gem_home, 'gems', 'bin')
+ user_bin_dir = File.join(@gem_home, 'bin')
if !ENV['PATH'].split(':').include?(user_bin_dir)
say "You don't have #{user_bin_dir} in your PATH."
say "You won't be able to run gem-installed executables until you add it."

0 comments on commit 3331df5

Please sign in to comment.
Something went wrong with that request. Please try again.