Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
how to set RUBYLIB path?
dare ruby
4/18/2008 5:38:00 AM
Dear all,
I was struggling with a problem. I have a product class and a test file
under Merchant folder. when i run my product class it shows following
error.
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- builder (LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from product.rb:2
I need to set path like set RUBYLIB = ""
i didnt got how to set the path and in which file i have to set or in
shell prompt? how to set path?
Could any one help me to solve this problem of setting path.
Thanks in advance
Regards,
Martin
--
Posted via
http://www.ruby-...
.
2 Answers
Roger Pack
4/18/2008 2:57:00 PM
0
maybe gem install builder?
if not maybe google for 'rubygems path' and 'RUBYLIB environment variable'
On Thu, Apr 17, 2008 at 11:38 PM, dare ruby <martin@angleritech.com> wrote:
> Dear all,
>
> I was struggling with a problem. I have a product class and a test file
> under Merchant folder. when i run my product class it shows following
> error.
>
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- builder (LoadError)
> from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from product.rb:2
>
> I need to set path like set RUBYLIB = ""
>
> i didnt got how to set the path and in which file i have to set or in
> shell prompt? how to set path?
>
> Could any one help me to solve this problem of setting path.
>
> Thanks in advance
>
> Regards,
> Martin
> --
> Posted via
http://www.ruby-...
.
>
>
--
Find peace
http://www.google.com/search?q=...
Robert Dober
4/18/2008 4:39:00 PM
0
On Fri, Apr 18, 2008 at 7:38 AM, dare ruby <martin@angleritech.com> wrote:
> Dear all,
>
> I was struggling with a problem. I have a product class and a test file
> under Merchant folder. when i run my product class it shows following
> error.
>
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- builder (LoadError)
> from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from product.rb:2
>
> I need to set path like set RUBYLIB = ""
>
> i didnt got how to set the path and in which file i have to set or in
> shell prompt? how to set path?
>
> Could any one help me to solve this problem of setting path.
>
> Thanks in advance
>
> Regards,
> Martin
> --
> Posted via
http://www.ruby-...
.
>
>
There are basically three possibilities let us say your library is here:
/lib/mylibs/mylibrary.rb
(1)
setting the variable
export RUBYLIB="/lib/mylibs/${RUBYLIB:-""}"
(2)
using a command line option
ruby -I/lib/mylib myprog.rb
(3)
adjust your $: inside your ruby program
$:.unshift File.join( %w{ /lib mylib } )
HTH
Robert
--
http://ruby-smalltalk.blo...
---
Whereof one cannot speak, thereof one must be silent.
Ludwig Wittgenstein
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
how to set RUBYLIB path?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password