* Chris Hsiang ([EMAIL PROTECTED]) [010111 06:47]:
> I've the following problem/question:
> when I trying to to execute the gimp-perl scripts that I wrote from apache,
> I got the following error
> [Fri Jan 12 02:05:50 2001] [error]
> Undefined subroutine
> &Apache::ROOT::index_2ecgi::gimp_file_load
> called at /var/www/html/index.cgi line 30.
> or
> wallace.pl: protocol error (1) at
> /usr/lib/perl5/site_perl/5.6.0/i386-linux/Gimp/Net.pm line 66. (ERROR)
> or
> [Fri Jan 12 02:41:50 2001] [error] Can't use an undefined value as a symbol
> reference at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Gimp/Net.pm line 58
> how do I execute gimp-perl in an CGI environment?

Your problem is a perl problem (or an apache problem).  The first
error message shows that you have a scoping issue, as it is trying to
resolve the subroutine name gimp_file_load within the current package
(Apache::ROOT::index_2ecgi).  You either need to qualify your
subroutine call with a package (Gimp::...), do this indirectly with an
object created by the Gimp package ($image->...), or import the
subroutine symbols from the Gimp package (perhaps "use Gimp
qw(:auto);" will do what you want).

The protocol error message makes me think you may not have a recent
Gimp.  Fix the first problem and see if this error still persists.  If
it does and you're not using the newest Gimp then upgrade.

The third error, well, welcome to Perl ;) Seriously, fix the other
stuff first.  If the 3rd error still crops up you've (90% likely) got
your arguments list wrong.

Good luck.

  Rick Bradley                  http://www.roundeye.net

Reply via email to