From Wikibooks, open books for an open world
Jump to navigation Jump to search

Installation[edit | edit source]

There are two ways to install MediaWiki::Bot.

Using CPAN shell (recommended)[edit | edit source]

If you use the CPAN shell to install MediaWiki::Bot, the entire process is automated:

   user@host:~$ sudo -i
   root@host:~# cpan
   cpan> install MediaWiki::Bot

You might have CPAN configured such that you don't need to become root initially.

Manual[edit | edit source]

Otherwise, you can install it manually. First install the dependencies (listed below), then install MediaWiki::Bot. To install this module type the following in the root directory or a checkout from SVN or an unpacked tarball:

  user@host:~$ perl Makefile.PL
  user@host:~$ make
  user@host:~$ make test
  user@host:~$ sudo make install

You might use other methods to become root instead of sudo.

The test scripts included with MediaWiki::Bot require a working internet connection. If the test suite fails, it might be safe to install the module anyway. When in doubt, email perlwikibot‐at‐ with the complete output of the test suite and ask for advice.

Dependencies[edit | edit source]

This module requires these other modules and libraries:

  • WWW::Mechanize
  • HTML::Entities
  • URI::Escape
  • XML::Simple
  • Carp
  • Encode
  • MediaWiki::API
  • Module::Pluggable
  • Crypt::SSLeay
  • Digest::MD5