Bug #2278
(windows) RbConfig sitearchdir differs from $: path
| Status: | Closed | Start date: | 10/26/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | core | |||
| Target version: | 1.9.2 | |||
| ruby -v: | ruby 1.9.2dev (2009-10-26) [i386-mswin32_71] |
Description
Hi, It seems in ruby 1.9.2dev, on windows, 'sitearch' may differ between RbConfig vs. ruby_initial_load_paths[]. In RbConfig, 'sitearch' is i386-msvcr71: arch => i386-mswin32_71 sitearch => i386-msvcr71 ruby_version => 1.9.1 rubylibdir => M:/dev/ruby-build/v1_9_2/lib/ruby/1.9.1 archdir => M:/dev/ruby-build/v1_9_2/lib/ruby/1.9.1/i386-mswin32_71 sitelibdir => M:/dev/ruby-build/v1_9_2/lib/ruby/site_ruby/1.9.1 sitearchdir => M:/dev/ruby-build/v1_9_2/lib/ruby/site_ruby/1.9.1/i386-msvcr71 But in $: it is i386-mswin32_71: M:/dev/ruby-build/v1_9_2/lib/ruby/site_ruby/1.9.1 M:/dev/ruby-build/v1_9_2/lib/ruby/site_ruby/1.9.1/i386-mswin32_71 M:/dev/ruby-build/v1_9_2/lib/ruby/site_ruby M:/dev/ruby-build/v1_9_2/lib/ruby/1.9.1 M:/dev/ruby-build/v1_9_2/lib/ruby/1.9.1/i386-mswin32_71 This is causing native extensions using extconf.rb to install into i386-msvcr71, but ruby can't find them since it's looking in i386-mswin32_71. (I am using Visual Studio .NET 2003 to build ruby.) Regards, Bill
Associated revisions
* win32/Makefile.sub (config.h): added RUBY_SITEARCH to use
different name from RUBY_ARCH. [ruby-core:26324]
History
Updated by nobu (Nobuyoshi Nakada) over 2 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r25492. B, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you.
Updated by spatulasnout (B Kelly) over 2 years ago
From: "Nobuyoshi Nakada" <redmine@ruby-lang.org> > > Issue #2278 has been updated by Nobuyoshi Nakada. > > Status changed from Open to Closed > % Done changed from 0 to 100 > > This issue was solved with changeset r25492. > B, thank you for reporting this issue. > Your contribution to Ruby is greatly appreciated. > May Ruby be with you. Thank *you* ! You are awesome! :D