JupiterHost.Net wrote:
Very weird, still nothing :)

GD just isn't returning anything in any format, scalar or array context...




Well all a bit of a mystery.
su to root and do all that stuff again, maybe there is a permission problem on the files or on the directory.


Great idea! Still busted:

 root# ./gdtest.pl
 No such file or directory at ./gdtest.pl line 15.
 root#

I'll need to investigate the source and maybe redo gdlib and then GD.pm again.

is this the same gd_example.cgi that comes with GD.pm, in the demos dir of the package, or are you running the script we've pasted here for you?


Because I tried running gd_example.cgi as given, and got a similar error "no such file or directory" which makes no sense since we aren't opening any files or working with any files.


[Sun Jan 09 13:53:12 2005] [error] [client 127.0.0.1] (2)No such file or directory: exec of '/home/webadmin/madhouse/html/cgi-bin/gd_example.cgi' failed, referer: http://localhost/madhouse/bleh.htm
[Sun Jan 09 13:53:12 2005] [error] [client 127.0.0.1] Premature end of script headers: gd_example.cgi, referer: http://localhost/madhouse/bleh.htm


however it also occurs to me that gd_example.cgi points to
        #!/usr/local/bin/perl
and not
        #!/usr/bin/perl

which is where it's installed on my system, and fixing THAT to point to a perl that DOES exist, the script runs perfectly.

nothing whatsoever to do with temp files, or any such nonsense. the error makes complete and utter sense if you just think really hard about what makes sense and what doesn't about the error message.

the script doesn't open any files, so how could it give a 'no such file' error ? it's not printing a 'file' either, no, so toss that idea too.

and if GD were using tempfiles they'd be completely encapsulated by the GD object, and handled internally. If you got a 'no such file' error from GD itself, the script's die message would reflect that case and it would again be _obvious_ that it were GD's fault and not (pointedly) your own, or my own, or the gd-using-script-authors own, in pointing to a perl binary that 'does not exist' on this system.

use your head, man!

--
Scott R. Godin
Laughing Dragon Services
www.webdragon.net

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to