in reply to Re: error about INC
in thread error about INC

Thank you Rob can you Please let me know how can i know what is @INC location is.

Replies are listed 'Best First'.
Re^3: error about INC
by Anonymous Monk on Jan 22, 2014 at 05:26 UTC
    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 you please let me know how to locate lib.pm in @INC what is the procedure for that

        Download the lib-0.63 source, extract it to some location, then cd to the top level folder of the extracted source, then run perl Makefile.PL, then run make, then copy the lib.pm that's in ./blib/lib into the /volumes/v1/qedms/opt/perl/lib/5.14.1 folder.

        You might need to be using the 5.14.1 build of perl (not the 5.8.4 build) when you run perl Makefie.PL ... or it might not matter which perl you use for that step (I'm not sure).

        Normally you wouldn't have to install lib.pm into @INC because it would already have been in there when perl was installed.

        Cheers,
        Rob

      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