Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: perl cant find it anymore!

by toma (Vicar)
on Jun 18, 2001 at 17:03 UTC ( [id://89361]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to perl cant find it anymore!

Yes, there is such a config file, and if you move things around it will point to the wrong place and not be able to find modules. Also, you will have trouble installing new modules. The file is called Config.pm, and is located in a directory somewhere like /opt/perl5/lib/5.6.0/PA-RISC2.0. It is created in the 'Configure' step when perl is compiled.

Update: As noted below you can't fix this with hand-editing. You can find out what your INC path is with perl -V.

Much better is to put perl where Config.pm expects it to be, or recompile perl. You need the ANSI C compiler to compile perl on HP-UX, though.

You can see what is in Config.pm by inspecting the code in the module, or with this code:

#!/opt/perl5/bin/perl use strict; use Config; for (keys %Config) { print "$_ = $Config{$_}\n"; }

You can use the INC path methods above to get the use Config line to work.

It should work perfectly the first time! - toma

Replies are listed 'Best First'.
(tye)Re: perl cant find it anymore!
by tye (Sage) on Jun 18, 2001 at 17:26 UTC

    You should recompile Perl not because Config.pm is hard to edit by hand but because the values for @INC are compiled into the perl binary, not read from Config.pm! Otherwise, how would Perl find Config.pm? (:

    Now, MakeMaker does read Config.pm so you can affect where modules get installed by modifying that file.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://89361]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.