%general-entities; ]> $LastChangedBy$ $Date$ Perl Modules Perl modules Introduction to Perl Modules The Perl module packages add useful objects to the Perl language. Modules utilized by packages throughout BLFS are listed here, along with their dependencies. Installation of the modules shown on this page should be accomplished by installing the dependencies in the order listed. The Perl Module standard build and installation instructions are shown at the bottom of this page. Archive::Zip-&Archive-Zip-version; Archive::Zip The Archive::Zip module allows a Perl program to create, manipulate, read, and write Zip archive files. This module uses the standard . &lfs75_checked; Archive::Zip-&Archive-Zip-version; http://cpan.metacpan.org/authors/id/P/PH/PHRED/Archive-Zip-&Archive-Zip-version;.tar.gz MD5 sum: e804985def2c1f0ed640ab4ca6aa85a1 HTML::Parser-&HTML-Parser-version; HTML::Parser The HTML::Parser distribution is a collection of modules that parse and extract information from HTML documents. This module and the dependency modules use the standard . &lfs75_checked; HTML::Parser-&HTML-Parser-version; http://www.cpan.org/authors/id/G/GA/GAAS/HTML-Parser-&HTML-Parser-version;.tar.gz MD5 sum: 9128a45893097dfa3bf03301b19c5efe HTML::Tagset (http://search.cpan.org/~petdance/HTML-Tagset/) (circular; howevever, it can be installed after HTML::Parser as it is only a run-time requirement for the included HTML::HeadParser module) libwww-perl-&LWP-version; (a.k.a. LWP) libwww-perl The libwww-perl (LWP) collection is a set of Perl modules which provide a simple and consistent application programming interface to the World-Wide Web. The main focus of the library is to provide classes and functions that allow you to write WWW clients. The library also contains modules that are of more general use and even classes that help you implement simple HTTP servers. The LWP collection and all its dependency modules use the standard . The dependencies should be installed in the order listed below. Ensure you install the dependency chain for each module before installing the modules. &lfs75_checked; libwww-perl-&LWP-version; http://cpan.org/authors/id/G/GA/GAAS/libwww-perl-&LWP-version;.tar.gz MD5 sum: 637d5f1eb61336ca2caa6e026b382f87) Encode::Locale (http://search.cpan.org/~gaas/Encode-Locale/) HTML::Form (http://search.cpan.org/~gaas/HTML-Form/) HTTP::Message (http://search.cpan.org/~gaas/HTTP-Message/) HTTP::Date (http://search.cpan.org/~gaas/HTTP-Date/) IO::HTML (http://search.cpan.org/~cjm/IO-HTML/) LWP::MediaTypes (http://search.cpan.org/~gaas/LWP-MediaTypes/") HTTP::Cookies (http://search.cpan.org/~gaas/HTTP-Cookies/) HTTP::Negotiate (http://search.cpan.org/~gaas/HTTP-Negotiate/) Net::HTTP (http://search.cpan.org/~gaas/Net-HTTP/) WWW::RobotRules (http://search.cpan.org/~gaas/WWW-RobotRules/) HTTP::Daemon (http://search.cpan.org/~gaas/HTTP-Daemon/) File::Listing (http://search.cpan.org/~gaas/File-Listing/) After the LWP installation, if you want HTTPS protocol support, install the following (application and modules): LWP::Protocol::https (http://search.cpan.org/~gaas/LWP-Protocol-https/) IO::Socket::SSL (http://search.cpan.org/~behroozi/IO-Socket-SSL/) Net::SSLeay (http://search.cpan.org/dist/Net-SSLeay/) Mozilla::CA (http://search.cpan.org/~abh/Mozilla-CA/) Net::DNS-&Net-DNS-version; Net::DNS Net::DNS is a DNS resolver implemented in Perl. It can be used to perform nearly any type of DNS query from a Perl script. The Net::DNS module and all its dependencies are installed using the standard . &lfs75_checked; Net::DNS-&Net-DNS-version; http://www.cpan.org/authors/id/N/NL/NLNETLABS/Net-DNS-&Net-DNS-version;.tar.gz MD5 sum: 219dada09d01b7233f82fd1c32ddad39 Digest::HMAC (http://search.cpan.org/~gaas/Digest-HMAC/) IO::Socket::INET6 (http://search.cpan.org/~shlomif/IO-Socket-INET6-2.72/) IO::Socket::INET (http://search.cpan.org/~gbarr/IO/lib/IO/Socket/INET.pm) (required for IPv6 support) Socket6 (http://search.cpan.org/~umemoto/Socket6/) SGMLSpm-&SGMLSpm-version; SGMLSpm The SGMLSpm module is a Perl library used for parsing the output from James Clark's SGMLS and NSGMLS parsers. This modules uses the standard . &lfs75_checked; Before beginning the build, issue the following command to prevent an error: chmod -v 644 MYMETA.yml After installed, as the root user: ln -sv sgmlspl.pl /usr/bin/sgmlspl SGMLSpm-&SGMLSpm-version; http://anduin.&lfs-domainname;/sources/BLFS/conglomeration/perl-modules/SGMLSpm-&SGMLSpm-version;.tar.gz MD5 sum: 746c74ae969992cedb1a2879b4168090 URI-&URI-version; URI This module implements the URI class. Objects of this class represent "Uniform Resource Identifier references" as specified in RFC 2396 (and updated by RFC 2732). A Uniform Resource Identifier is a compact string of characters that identifies an abstract or physical resource. A Uniform Resource Identifier can be further classified as either a Uniform Resource Locator (URL) or a Uniform Resource Name (URN). The distinction between URL and URN does not matter to the URI class interface. A "URI-reference" is a URI that may have additional information attached in the form of a fragment identifier. This module uses the standard . &lfs75_checked; URI-&URI-version; http://www.cpan.org/authors/id/G/GA/GAAS/URI-&URI-version;.tar.gz MD5 sum: 70f739be8ce28b8baba7c5920ffee4dc XML::Simple-&XML-Simple-version; XML::Simple The XML::Simple module is a Perl extension that provides an easy API to read and write XML (especially config files). This module and all dependency modules use the standard . &lfs75_checked; XML::Simple-&XML-Simple-version; http://cpan.org/authors/id/G/GR/GRANTM/XML-Simple-&XML-Simple-version;.tar.gz MD5 sum: 4d10964e123b76eca36678464daa63cd XML::SAX (http://search.cpan.org/~grantm/XML-SAX/) (Note: this package does not support parallel build) XML::NamespaceSupport (http://search.cpan.org/~perigrin/XML-NamespaceSupport/) XML::SAX::Base (http://search.cpan.org/~grantm/XML-SAX-Base/) XML::SAX::Expat (http://search.cpan.org/~bjoern/XML-SAX-Expat/) (Note: this package does not support parallel build) XML::LibXML (http://search.cpan.org/~shlomif/XML-LibXML/) (recommended for faster parsing) Tie::IxHash (http://search.cpan.org/~chorny/Tie-IxHash/) (optionally used in the test suite) Standard Installation of Perl Modules Install Perl modules by running the following commands: perl Makefile.PL && make && make test Now, as the root user: make install When reinstalling a Perl module, sometimes older versions of the module being reinstalled are in other directories specified in @INC. To delete all other versions of the module being reinstalled (not simply older ones) set the UNINST variable: make install UNINST=1 (Alternate) Auto Installation of Perl Modules. There is an alternate way of installing the modules using the cpan shell install command. The command automatically downloads the source from the CPAN archive, extracts it, runs the compilation, testing and installation commands mentioned above, and removes the build source tree. You may still need to install dependent library packages before running the automated installation method. The first time you run cpan, you'll be prompted to enter some information regarding download locations and methods. This information is retained in files located in ~/.cpan. Start the cpan shell by issuing 'cpan' as the root user. Any module may now be installed from the cpan>  prompt with the command: install <Module::Name> For additional commands and help, issue 'help' from the cpan>  prompt. Alternatively, for scripted or non-interactive installations, use the following syntax as the root user to install one or more modules: cpan -i <Module1::Name> <Module2::Name> Review the cpan.1 man page for additional parameters you can pass to cpan on the command line.