Skip to content

Separate RUBY_PREFIX_PATH and RUBY_MAKE_INSTALL_OPTS="DESTDIR" paths don't work in Ruby 2 #686

@cspicer

Description

@cspicer

Hello!

This might not necessarily be an implementation bug but rather a change in which envvars are parsed and where in Ruby 1.9.3 vs Ruby 2. I'm experiencing the same issue described in this comment of #493.

The following options work for Ruby 1.9.3:

env YAML_CONFIGURE_OPTS="--enable-static --disable-shared --with-pic" \
RUBY_CONFIGURE_OPTS="--disable-install-doc" \
RUBY_MAKE_INSTALL_OPTS="DESTDIR=/tmp/ruby-build-1.9.3" \
RUBY_PREFIX_PATH="/usr/lib/ruby/1.9.3-p484" \
ruby-build --verbose 2.1.5 /tmp/ruby-build-1.9.3

but this fails under 2.1.5:

env YAML_CONFIGURE_OPTS="--enable-static --disable-shared --with-pic" \
RUBY_CONFIGURE_OPTS="--disable-install-doc" \
RUBY_MAKE_INSTALL_OPTS="DESTDIR=/tmp/ruby-build-2.1.5" \
RUBY_PREFIX_PATH="/usr/lib/ruby/2.1.5" \
ruby-build --verbose 2.1.5 /tmp/ruby-build-2.1.5

with this error:

installing default gems:      /usr/lib/ruby/2.1.5/lib/ruby/gems/2.1.0 (build_info, cache, doc, extensions, gems, specifications)
                              bigdecimal 1.2.4
                              io-console 0.4.2
                              json 1.8.1
                              minitest 4.7.5
                              psych 2.0.5
                              rake 10.1.0
                              rdoc 4.1.0
                              test-unit 2.1.5.0
/usr/local/bin/ruby-build: line 878: /tmp/ruby-build-2.1.5/bin/ruby: No such file or directory

BUILD FAILED (Ubuntu 12.04 using ruby-build 20141222)

Inspect or clean up the working tree at /tmp/ruby-build.20141224005327.32703
Results logged to /tmp/ruby-build.20141224005327.32703.log

Last 10 log lines:
installing default gems:      /usr/lib/ruby/2.1.5/lib/ruby/gems/2.1.0 (build_info, cache, doc, extensions, gems, specifications)
                              bigdecimal 1.2.4
                              io-console 0.4.2
                              json 1.8.1
                              minitest 4.7.5
                              psych 2.0.5
                              rake 10.1.0
                              rdoc 4.1.0
                              test-unit 2.1.5.0
/usr/local/bin/ruby-build: line 878: /tmp/ruby-build-2.1.5/bin/ruby: No such file or directory

Again, this probably isn't a bug in ruby-build but is an issue I'm running into trying to generate a Ruby install that can be packaged using fpm. Any insights would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions