KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I understand that to add a path to $LOAD_PATH just do $LOAD_PATH.unshift(path) But I have to add this line to every program I wrote. Is there anyway to add it to the system level? I tried to search a bit on the startup script for Ruby, but did not find the answer. I tried to add this line to kernel/common/module.rb , ruby_constants.rb , loader.rb ,etc. but neither works. In which file should I add this line to? Updates: I am using ubuntu 10.04 and Rubinius. There is no system variable called RUBYLIB . Tried creating one but did not work. But I realize I made a mistake, and forgot to add the variable in bash script .bashrc . After adding the variable, it all works fine!
Tags (comma-separated)
Save Edits
Cancel