This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
program_lang:perllib [2023/06/12 17:03] manu |
program_lang:perllib [2024/04/19 11:16] (current) manu [CPAN repository offline] |
||
|---|---|---|---|
| Line 24: | Line 24: | ||
| </cli> | </cli> | ||
| - | ===== ===== | + | ===== Perl modules ===== |
| <cli prompt='#'> | <cli prompt='#'> | ||
| Line 45: | Line 45: | ||
| <cli prompt='>'> | <cli prompt='>'> | ||
| - | root@aixtest:/root > cpan | + | root@aixtest:/root > /opt/freeware/bin/cpan |
| o conf init /proxy/ | o conf init /proxy/ | ||
| <ftp_proxy> | <ftp_proxy> | ||
| Line 73: | Line 73: | ||
| </cli> | </cli> | ||
| + | ==== CPAN error while install modules ==== | ||
| - | Next, CPAN coredumps | + | Dependencies between modules can be found in CPAN site |
| + | |||
| + | ==== CPAN error ==== | ||
| + | |||
| + | Error downloading with HTTP::Tiny: Not a CODE reference | ||
| + | |||
| + | Set the proxy also | ||
| + | export http_proxy="http://user:pass@proxyserver:8080" | ||
| + | export https_proxy="http://user:pass@proxyserver:8080" | ||
| + | export ftp_proxy="http://user:pass@proxyserver:8080" | ||
| + | |||
| + | |||
| + | |||
| + | https://community.ibm.com/community/user/power/blogs/jan-harris1/2022/03/21/aix-open-source-support-tips | ||
| + | |||
| + | ==== CPAN coredumps on AIX ==== | ||
| Answer | Answer | ||
| Line 89: | Line 105: | ||
| # ldedit -b maxdata=0x80000000 "path to perl.rpm Perl binary" | # ldedit -b maxdata=0x80000000 "path to perl.rpm Perl binary" | ||
| + | |||
| + | ==== CPAN install modules offline ==== | ||
| + | |||
| + | Download Perl module | ||
| + | |||
| + | Go to CPAN Search website and search for the module that you wish to download. In this example, let us search, download and install XML::Parser Perl module. I have downloaded the XML-Parser-2.36.tar.gz to /home/download | ||
| + | <cli prompt='#'> | ||
| + | # cd /home/download | ||
| + | # gzip -d XML-Parser-2.36.tar.gz | ||
| + | # tar xvf XML-Parser-2.36.tar | ||
| + | # cd XML-Parser-2.36 | ||
| + | </cli> | ||
| + | <cli prompt='#'> | ||
| + | # perl Makefile.PL | ||
| + | Checking if your kit is complete... | ||
| + | Looks good | ||
| + | Writing Makefile for XML::Parser::Expat | ||
| + | Writing Makefile for XML::Parser | ||
| + | # make | ||
| + | # make test | ||
| + | # make install | ||
| + | </cli> | ||
| + | |||
| + | ==== CPAN repository offline ==== | ||
| + | |||
| + | https://www.cpan.org/modules/01modules.index.html | ||