Library directory structure on windows

  • Thread starter Gavri Savio Fernandez
  • Start date
G

Gavri Savio Fernandez

hi everyone,
i'm trying to understand the significance of the subdirectories of lib, but i don't understand what each of them are for

lib/
ruby/
1.8/
site_ruby/
1.8/


the current problem is that i've downloaded 'iowa' and i don't understand where i should place it in this directory structure.

another query: none of the libraries with the standard distribution are in directories with names ending in version numbers. however, any library i download from the internet has a version number appended to the directory in which it is packaged. this probably sounds silly, but i want to know what the convention is. do i strip out the version number from the directory name before placing it under the ruby/lib directory?

thank you

Gavri Savio Fernandez
___________________________________________
I wish I would have a real tragic love affair and get so bummed out that I'd just quit my job and become a bum for a few years, because I was thinking about doing that anyway. - Jack handy
 
G

Gavin Sinclair

hi everyone,
i'm trying to understand the significance of the subdirectories of
lib, but i don't understand what each of them are for
lib/
ruby/
1.8/

Ruby "standard libraries" go here. benchmark, cgi, test/unit, ...
site_ruby/

Some packages will install here but it's not recommended.

Packages you download should install here.

the current problem is that i've downloaded 'iowa' and i don't
understand where i should place it in this directory structure.

It should come with an installer. See if there are installation
instructions in a README or INSTALL.
another query: none of the libraries with the standard distribution
are in directories with names ending in version numbers. however,
any library i download from the internet has a version number
appended to the directory in which it is packaged. this probably
sounds silly, but i want to know what the convention is. do i strip
out the version number from the directory name before placing it
under the ruby/lib directory?

As above, you don't place it in the lib area manually. Let the
installer do the work. It will decide where to put the files (almost
certainly under lib/ruby/site_ruby/1.8/iowa/).

The things you download should be versioned so you can have them
sitting side by side. The runtime files aren't versioned as you can
only have one version installed at a time.
thank you

No worries.

Cheers,
Gavin
 

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,141
Messages
2,570,813
Members
47,357
Latest member
sitele8746

Latest Threads

Top