[Rubygems-developers] [ rubygems-Bugs-27641 ] Gem.default_bindir is hardcoded on Mac

noreply at rubyforge.org noreply at rubyforge.org
Sat Feb 6 21:12:07 EST 2010


Bugs item #27641, was opened at 2009-12-30 14:47
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27641&group_id=126

Category: other
Group: v1.3.x
>Status: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Max Howell (mxcl)
>Assigned to: Eric Hodel (drbrain)
Summary: Gem.default_bindir is hardcoded on Mac

Initial Comment:
The following code in defaults.rb means `gem --bindir /foo/bin` won't work on OS X:

  def self.default_bindir
    if defined? RUBY_FRAMEWORK_VERSION then # mac framework support
      '/usr/bin'
    else # generic install
      ConfigMap[:bindir]
    end
  end

It also means setting: `gem: --bindir /foo/bin` in .gemrc doesn't work.

----------------------------------------------------------------------

>Comment By: Eric Hodel (drbrain)
Date: 2010-02-06 18:12

Message:
This is only the default (thus the name "default_bindir").  The override works fine for me.

$ gem install rake -i ~/tmp/gems --no-rdoc --no-ri -n ~/tmp/bin
Successfully installed rake-0.8.7
1 gem installed
$ ls ~/tmp/bin/
rake*
$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
$ which ruby
/usr/bin/ruby

----------------------------------------------------------------------

Comment By: Christopher Lerum (chrislerum)
Date: 2010-01-18 08:20

Message:
Oh good, someone else has noticed this. I sure hope this gets fixed. Don't like hack hack ;)

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27641&group_id=126


More information about the Rubygems-developers mailing list