ruby-build: 2.2.2 fails on FreeBSD 11-CURRENT
After looking at the logs, if there’s anything else I can check for, let me know!
$ uname -a; freebsd-version
FreeBSD z600 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r286893: Tue Aug 18 18:44:28 UTC 2015 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
11.0-CURRENT
$ rbenv install 2.2.2 -v > ~/freebsd222build.log
Downloading ruby-2.2.2.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/5ffc0f317e429e6b29d4a98ac521c3ce65481bfd22a8cf845fa02a7b113d9b44
load: 0.58 cmd: curl 46215 [select] 2.37r 0.07u 0.03s 1% 9184k
giInstalling ruby-2.2.2...
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:
power_assert-0.2.2.gem
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:
--prefix=/usr/home/tony/.rbenv/versions/2.2.2
CFLAGS= -O3 -Wno-error=shorten-64-to-32
LDFLAGS=-L/usr/home/tony/.rbenv/versions/2.2.2/lib
CPPFLAGS=-I/usr/home/tony/.rbenv/versions/2.2.2/include
Verbose Log: https://gist.github.com/tony/07fa8415f3f74e1d39f6
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (10 by maintainers)
We could change ruby-build to include
--with-opt-dir=/usr/local
on FreeBSD by default if no explicit--with-opt-dir
was specified. That would take care of the problem temporarily. Future Ruby versions might fix this in their build process. What does everyone think about this?Have you tried installing libreadline or readline-devel using the package manager for FreeBSD? It seems that might fix the problem