Originally posted by: Neelesh Vijai
We have been trying to install 2 different perl modules on SSCTEST which is AIX based machine.
Modules :
-
perl-Net-SSH
-
Expect
Please check attachment which names are mentioned in the respective sections.
1) perl-Net-SSH :
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"
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".
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.