From: Eric Hodel Date: 2011-08-24T06:39:16+09:00 Subject: Re: mkmf & config question On Aug 22, 2011, at 5:49 AM, serialhex wrote: > ok so check this out: > > pry(main)> require 'mkmf' > => true > pry(main)> CONFIG['sitedir'] > => "$(libdir)/ruby/site_ruby" > pry(main)> CONFIG['libdir'] > => "$(exec_prefix)/lib" > pry(main)> CONFIG['exec_prefix'] > => "$(prefix)" > pry(main)> CONFIG['prefix'] > => "/home/serialhex/.rvm/rubies/ruby-1.8.7-p352" > pry(main)> CONFIG['prefix'] = '/foo/bar' > => "/foo/bar" > pry(main)> Config::expand CONFIG['sitedir'] > => "/home/serialhex/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby" > pry(main)> CONFIG['prefix'] > => "/foo/bar" > > why when i change CONFIG['prefix'] to '/foo/bar' does it not > change Config::expand CONFIG['sitedir'] to "/foo/bar/lib/ruby/site_ruby"??? > and how would i get it to do that? Install ruby like: ./configure --prefix=/foo/bar make make install DO NOT CHANGE THE ENTRIES IN RbConfig::CONFIG, IT WILL ONLY LEAD TO MADNESS Please explain why you want to change the prefix of ruby so we can answer your question properly.