Pam_ruby and "require" statement

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

2006/12/8, Vladimir K. [email protected]:

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?

Hi Vlad,

make sure that your library is in the $LOAD_PATH

Cheers,
zimbatm

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

$LOAD_PATH settings makes this work, thaks for the help…

oops,

you meant ruby $LOAD_PATH…

will test this later.

vlad