Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
pam_ruby and "require" statement
Vladimir Konrad
12/8/2006 10:43:00 AM
i am trying to write a pam module in ruby (using the latest pam-ruby and
ruby-pam). the basic test module/script works but it fails when trying
to use "require" statement (the same require statement succeeds from irb
or ruby).
so, is there a way to do require from ruby script when using pam-ruby?
vladimir
--
Posted via
http://www.ruby-...
.
3 Answers
Vladimir Konrad
12/8/2006 11:24:00 AM
0
> make sure that your library is in the $LOAD_PATH
not sure i understand, pam_ruby.so calls my ruby script, my ruby script
does require (for example "require pp").
the script works without require and not with require...
vlad
--
Posted via
http://www.ruby-...
.
Vladimir Konrad
12/8/2006 11:41:00 AM
0
oops,
you meant ruby $LOAD_PATH...
will test this later.
vlad
--
Posted via
http://www.ruby-...
.
Vladimir Konrad
12/8/2006 4:24:00 PM
0
$LOAD_PATH settings makes this work, thaks for the help...
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
pam_ruby and "require" statement
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