AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

PERL_HOME value for AIX 7.2 perl located under /opt/freeware

  • 1.  PERL_HOME value for AIX 7.2 perl located under /opt/freeware

    Posted Fri July 02, 2021 01:38 AM
    Greetings AIX Open Source Gurus. 

    My AIX Admin properly doesn't want to allow anything but the delivered modules into the 5.28 perl delivered into /usr/opt/perl5 . Since AIX patching uses this version of perl I get where he is coming from (ie I hear and obey). 

    He added the Resource/Tookit perl (5.30 off the DVD) for me that goes into /opt/freeware/bin.  I see the perl modules for this version living under /opt/freeware/share/perl5/5.30 .  In order to make 100% certain I don't alter the OS-level perl my Admin wants to protect, can anyone please tell me what shell variables to set before trying to add them manually (I'd never get an opening for cpan*)? If I was using the OS-level perl it's easy to see that PERL_HOME would be /usr/opt/perl5 (just by where the /usr/bin perl executable is linked). 

    With the Resource/Tookit perl 5.30, there's no easy way to tell what to set in order to safely add some modules. Thanks for any and all replies on this. They are greatly appreciated. Extra thanks for anyone with instructions for adding some modules to this Open Source distribution.

    ------------------------------
    Dennis O'Connor
    ------------------------------


  • 2.  RE: PERL_HOME value for AIX 7.2 perl located under /opt/freeware

    Posted Sat July 03, 2021 11:46 AM
    Hi Dennis,

    If you want to install modules to the perl rpm installed from AIX Toolbox then you need to make sure to invoke the /opt/freeware/bin/pcan.
    This will installed the modules in /opt/freeware/share/perl5/5.30 instead of the AIX base perl.

    I don't think PERL_HOME would make any difference on where to install modules. We need to launch the appropriate cpan command.


    ------------------------------
    SANGAMESH
    ------------------------------