Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

ruby: Fix undefined method and directory not empty errors #29986

Closed
wants to merge 1 commit into from
Closed

ruby: Fix undefined method and directory not empty errors #29986

wants to merge 1 commit into from

Conversation

anemator
Copy link
Contributor

@anemator anemator commented Jun 9, 2014

Fixes #29982

Anyone know why the symlink extension method isn't working?

@mistydemeo
Copy link
Member

Anyone know why the symlink extension method isn't working?

I assume it's a typo - our Pathname extension doesn't have a symlink method, it has install_symlink.

@anemator
Copy link
Contributor Author

anemator commented Jun 9, 2014

Well that would explain it. Strangely I remember the link.symlink call working for me. I'll have to poke around those old commits...

@mistydemeo
Copy link
Member

Unfortunately the Ruby buildsystem doesn't seem to respect GEM_HOME, to redirect the builtin gem installation location.

@anemator
Copy link
Contributor Author

anemator commented Jun 9, 2014

Is it possible to install ruby without those default gems but still with
the gem command/binary? I see disable rubygems flag in configure, but I'm
not sure exactly what it does
On Jun 9, 2014 11:52 AM, "Misty De Meo" [email protected] wrote:

Unfortunately the Ruby buildsystem doesn't seem to respect GEM_HOME, to
redirect the builtin gem installation location.


Reply to this email directly or view it on GitHub
#29986 (comment).

mistydemeo added a commit to mistydemeo/homebrew that referenced this pull request Jun 13, 2014
This configures rubygems to install all gems into a public, non-versioned
directory by default - both gems and their binaries. (This means that
users no longer need /usr/local/opt/ruby/bin in their PATH.)

This means that we no longer have to monkey with gem directories at all
in postinstall. Bundled gems will be symlinked into this location.

Fixes Homebrew#29982.
Closes Homebrew#29986.
mistydemeo added a commit to mistydemeo/homebrew that referenced this pull request Jun 13, 2014
This configures rubygems to install all gems into a public, non-versioned
directory by default - both gems and their binaries. (This means that
users no longer need /usr/local/opt/ruby/bin in their PATH.)

This means that we no longer have to monkey with gem directories at all
in postinstall. Bundled gems will be symlinked into this location.

Fixes Homebrew#29982.
Closes Homebrew#29986.
@mistydemeo
Copy link
Member

Pushed an alternate fix.

steve-ayerhart pushed a commit to steve-ayerhart/homebrew that referenced this pull request Jun 19, 2014
This configures rubygems to install all gems into a public, non-versioned
directory by default - both gems and their binaries. (This means that
users no longer need /usr/local/opt/ruby/bin in their PATH.)

This means that we no longer have to monkey with gem directories at all
in postinstall. Bundled gems will be symlinked into this location.

Fixes Homebrew#29982.
Closes Homebrew#29986.
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ruby: postinstall fail
2 participants