Summary: | devel/ruby-build: install 2.2.x fails | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Tony Narlock <tony> | ||||
Component: | Individual Port(s) | Assignee: | Michael Moll <mmoll> | ||||
Status: | Closed Not Accepted | ||||||
Severity: | Affects Only Me | CC: | meta, mmoll | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(meta) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Tony Narlock
2015-09-09 17:25:30 UTC
As an update, the trick to getting it to work is RUBY_CONFIGURE_OPTS=--with-opt-dir=/usr/local. So: $ RUBY_CONFIGURE_OPTS=--with-opt-dir=/usr/local rbenv install 2.2.2 Downloading ruby-2.2.2.tar.gz... -> https://dqw8nmjcqpjn7.cloudfront.net/5ffc0f317e429e6b29d4a98ac521c3ce65481bfd22a8cf845fa02a7b113d9b44 Installing ruby-2.2.2... Installed ruby-2.2.2 to /usr/home/tony/.rbenv/versions/2.2.2 I think it's no good to build rubygem-* ports with rbenv/rvm. Does it work with lang/ruby22 installed and used? (In reply to Michael Moll from comment #2) As an update: I'm talking this over on there tracker at https://github.com/sstephenson/ruby-build/issues/805#issuecomment-143547211. They are open to fixing this. > I think it's no good to build rubygem-* ports with rbenv/rvm. Does it work with lang/ruby22 installed and used? Maybe I'm misunderstanding, can you clarify this? Do you mean that if the user's environment was sourced using rbenv/rvm, it could conflict with building ports? (In reply to Tony Narlock from comment #3) > Do you mean that if the user's environment was sourced using rbenv/rvm, > it could conflict with building ports? exactly. (In reply to Michael Moll from comment #4) I created a separate topic at bug #203429 for this, where I expand upon that a bit and test building a port. So far, I haven't seen a conflict. If I'm misunderstanding or you have more to add we can continue that discussion there. The scope of our current issue is related to a library not getting detected on the system when building ruby. The fix for it is adding `RUBY_CONFIGURE_OPTS=--with-opt-dir=/usr/local` to the ruby-build(1) or `rbenv install` command. I've spoken with one of the upstream maintainers and they said could fix it [1], I replied and asked them to tag it. Then we can update devel/ruby-build and builds should work. [1] https://github.com/sstephenson/ruby-build/issues/805#issuecomment-143547211 I'm just saying that the ruby-ports from the ports collection are designed to work with the lang/ruby* ports and not tested in any way otherwise. My personal experience (mainly on Linux and OSX) is that mixing any package/ports system with things like rvm/rbenv/similar is crying to blow up into your face. Actually I'm surprised it's working that well for you. :) Waiting for upstream fix. I've submitted Bug 203946 updates to 20150928 but probably not fixed yet. I'm leaning towards closing this, as the original problem is something not supported by the ports collection anyway. Closing this for the reasons stated above. |