Created attachment 160869 [details]
Verbose build log output
Also posted as issue at https://github.com/sstephenson/ruby-build/issues/805.
$ pkg info ruby-build
Name : ruby-build
Version : 20150818
Installed on : Mon Sep 7 16:51:09 CDT 2015
Origin : devel/ruby-build
Architecture : freebsd:11:*
Prefix : /usr/local
Categories : ruby devel
Licenses : MIT
Maintainer : firstname.lastname@example.org
WWW : https://github.com/sstephenson/ruby-build
Comment : Compile and install different ruby versions
RBENV : on
repo_type : binary
repository : FreeBSD
$ uname -a; freebsd-version
FreeBSD z600 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r286893: Tue Aug 18 18:44:28 UTC 2015 email@example.com:/usr/obj/usr/src/sys/GENERIC amd64
$ rbenv install 2.2.2 -v > ~/freebsd222build.log
load: 0.58 cmd: curl 46215 [select] 2.37r 0.07u 0.03s 1% 9184k
BUILD FAILED (FreeBSD 11.0-CURRENT using ruby-build 20150818)
Inspect or clean up the working tree at /tmp/ruby-build.20150908103654.46184
Results logged to /tmp/ruby-build.20150908103654.46184.log
Last 10 log lines:
installing rdoc: /usr/home/tony/.rbenv/versions/2.2.2/share/ri/2.2.0/system
installing capi-docs: /usr/home/tony/.rbenv/versions/2.2.2/share/doc/ruby
The Ruby readline extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
CFLAGS= -O3 -Wno-error=shorten-64-to-32
Verbose Log attached
I have gmake installed. It also fails with MAKE=make set.
As an update, the trick to getting it to work is RUBY_CONFIGURE_OPTS=--with-opt-dir=/usr/local.
$ RUBY_CONFIGURE_OPTS=--with-opt-dir=/usr/local rbenv install 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?
(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 , I replied and asked them to tag it. Then we can update devel/ruby-build and builds should work.
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.