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

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

Replies are listed 'Best First'.
Re^5: error about INC
by syphilis (Archbishop) on Jan 22, 2014 at 06:41 UTC
    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
        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

        Oh ... I think I get it now. You've built a perl on one machine that looks for (and finds) the modules in the "qedms" folders.
        Then you've copied that perl to another machine and renamed the "qedms" folders to "edms". Perl still tries to find the modules in the "qedms" folders (because that's the way its @INC was constructed), but now perl can't find any modules because the folders it searches are non-existent.

        How do you want to fix this ? Simplest way would be to rename the "edms" folders back to "qedms" on the production machine.

        Cheers,
        Rob