Re: Whither site_ruby?

Shugo Maeda <[email protected]> Wed, 19 Jan 2005 12:46:14 +0900
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hi,

Dan Cross wrote:
>>``make site-install'' installs libraries into /sw/lib/ruby/1.8/1.8 on my
>>machine.
> 
> 
> Even the corrected path, /sw/lib/ruby/1.8, is not where I want them to
> go.  I want them to go into ${prefix}/lib/ruby/site_ruby/1.8, which I
> then merge into /sw/lib/ruby/site_ruby/1.8 with stow (or epkg, or a similar
> tool).  In this case, ${prefix} is not ``/sw'', but something like
> ``/contrib/packages/mod_ruby/1.2.4.''

--with-search-path option of configure of ruby may help you.

  $ ./configure --with-search-path=/sw/lib/ruby/site_ruby/1.8

--with-search-path adds /sw/lib/ruby/site_ruby/1.8 to $:, but do not
change $sitedir.

> But I am curious why Ruby doesn't install
> into site_ruby by default;

The recent ruby installs extension libraries into sitedir by default.
mod_ruby installs them into rubylibdir by the historical reason, but
It may be the time to change it.

Shugo