A
aurelianito
Hi all,
I'm using the excelent ruby one click installer's ruby on windows, but
I'm unable to add a folder to the path that ruby uses to fetch the
scripts.
I have a script named arf_cmp.rb in C:\devel\scripts\test_scripts. So
I've set RUBYLIB=C:\devel\scripts\test_scripts (environment variable).
But when I run: "ruby arf_cmp.rb" the error "ruby: No such file or
directory -- arf_cmp.rb (LoadError)" is shown. If I run the script
using the full path "ruby C:\devel\scripts\test_scripts\arf_cmp.rb" it
runs flawlessly.
I've tried to set the following variables:
RUBYLIB
RUBY_LIB
RUBY_PATH
LOAD_PATH
How can I do to run the script without hardcoding the entire path?
Thank's in advance,
Aureliano.
I'm using the excelent ruby one click installer's ruby on windows, but
I'm unable to add a folder to the path that ruby uses to fetch the
scripts.
I have a script named arf_cmp.rb in C:\devel\scripts\test_scripts. So
I've set RUBYLIB=C:\devel\scripts\test_scripts (environment variable).
But when I run: "ruby arf_cmp.rb" the error "ruby: No such file or
directory -- arf_cmp.rb (LoadError)" is shown. If I run the script
using the full path "ruby C:\devel\scripts\test_scripts\arf_cmp.rb" it
runs flawlessly.
I've tried to set the following variables:
RUBYLIB
RUBY_LIB
RUBY_PATH
LOAD_PATH
How can I do to run the script without hardcoding the entire path?
Thank's in advance,
Aureliano.