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
  • 1.  Perl Modules(perl-Net-SSH, Expect) Installation Issues on AIX -

    Posted Mon June 10, 2019 04:54 AM

    Originally posted by: Neelesh Vijai


    We have been trying to install 2 different perl modules on SSCTEST which is AIX based machine.

    Modules :

    1. perl-Net-SSH
    2. Expect

    Please check attachment which names are mentioned in the respective sections.

    1) perl-Net-SSH :

    • RPMs :

    First of all, we downloaded required RPMs for installing "perl-Net-SSH" from http://www.perzl.org/aix/index.php and tried out to install these RPMs one by one : 

    • perl-Net-SSH-0.09-1.src.rpm
    • perl-Net-SSH-0.09-1.aix5.1.noarch.rpm

    None of the RPMs got installed and errors are shown in attached file : "Perl_Net_SSH_Installation_Errors_By_RPM.jpg"

     

    • CPAN :​​​​​

    Then we tried to install the module perl-Net-SSH through CPAN command : "sudo perl -MCPAN -e 'install perl_Net-SSH' > ./SSH_Installation_Errors_By_CPAN.txt"
    Above command got terminated with "Out of memory" error and entire o/p of the command is shown in attached file "SSH_Installation_Errors_By_CPAN.txt".

     

    • Source Code

    Then finally we tried to downloaded .tgz file for "perl-Net-SSH" from "https://metacpan.org/pod/Net::SSH::Perl" and tried to install the module as per given instructions.

     

    Execute following command : sudo perl Makefile.PL noxs. Abobe command returned following o/p and created "makefile" in same folder:
    Looks good
    Warning: prerequisite Crypt::IDEA 0 not found.
    Warning: prerequisite Digest::BubbleBabble 0.01 not found.
    Warning: prerequisite File::HomeDir 0 not found.
    Warning: prerequisite Math::GMP 1.04 not found.
    Warning: prerequisite String::CRC32 1.2 not found.
    Writing Makefile for Net::SSH::Perl

     

    And then i executed "make" utility after creating the makefile but it got terminated with following error message:
    xlc_r: fatal error: '-c' is not a valid option to the preprocessor
    compilation terminated.
    make: 1254-004 The error code from the last command is 1.


    Stop.

     

    Complete o/p of "make" utility is shown in attached file: "makefile_issues_perl_net_ssh.txt"

     

    2) Expect : we downloaded required RPMs for installing "Expect" module from http://www.perzl.org/aix/index.php and tried out to install these RPMs one by one :

    • RPM :
      • expect-5.45-1.aix5.1.ppc.rpm
      • expect-5.45-1.src.rpm
      • expect-devel-5.45-1.aix5.1.ppc.rpm
      • expectk-5.45-1.aix5.1.ppc.rpm

     

    None of the RPM got installed and errors are shown in attached file: "Expect_Installation_Errors_By_RPM.jpg"

    • CPAN : Then we tried to install "Expect" module through CPAN by following command: "sudo perl -MCPAN -e 'install Expect'" and this command also didn't work.O/P of this command is shown in attached file: "Expect_Installation_Errors_By_Cpan.txt" and this command got terminated with following errors:
          Warning: no success downloading '/u/root/.cpan/sources/authors/01mailrc.txt.gz.tmp13566046'. Giving up on it. at /usr/opt/perl5/lib/5.10.1/    CPAN/Index.pm line 225
          Warning: no success downloading '/u/root/.cpan/sources/authors/01mailrc.txt.gz.tmp13566046'. Giving up on it. at /usr/opt/perl5/lib/5.10.1/CPAN/Index.pm line 225
          Out of memory!

    Also tried to upgrade "CPAN" on SSCTEST but that also throwing "out of memory" error.

     

     

    Thanks and regards,

    Neelesh Vijaivargia.



  • 2.  Re: Perl Modules(perl-Net-SSH, Expect) Installation Issues on AIX -

    Posted Mon June 10, 2019 10:40 AM

    Originally posted by: AyappanP


    This forum mainly deals with rpms from AIX Toolbox. https://www.ibm.com/developerworks/aix/library/aix-toolbox/alpha.html

    You have been using rpms from perzl site. Then you have to make sure the dependent packages are also from perzl. 

    For RPMS errors,

    1) One cannot query whether src rpm is installed or not. 

       perl-Net-SSH-0.09 needs perl-5.8.8-2 from perzl-site. 

       # rpm -qp --provides perl-5.8.8-2.aix5.1.ppc.rpm
    perl(:MODULE_COMPAT_5.8.5)
    perl(:MODULE_COMPAT_5.8.6)
    perl(:MODULE_COMPAT_5.8.7)
    perl(:MODULE_COMPAT_5.8.8)

     

    2) expect src rpm looks corrupt.

        Again appropriate  tcl , tk should be taken from the perzl site. 



  • 3.  Re: Perl Modules(perl-Net-SSH, Expect) Installation Issues on AIX -

    Posted Sat June 22, 2019 04:15 AM

    Originally posted by: Niyas.Khan


    1.. Please share me Perl modules installation & configured documentation for AIX 7.1.5.1 if possible
    2.  Please share me list of rpm 's with dependencies or AIX filesets or package details for Perl modules.

    3. I have tried with above link. but still missing dependencies rpm's. Please advise how can i proceed the installation.



  • 4.  Re: Perl Modules(perl-Net-SSH, Expect) Installation Issues on AIX -

    Posted Mon June 10, 2019 06:26 PM

    Originally posted by: james.franznick


    to avoid the out of memory error with AIX perl you have to link perl to perl-64, or install perzl perl rpm and use that version.  The IBM perl rpm is still broken in regard to the install path and requires its own workaround.

            ln -sf /usr/opt/perl5/bin/perl_64bit /usr/bin/perl
            mv /usr/opt/perl5/bin/perl /usr/opt/perl5/bin/perl_32bit
            mv /usr/opt/perl5/bin/perl5.10.1  /usr/opt/perl5/bin/perl5.10.1_32bit
            ln -sf /usr/opt/perl5/bin/perl_64bit /usr/opt/perl5/bin/perl
            ln -sf /usr/opt/perl5/bin/perl5.10.1_64bit /usr/opt/perl5/bin/perl5.10.1

    Once this is done you can install cpanminus which will install all the prereqs, you may need to have xlc installed. I believe there is a 30 day trial available.

     echo 'install App::cpanminus' | $CPAN

     cpanm Try::Tiny

     cpanm Net::SSH::Perl

     

     

     

     



  • 5.  Re: Perl Modules(perl-Net-SSH, Expect) Installation Issues on AIX -

    Posted Sat June 22, 2019 04:16 AM

    Originally posted by: Niyas.Khan


    1. Where Can i get the cpanminus installation source files. Please share me download link..



  • 6.  Re: Perl Modules(perl-Net-SSH, Expect) Installation Issues on AIX -

    Posted Mon June 17, 2019 03:34 PM

    Originally posted by: Niyas.Khan


    1.. Please share me Perl modules installation & configured documentation for AIX 7.1.5.1 if possible
    2.  Please share me list of rpm 's with dependencies or AIX filesets or package details for Perl modules.



  • 7.  Re: Perl Modules(perl-Net-SSH, Expect) Installation Issues on AIX -

    Posted Wed June 26, 2019 03:04 PM

    Originally posted by: Edward Davignon


    One word of caution: overriding the /usr/bin/perl symlink can break things like PowerHA.