Setting up Ruby libraries

J

Joe Van Dyk

In my group, we typically set up software dependencies like this:

/libraries
/gtk
/2.4.11
/rhel3
/usr/
/bin/
/share
/lib
/irix
# etc
/gcc
/3.3.1
/bin
#etc


So, we have libraries and utilities that we depend on installed to a
separate directory, one directory for each different version and
architecture. How can we do the same with Ruby and its libraries?
I'd like to see something like:

/ruby
/1.8.4
/rhel3
# ruby stuff
/1.8.5
/rhel3
/irix
# ruby stuff

/ruby-gnome2
/0.14.1
/rhel3
/irix
/0.15.1
etc

/rmagick
/1.0
/2.0

So, each different Ruby library or gem would be installed to a
different folder. Is that possible? By default, all the Ruby
libraries and gems are installed inside the Ruby directory. And I
think I'd prefer to keep them separate.

Any advice?

Thanks,
Joe
 
T

transfire

Joe said:
Simpler question:

Ruby is installed in /foo. I want to install a Ruby library to /goo,
and another Ruby library to /bar. How straight forward is that to set
up? What flags to I need to give to each libraries setup.rb or
exec_conf.rb?

sudo ruby setup.rb install --prefix="foo"

You'll either need to symlink into the typical paths or add to the
$LOAD_PATH.

BTW, gems basically does this already, albiet foo-1.0.0/, Not usre
about architecture though.

Also, I have a project that relates to this, so I'm wonder what you
working on?

T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top