in reply to error in perl with mysql

Is your web server running in a chroot(1) environment?

If so, check if you find the file

usr/lib/perl5/5.8.0/Exporter/Heavy.pm

relative to the web server's root directory, and check its permissions.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: error in perl with mysql
by kalaisuresh (Initiate) on Nov 28, 2006 at 05:08 UTC
    hai, Heavy.pm is in the same path only and also i have /home/httpd/cgi-bin/perl2exe/perl5/lib/5.6.1/Exporter/ i check the permission also that is 755.
      Run the following as CGI
      #!/usr/bin/perl -T use strict; use CGI; my $q = CGI->new; print $q->header, $q->start_html; eval "use DBI"; if ($@) { my $err = $@; print $q->h2("Errors from <i>use DBI</i>:"); print "<pre>\n$err\n</pre>\n"; print $q->h2("%INC:"); print "<pre>\n"; print "$_ => $INC{$_}\n" for sort keys %INC; print "</pre>\n"; } else { print "DBI loaded OK.\n"; } print $q->end_html;
      and examine it for the location of Exporter.pm. Make sure it's anchored in the right path.

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}