Ruby install question

My initial knee jerk response is that /opt/ruby is not guaranteed to exist.
But, I’m not a sun expert. Will /opt always exist?

···

-----Original Message-----
From: Jim Freeze [mailto:jim@freeze.org]
Sent: Tuesday, June 03, 2003 8:52 AM
To: ruby-talk@ruby-lang.org
Subject: Re: Ruby install question

On Tuesday, 3 June 2003 at 23:05:17 +0900, Brian Candler wrote:

On Tue, Jun 03, 2003 at 10:59:26PM +0900, Jim Freeze wrote:

My original solution was to locally do:

./configure --prefix=/path_to_ruby
make
cd …
tar czvf ruby.tgz ruby

to get a ruby.tgz bindist. Then each site just does:

tar xzvf ruby.tgz
cd ruby
make install

The problem is that the --prefix for each site is not
guaranteed to be the same.

A lateral answer which is probably not what you want: but if you
configure it to install in /opt/ruby (say), then before installation
on the target machine you can make a symlink from /opt/ruby to
wherever it should permanently live.


Jim Freeze

Wait - are all these machines Sun boxes? If so, I’d recommend using the
package at http://www.sunfreeware.com. If not…nevermind. :slight_smile:

Regards,

Dan

Can’t get the latest from these guys.

My guess is that the powers that be don’t like packages
from the outside. Is there a good reason for this?

Also, in the future we will be adding Linux boxes to the mix.
Seems it would be better if we had an inhouse solution
to keep the two in sync.

···

On Wednesday, 4 June 2003 at 0:14:13 +0900, Berger, Daniel wrote:

-----Original Message-----
From: Jim Freeze [mailto:jim@freeze.org]
Sent: Tuesday, June 03, 2003 8:52 AM
To: ruby-talk@ruby-lang.org
Subject: Re: Ruby install question

Wait - are all these machines Sun boxes? If so, I’d recommend using the
package at http://www.sunfreeware.com. If not…nevermind. :slight_smile:


Jim Freeze

I have yet to see any problem, however complicated, which, when looked
at in the right way, did not become still more complicated.
– Poul Anderson

I thought I would post the results of a study recently done on
the order of Ruby’s library search path. I believe it to be
correct, but if anyone sees a problem, please post a correction.

Library Search Path Order

PATH (Example) NAME HOW DEFINED

···

On Wednesday, 4 June 2003 at 0:32:52 +0900, Jim Freeze wrote:

=========================================================================
some_path none -r added command line path
some_path RUBYLIB RUBYLIB Environment variable
some_path RUBY_SEARCH_PATH --with-sitedir
PREFIX/lib/ruby/site_ruby/1.8 RUBY_SITE_LIB2
PREFIX/lib/ruby/site_ruby/1.8/arch RUBY_SITE_ARCHLIB
PREFIX/lib/ruby/site_ruby RUBY_SITE_LIB
PREFIX/lib/ruby/1.8 RUBY_LIB
PREFIX/lib/ruby/1.8/arch RUBY_ARCHLIB
. none local directory


Jim Freeze

The greatest dangers to liberty lurk in insidious encroachment by men
of zeal, well-meaning but without understanding.
– Justice Louis D. Brandeis