Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: error about INC

by syphilis (Archbishop)
on Jan 21, 2014 at 10:37 UTC ( [id://1071443]=note: print w/replies, xml ) Need Help??


in reply to error about INC

Can't locate lib.pm in @INC (@INC contains: /volumes/v1/qedms/opt/perl/lib/site_perl/5.14.1/sun4-solaris /volumes/v1/qedms/opt/perl/lib/site_perl/5.14.1 /volumes/v1/qedms/opt/perl/lib/5.14.1/sun4-solaris /volumes/v1/qedms/opt/perl/lib/5.14.1 .)

You'll be getting that error whenever you run a script that tries to load the lib.pm module.
Now, lib.pm ships as standard with perl, so I can think of only two reasons that this error might occur:
1) @INC is no longer correctly set;
2) lib.pm has been removed from its original location.

I would guess that the problem is 2), not 1) ... but there's no way I can be sure about that.
One would expect that lib.pm would *not* have originally been installed in any path that contains "site_perl", as such paths are usually reserved for *non-standard* modules ... so, we're left to guess that lib.pm would have been originally in one of the other @INC locations.

The good news is that, AFAIK, lib.pm is a pure perl module - so just grab it from anywhere and stick it in any one of the @INC locations, and all should be fine. (It doesn't really matter which @INC directory it's put in.)

The bad news is "what else went missing ??" ;-)

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: error about INC
by kumbam.ashwin (Initiate) on Jan 22, 2014 at 05:07 UTC
    Thank you Rob can you Please let me know how can i know what is @INC location is.
      Your error message says Can't locate lib.pm in @INC (@INC contains: ...listofpaths...

      :) surely one of them (@INC contains) is in @INC

      You can also execute perl -V

        below is the @INC of my perl -V output
        @INC: /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl
        Here is a brief description about problem

        As said in the main question. after deletion of PERL folder under OPT in Production, we replaced PERL folder from TEST box.

        It was working fine and the web application was starting but some of the functionalities were not working. some of the paths in test box were qedms but in production it is edms

        so we replaced qedms with edms where it is required.

        Now we were trying to delete a user in edms and for that we are trying to execte a script called rm_sl_user_pr.pl when we try to do so i am getting the follwing error

        [edms@nlxsl212] rchauvet $ ./rm_sl_user_pr.pl Can't locate lib.pm in @INC (@INC contains: /volumes/v1/qedms/opt/perl +/lib/site_perl/5.14.1/sun4-solaris /volumes/v1/qedms/opt/perl/lib/sit +e_perl/5.14.1 /volumes/v1/qedms/opt/perl/lib/5.14.1/sun4-solaris /vol +umes/v1/qedms/opt/perl/lib/5.14.1 .) at ./rm_sl_user_pr.pl line 3. BEGIN failed--compilation aborted at ./rm_sl_user_pr.pl line 3.

        can you please let me know how to locate lib.pm in @INC what is the procedure for that.

        Thank you in advance..

        Ashwin

        Can't locate lib.pm in @INC (@INC contains: /volumes/v1/qedms/opt/perl/lib/site_perl/5.14.1/sun4-solaris /volumes/v1/qedms/opt/perl/lib/site_perl/5.14.1 /volumes/v1/qedms/opt/perl/lib/5.14.1/sun4-solaris /volumes/v1/qedms/opt/perl/lib/5.14.1 .) at ./rm_sl_user_pr.pl line 3. BEGIN failed--compilation aborted at ./rm_sl_user_pr.pl line 3.

        what does the error depicts exactly

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found