in reply to Re: How to get use to follow symbolic links?
in thread How to get use to follow symbolic links?

Of course. It does. I also tested it with a regular pl-file. It works there. Must be something mod_perl/cgi specific. I don't know what...

Bye
 PetaMem
    All Perl:   MT, NLP, NLU

  • Comment on Re: Re: How to get use to follow symbolic links?

Replies are listed 'Best First'.
Re: Re: Re: How to get use to follow symbolic links?
by rdfield (Priest) on Nov 06, 2003 at 11:53 UTC
    Ah, not quite what I meant - is it in the @INC inside mod_perl?

    From the guide:

    Regarding the setting of PerlPassEnv PERL5LIB in httpd.conf: if you turn on taint checks (PerlTaintCheck On), $ENV{PERL5LIB} will be ignored (unset). See the 'Switches -w, -T' section.
    so I generally use a startup file to set the @INC I need at runtime under mod_perl: http://perl.apache.org/docs/1.0/guide/config.html#The_Startup_File.

    rdfield

      I guess so.

      The module I want the cgi to use is: PMLS::T9::Common.pm

      I get:

       Error message:
      Can't locate PMLS/T9/Common.pm in @INC (@INC contains:
      /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Apache2 
      /data/nlpdev/pm /data/nlpdev
      /usr/lib/perl5/5.8.0/i586-linux-thread-multi
      /usr/lib/perl5/5.8.0
      /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi
      /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at
      /data/nlpdev/dia.cgi line 17, line 9. BEGIN
      failed--compilation aborted at /data/nlpdev/dia.cgi line 17, 
      line 9.
      
      but in /data/nlpdev/pm is a (working) symbolic link PMLS-> someotherdir

      Needless to say, that a cat /data/nlpdev/pm/PMLS/T9/Common.pm works. If I remove the Link and replace it with the directory it is pointing to, everything works. I see no error on my side.

      Bye
       PetaMem
          All Perl:   MT, NLP, NLU

        Are all the directories in /data/nlpdev/pm/PMLS/T9 world readable? Is Common.pm world readable? Apache/mod_perl runs as "nobody", so has limited ability to see files on the system.

        rdfield