[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

RUBYLIB on windows

Marc Heiler

2/20/2009 6:07:00 PM

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-....

3 Answers

Joel VanderWerf

2/20/2009 7:41:00 PM

0

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

Jeff Moore

2/21/2009 4:51:00 PM

0

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-....

Phlip

2/21/2009 5:27:00 PM

0

> (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!