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

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

Replies are listed 'Best First'.
Re^4: error about INC
by kumbam.ashwin (Initiate) on Jan 22, 2014 at 06:04 UTC
    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
        Hi Rob Here the path /volumes/v1/qedms/opt/perl/lib/5.14.1 does not exists, we have /volumes/v1/edms/opt/perl/lib/5.14.1 as i said you we have copied the perl folder from test box to production. in production it is supposed to be edms and in test it is qedms. so shall i perform the steps suggested by you in prod machine, Do i have any problem in running it in prod box
Re^4: error about INC
by kumbam.ashwin (Initiate) on Jan 22, 2014 at 10:49 UTC

    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