RUBYLIB on windows

How do i set rubylib on windows?

Specifically I would like to ask a directory like

/Depot/Ruby/Source/

which contains my ruby scripts.

(PS: Windows drives me crazy... things which are easy on Linux seem to
be quite hard on Windows)

···

--
Posted via http://www.ruby-forum.com/.

Marc Heiler wrote:

How do i set rubylib on windows?

Specifically I would like to ask a directory like

/Depot/Ruby/Source/

which contains my ruby scripts.

(PS: Windows drives me crazy... things which are easy on Linux seem to
be quite hard on Windows)

It's not so bad. On windows I have a file /local.rb like this:

# This is intended to be used with the env var
# RUBYOPT=-r/path/to/this/file
# For example,
# RUBYOPT=-r/local
# or
# RUBYOPT=-rubygems -r/local

require 'rubygems'

$LOAD_PATH.concat %w{
   C:/prj/something/lib
   C:/prj/something-else/lib
}

···

--
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Marc Heiler wrote:

How do i set rubylib on windows?

Specifically I would like to ask a directory like

/Depot/Ruby/Source/

which contains my ruby scripts.

(PS: Windows drives me crazy... things which are easy on Linux seem to
be quite hard on Windows)

Assuming XP here:

My Computer [Desktop Icon(usually)] <right click> => Properties [Menu
Selection]

System Properties [Window] => Advanced [Tab] => Environment Variables
[Button]

Environment Variables [Window] => System Variables [Panel] => New
[Button]

NT has some similar chain, don't know about Vista, sorry

···

--
Posted via http://www.ruby-forum.com/.

(PS: Windows drives me crazy... things which are easy on Linux seem to
be quite hard on Windows)

Or install CygWin. There are still issues, but in general it will simulate a GNU/POSIX environment, all the way down to a mutilatable /etc folder!