wrote in message:
Is there a way to add a path to $: permanently so I do not have to append
a path at the start of every script that needs it?
Use the RUBYLIB
environment variable . From man ruby:
RUBYLIB A colon-separated
list of directories that are added to
Ruby?s
library load path ($:). Directories from this
environment variable are searched before the standard
load path is searched.
e.g.:
RUBYLIB="$HOME/lib/ruby:$HOME/lib/rubyext"--
vjoel : Joel VanderWerf : path berkeley
edu : 510 665 3407
wrote in message:
wrote in message:
Is there a way to add a path to $: permanently so I do not have to append
a path at the start of every script that needs it?
Use the RUBYLIB environment variable. From man ruby:
RUBYLIB A colon-separated list of directories that are added to
Ruby?s library load path ($:). Directories from this
environment variable are searched before the standard
load path is searched.
e.g.:
RUBYLIB="$HOME/lib/ruby:$HOME/lib/rubyext"
took me a
bit to put that all together (not a nix geek), but got it now.
Thanks.
I added this to my PROFILE
export RUBYLIB=$RUBYLIB:/usr/local/lib/ruby/..... etc for what I needed
-- gw
--
Posted via
http://www.ruby-forum.com/.
Blogs related to how modify $: permanently?
Bacaan ringan Linux dan Unix ONLINE
Managing Multiple Operating Systems HOWTO - covers the procedures for using removable hard disks to install and manage multiple alternative operating systems while leaving a single fixed disk to
permanently house and protect the primary
...
25 new messages in 16 topics - digest
is copied, so if you change the value at that address from inside the method, then the value at that address is
permanently changed, and after the method ends, the change can still be observed. > In
Ruby, we don't have the "alias
...
Murder INC
There, true farming had begun, with the growing of wheat and barley, the domestication of animals and people
permanently settled. By 4500 BCE a people archaeologists call Ubaidians were living in towns in southern Mesopotamia near where
...
Annals of Idiotic Bugs
I copy something I saw from something else and
modify it to suit my own needs, or I look it up in a recipe book, or I see someone else’s solution on a mailing list… When you’re new to a language, you often use code that you don’t quite
...
Amazon EC2 Basics For Python Programmers
To do this you need to
modify a security group and doing so will
modify the security permissions for all the instances running in that group. In this case we only have one instance running so this is fine.
...
14 Functions for a Superhero Costume
On a smaller scale, Cyclops needs his
ruby quartz visor to restrain his optic blasts from smashing anything he looks at. (However, the rest of his wardrobe is optional. His costumes have generally gone for the "Team Uniform" look as I
...