The perl programming language
Use the zopen package manager (QuickStart Guide) to install:
zopen install perl
- Clone the repository:
git clone https://github.com/zopencommunity/perlport.git
cd perlport
- Build using zopen:
zopen build -vv
See the zopen porting guide for more details.
To install Perl modules using cpan, you need to configure it to use the zopen tools.
If cpan is not properly configured, it may not function correctly. Follow these steps to set it up:
Before setting up CPAN, ensure the following tools are installed via zopen
:
wget
curl
tar
make
gzip
bzip2
You can install them using:
zopen install curl wget tar make gzip bzip2
Run the following command to enter the CPAN shell:
cpan
If this is the first time running CPAN, it will prompt for initial configuration. You can choose automatic configuration (press enter) unless you need custom settings.
If the current CPAN configuration is incorrect, reset it using:
rm -rf ~/.cpan
cpan
If cpan
detects the z/OS version of make and tar and fails the initial setup, then you can configure it to pick up the zopen tools with the following:
cpan
o conf make /path/to/zopen/make
o conf tar /path/to/zopen/tar
# do the same for wget, gzip, and others as needed...
o conf commit
Verify that the ~/.cpan/CPAN/MyConfig.pm
file is updated accordingly by viewing it.
Once CPAN is set up, install Perl modules as needed:
cpan install Switch
- If CPAN fails due to missing dependencies, verify that
wget
,tar
,make
,gzip
, andbzip2
are properly installed and referenced in the~/.cpan/CPAN/MyConfig.pm
file. - If CPAN configuration is incorrect, reset it using:
Then re-run
rm -rf ~/.cpan
cpan
to reconfigure.
TBD
Contributions are welcome! Please follow the zopen contribution guidelines.