Installation
This document describes prerequisites, installation, post-install sanity checking for Zonemaster::Engine, and rounds up with a few pointer to interfaces for Zonemaster::Engine. For an overview of the Zonemaster product, please see the main Zonemaster Repository.
Prerequisites
For details on supported operating system versions and Perl verisons for Zonemaster::Engine, see the declaration of prerequisites.
Installation
This instruction covers the following operating systems:
Installation on CentOS
-
Install the EPEL 7 repository:
sudo yum --enablerepo=extras install epel-release -
Make sure the development environment is installed:
sudo yum groupinstall "Development Tools" -
Install binary packages:
sudo yum install cpanminus libidn-devel openssl-devel perl-Clone perl-core perl-Devel-CheckLib perl-File-ShareDir perl-File-Slurp perl-IO-Socket-INET6 perl-JSON-PP perl-List-MoreUtils perl-Module-Find perl-Moose perl-Net-IP perl-Pod-Coverage perl-Readonly-XS perl-Test-Differences perl-Test-Exception perl-Test-Fatal perl-Test-Pod perl-YAML -
Install packages from CPAN:
sudo cpanm Locale::Msgfmt Locale::TextDomain Mail::RFC822::Address Module::Install Module::Install::XSUtil Test::More Text::CSV -
Install Zonemaster::LDNS and Zonemaster::Engine:
sudo cpanm Zonemaster::LDNS Zonemaster::Engine
Installation on Debian
-
Refresh the package information
sudo apt update -
Install dependencies from binary packages:
sudo apt install autoconf automake build-essential cpanminus libclone-perl libdevel-checklib-perl libfile-sharedir-perl libfile-slurp-perl libidn11-dev libintl-perl libio-socket-inet6-perl libjson-pp-perl liblist-moreutils-perl liblocale-msgfmt-perl libmail-rfc822-address-perl libmodule-find-perl libmodule-install-xsutil-perl libmoose-perl libnet-ip-perl libpod-coverage-perl libreadonly-xs-perl libssl-dev libtest-differences-perl libtest-exception-perl libtest-fatal-perl libtest-pod-perl libtext-csv-perl libtool m4 -
Install dependencies from CPAN:
sudo cpanm Module::Install Test::More -
Install Zonemaster::LDNS and Zonemaster::Engine:
sudo cpanm Zonemaster::LDNS Zonemaster::Engine
Installation on FreeBSD
-
Become root:
su -l -
Update list of package repositories:
Create the file
/usr/local/etc/pkg/repos/FreeBSD.confwith the following content, unless it is already updated:FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", } -
Check or activate the package system:
Run the following command, and accept the installation of the
pkgpackage if suggested.pkg info -E pkg -
Update local package repository:
pkg update -f -
Install dependencies from binary packages:
pkg install libidn p5-App-cpanminus p5-Clone p5-Devel-CheckLib p5-File-ShareDir p5-File-Slurp p5-IO-Socket-INET6 p5-JSON-PP p5-List-MoreUtils p5-Locale-libintl p5-Locale-Msgfmt p5-Mail-RFC822-Address p5-Module-Find p5-Module-Install p5-Module-Install-XSUtil p5-Moose p5-Net-IP p5-Pod-Coverage p5-Readonly-XS p5-Test-Differences p5-Test-Exception p5-Test-Fatal p5-Test-Pod p5-Text-CSV -
Install Zonemaster::LDNS and Zonemaster::Engine:
cpanm Zonemaster::LDNS Zonemaster::Engine
Installation on Ubuntu
Use the procedure for installation on Debian.
Post-installation sanity check
Make sure Zonemaster::Engine is properly installed.
time perl -MZonemaster::Engine -E 'say join "\n", Zonemaster::Engine->test_module("BASIC", "zonemaster.net")'
The command is expected to take a few seconds and print some results about the delegation of zonemaster.net.
What to do next
- For a command line interface, follow the Zonemaster::CLI installation instruction.
- For a web interface, follow the Zonemaster::Backend installation and Zonemaster::GUI installation instructions.
- For a JSON-RPC API, follow the Zonemaster::Backend installation instruction.
- For a Perl API, see the Zonemaster::Engine API documentation.