Project

General

Profile

Actions

Bug #6903

closed

[[Ruby 1.9:]] --enable-load-relative broken on systems with /lib64

Added by mpapis (Michal Papis) almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Backport:
[ruby-core:47267]

Description

=begin
Trying to build ruby with --enable-load-relative on system where libraries are by default stored in lib64.

This leads to this error on most ruby operations, with minimal example ruby -e 'p :a':

<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
   	    from <internal:gem_prelude>:1:in `<compiled>'

It works when I prefix it with RUBYLIB:

RUBYLIB=/home/mpapis/.rvm/rubies/ruby-1.9.3-p194/lib64/ruby/:/home/mpapis/.rvm/rubies/ruby-1.9.3-p194/lib64/ruby/1.9.1/:/home/mpapis/.rvm/rubies/ruby-1.9.3-p194/lib64/ruby/1.9.1/x86_64-linux/ /home/mpapis/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -e 'p :a'

So the lib64 path was not respected, I have prepared the attached patch and compiled using it but it did not helped.

The only thing I could use to fix it was compiling using additional configure flag:

--libdir=/home/mpapis/.rvm/rubies/ruby-1.9.3-p194/lib

so the default detected lib64 was overwritten and it all worked fine.

The check for the libdir is: gcc -print-multi-os-directory

Under this address should be a link to vagrant box for system that has lib64 as default: https://github.com/jtperry/OpenSuseVagrantBox

The best solution would be to fix loading libraries from the custom paths, but if it is not possible it would be also good enough to force libdir=.../lib if not specified by user.
=end


Files

ruby-multilib.patch (626 Bytes) ruby-multilib.patch example patch for ompilation mpapis (Michal Papis), 08/22/2012 11:16 AM
ruby-multilib.patch (899 Bytes) ruby-multilib.patch fixed initial patch for ruby-head mpapis (Michal Papis), 08/27/2012 05:07 AM
ruby-multilib.patch (832 Bytes) ruby-multilib.patch fixed initial patch for ruby-1.9.3-p194 mpapis (Michal Papis), 08/27/2012 07:52 AM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)Closednobu (Nobuyoshi Nakada)10/16/2012Actions
Actions

Also available in: Atom PDF