From: Glen Holcomb Date: 2007-05-15T23:22:08+09:00 Subject: Re: Problem loading files in Ruby CGI scripts ------=_Part_1952_17643689.1179238927318 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Only some obvious ones. Is your environment set up correctly? Does the Apache uid have access to those files? Are you running Apache in a chroot jail? On 5/15/07, Toby Rodwell wrote: > > This is not a Ruby problem as such, but I'm hoping someone will have > come across this problem before and can advise. > > I have a basic CGI script, that loads a YAML file and prints out HTML > and a few calculated results. The script works fine when I run it from > the command line, but (no surprise!) I have problems when trying to > access it from a browser. The error message in the APache log > (abbreviated) is " No such file or directory - > /usr/local/lib/ruby/1.8/sparc-solaris2.9/stringio.so (LoadError) > from /usr/local/lib/ruby/1.8/yaml.rb:9" > > I guess this must be something to do with permissions, or environment, > because the file referred to *does* exist. Broadly speaking, from a few > basic tests, it seems that none of the 'requires' are working. > > Any ideas? > > thanks in advance > > -- > Posted via http://www.ruby-forum.com/. > > -- "Hey brother christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_1952_17643689.1179238927318--