in reply to Strange problem when I install CPAN module to my own directory

The current working directory of a program executed by your web server is probably not what you expect. You may need an absolute path in your use lib line. You can use Cwd to figure out the current working directory of your script in both environments.

  • Comment on Re: Strange problem when I install CPAN module to my own directory
  • Download Code

Replies are listed 'Best First'.
Re: Re: Strange problem when I install CPAN module to my own directory
by iwanthome (Beadle) on Apr 16, 2004 at 06:10 UTC

    thanks for your reply,but I think that is not the reason.I modified the directory to absolute directory.And the error is same.

    $ more config #!/usr/bin/perl use lib '/data/zht/perl/lib'; use Config::General; print "Content-type: text/html\n\n"; print "ok"; $ ls /data/zht/perl/lib Cisco Config Sharefunc.pm $ ls /data/zht/perl/lib/Config General General.pm
    thanks!
      What about permissions? See CGI Help Guide.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

        thanks! The problem is solved by modify permissions!