Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to get use to follow symbolic links?

by rdfield (Priest)
on Nov 06, 2003 at 11:26 UTC ( [id://305017]=note: print w/replies, xml ) Need Help??


in reply to How to get use to follow symbolic links?

Have you checked that @INC contains "/path/to/symlink"?

rdfield

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

Replies are listed 'Best First'.
Re: Re: How to get use to follow symbolic links?
by PetaMem (Priest) on Nov 06, 2003 at 11:38 UTC
    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

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://305017]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found