From: "Kurt M. Dresner" Date: 2003-09-01T07:33:36+09:00 Subject: Errors with a Ruby CGI script Okay, so I got Ruby installed on that Solaris 8 machine and everything seems okay. As me I can do: (05:30PM) [kdresner@sanjacinto /p/lib/ruby/1.8]$ irb irb(main):001:0> require 'net/smtp' => true irb(main):002:0> However, in my CGI script, which is run as the user "www", this operation results in a LoadError: more specifically: [Sun Aug 31 17:27:56 2003] [error] [client 66.25.137.71] Premature end of script headers: gradechange.cgi [Sun Aug 31 17:27:56 2003] [error] [client 66.25.137.71] /p/lib/ruby/1.8/net/smtp.rb:325:in `require': No such file to load -- digest/md5 (LoadError) [Sun Aug 31 17:27:56 2003] [error] [client 66.25.137.71] from /p/lib/ruby/1.8/net/smtp.rb:325 [Sun Aug 31 17:27:56 2003] [error] [client 66.25.137.71] from /var/spool/net/vhosts/cs_utexas_edu/www/users/kdresner/gradechange.cgi:8:in `require' [Sun Aug 31 17:27:56 2003] [error] [client 66.25.137.71] from /var/spool/net/vhosts/cs_utexas_edu/www/users/kdresner/gradechange.cgi:8 So it seems that smtp.rb is having a hard time loading digest/md5. Here's the deal, digest/md5 is in the directory: /p/lib/ruby/1.8/sparc-solaris2.8/digest/md5.so Is there any reason that it would look in that directory as a normal user, but not as the www user? -Kurt