Closed bughit closed 5 months ago
Hello, when setting CONFIGURE_OPTS, the flags specified will be passed to compilation of any software within ruby-build, not just Ruby itself. In your case, --disable-install-doc
is being passed to the compilation of OpenSSL, which naturally fails because its build mechanism doesn't recognize the flag.
To make sure your configure flags are passed only to Ruby and not anything else, use RUBY_CONFIGURE_OPTS. See https://github.com/rbenv/ruby-build#custom-build-configuration
Alternatively, you may pass ruby configure flags as arguments to rbenv install
:
rbenv install -v 2.6.10 -- --disable-install-doc
Steps to reproduce the behavior
on Ubuntu 24.04 with the latest rbenv and ruby-build run
CONFIGURE_OPTS='--disable-install-doc' rbenv install -v 2.6.10
Expected vs. actual behavior
Logs