Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Config.pm file and @INC array

by tirwhan (Abbot)
on Feb 25, 2009 at 15:50 UTC ( [id://746299]=note: print w/replies, xml ) Need Help??


in reply to Config.pm file and @INC array

The error message means that you don't have the Config module installed (or at least not installed correctly). @INC contains a list of directories which perl will search for installed modules and Config.pm can not be found in any of them. I'm unsure what exactly the best way of obtaining the correct version of Config.pm for your platform is (I don't use Solaris myself), but maybe there's something in the Solaris docs that will tell you.

However:

... with a recently installed new version perl v 5.8.3

This seems to be the real problem. Why on earth would you install a 5-year old version of perl on your (apparently production-)machine? There have been numerous bug and security fixes in perl since then, so you should take advantage of them. The current version of perl 5.8 is 5.8.9, install that or at least something a lot closer to it, otherwise I predict you'll have a lot more problems.


All dogma is stupid.

Replies are listed 'Best First'.
Re^2: Config.pm file and @INC array
by ikegami (Patriarch) on Feb 25, 2009 at 15:54 UTC

    The error message means that you don't have the Config module installed

    Config is not an installable module. Config is not just a part of Perl, it's built along with Perl. (It contains build options and system capabilities.) Something's very wrong here since Perl can't find itself.

      Thanks for the clarification. I thought It'd be something like that and was confused by the fact that neither the search.cpan.org perl core module list nor perl -MModule::CoreList -e 'Module::CoreList->first_release("Config")' showed it, but this makes perfect sense of course.

      Update: and of course, the search.cpan.org list does show it, it's just under "Documentation" rather than "Modules". sigh


      All dogma is stupid.

        As some happy coincidence(?), search.cpan.org is actually finding the pod parts of Config.pm in configpm, the tool that builds Config.pm. Most of the documentation is missing on search.cpan.org (appearing only as $c) because the pod is generated as well.

Re^2: Config.pm file and @INC array
by unixer_054 (Initiate) on Feb 25, 2009 at 16:55 UTC
    Hi,
    I do understand that the version of perl is quite old, but as I said, this is what my business requires currently. Can you please help me get some suggestions as to how to go after this issue.

    I must say that there are currently two versions of perl installed in my system. 5.6.0 under /usr/local/bin and 5.8.3 under /usr/bin. The same can be found in the list of @INC.

    What I am basically looking for is that if someone can help me know how can i modify the @INC list to add "/usr/lib/perl5/5.8.3". I guess this may solve the issue. Can you throw some light in here.


    Thanks,
    vikram
      how can i modify the @INC list to add "/usr/lib/perl5/5.8.3"

      You can set the environment variable PERL5LIB to add directories to @INC, but it's probably almost certainly a better idea to install the Perl libs that belong to a certain Perl version right where the respective Perl binary looks anyway (those @INC paths you see, which are hardcoded in the binary — in your case /usr/local/lib/perl5/5.8.3/...).

      (Update: and if you decide to use PERL5LIB, set it locally only for exactly the processes that need it (e.g. in wrapper scripts)...  Setting PERL5LIB globally on a system with multiple Perl versions is asking for trouble!)

      perhaps you can just create links in /usr/local:

      ln -s /usr/{,local/}lib/perl5/5.8.3 ln -s /usr/{,local/}lib/perl5/site_perl/5.8.3
        Excellent!!!

        Thanks a lot sir for this idea. The problem is resolved now. I wonder why it didn't come to my mind. :-)

        Thanks a lot all

        Excellent!!!

        I wonder why this didn't come to my mind. the issue is resolved now after creating the soft links.


        Thanks a lot all!

Log In?
Username:
Password:

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

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

    No recent polls found