Ruby source directories

M

Mark Volkmann

I know under the lib/ruby directory
the 1.8 directory holds built-in and standard library Ruby source code and
the gems directory holds Ruby source code for libraries install as gems.

What gets placed in site_ruby? Is it libraries not installed as gems?
Why does it contain tk code?
 
M

Matthew Smillie

I know under the lib/ruby directory
the 1.8 directory holds built-in and standard library Ruby source
code and
the gems directory holds Ruby source code for libraries install as
gems.

What gets placed in site_ruby? Is it libraries not installed as gems?
Why does it contain tk code?

site_ruby (named in convention with site_lisp and others) is a
standard location for (you guessed it) libraries.

If it contains tk code, I'd bet that something installed it there.
Neither of my installations (one came with OSX, the other built from
source) contains anything to do with tk.

matthew smillie.
 
G

Gerald Murray

in the lib/ruby/{version} branch is where all libraries installed
with the ruby distribution are placed.
the lib/ruby/site_ruby branch is for the site to use and maintain.
Library wrappers are usually placed in this branch unless
configuration options are specified to another install location.
gems use their directory.
Tk wrapper gets installed in site_ruby because it is not contained
in the ruby distribution, and this is the default install location.

regards,
Gerald
 

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
474,202
Messages
2,571,057
Members
47,662
Latest member
sxarexu

Latest Threads

Top