View Only
Expand all | Collapse all

support to install Perl module "MIME/" on AIX server version 7.2

  • 1.  support to install Perl module "MIME/" on AIX server version 7.2

    Posted Fri January 22, 2021 10:52 AM
    Problem Description :-  We need your support to install Perl module "MIME/" on AIX server version 7.2. Below are the current AIX version installed on server. 

    Please do help on this topic .
    Thanks in advance !

    $ uname -uML
    IBM,9040-MR9 IBM,0278DB02X 5 X92SA527QGX03DB
    $ lslpp -l | grep -i perl
      perl.libext       APPLIED    Perl Library Extensions
      perl.rte          COMMITTED  Perl Version 5 Runtime
      perl.libext       APPLIED    Perl Library Extensions

    $ perl -v
    This is perl 5, version 20, subversion 1 (v5.20.1) built for aix-thread-multi
    Copyright 1987-2014, Larry Wall
    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.
    Complete documentation for Perl, including FAQ lists, should be found on
    this system using "man perl" or "perldoc perl".  If you have access to the
    Internet, point your browser at h_ttp://, the Perl Home Page.

    We have checked the perl module with the installed perl fileset on server and we have not found that mentioned perl module.


    We have raised a case with IBM support for the installation of this perl module.  As per IBM, perl is an opensource tool and need to check with IBM open source community for the requirement.


    We will try to install the latest perl rpm fileset and will see if the mentioned module is there or not.


    if the module is not there on the latest perl rpm then need to check with IBM open source community about this required perl module.


    "The perl shipped with AIX in the perl.rte fileset is intended for sole use by the operating system. The AIX perl.rte will install in /usr/opt/perlN/ (where N is the version number) and create the symlink /usr/bin/perl. Operating system components rely on the specific level of perl shipped with the release. AIX does not migrate modules to this new version, since the modules are not tested by AIX.  They are usually left on the system in a directory left over from the previous version.

    If users have installed modules to perl, they will need to reinstall these modules to the newer perl after an update, if they want to use the AIX perl. AIX cannot recommend that these modules be copied to the new AIX perl location, because they may not be supported by the new perl.rte version.

    NOTE:  Users are always encouraged to use the latest perl RPM version available on the AIX Toolbox for Linux to ensure they are using the latest versions tested on AIX. Since this perl version will install to a different location, this also gives the user control over any perl updates which could impact their environment.

    Issues and questions regarding Open Source provided by AIX are handled by the AIX Open Source Team in the forum:

    The AIX Open Source Team provides support through the forum, only. They answer questions, if possible, but they don't own the packages, or formally support them. For true expertise in usage of each package, users should consult the community for each respective package.  For Perl communities, see the Perl Community page (Perl Monks is a popular community for Perl usage discussions)."

    Milin Parikh

  • 2.  RE: support to install Perl module "MIME/" on AIX server version 7.2

    Posted Mon July 26, 2021 01:05 AM

    You can install Perl modules yourself, without relying on IBM to include them in perl.rte or the Perl RPM in the AIX Toolbox.  The cpanm utility will download, configure, build, and install Perl modules and their dependencies, and it is less memory-hungry than the stock cpan script that ships with Perl.  I used these commands to obtain cpanm and install MIME::LIte into the /opt/freeware tree:

    ## Configure proxy if required
    export http_proxy=<your proxy URL>
    export https_proxy=$http_proxy

    ## Download minimal CPAN installer
    curl -L -o ~/cpanm
    chmod +x ~/cpanm

    ## Install MIME::Lite and its dependencies
    sudo env http_proxy=$http_proxy https_proxy=$http_proxy PATH=/opt/freeware/bin:$PATH ~/cpanm MIME::Lite

    Keep in mind the cautions IBM stated in the support links you referenced in your original post.  As you upgrade the base Perl RPM, you will need to reinstall third-party modules.  Also, MIME::LIte is a pure-Perl module with just a handful of other pure-Perl dependencies.  Some modules (like XML::Parser) include XS code that requires a C compiler (e.g. gcc) to build, and they may need to link against external libraries that cpanm cannot manage.  Those are more complex to build, but are still feasible.

    Good luck.


    Matt Buchanan