Setting up Perl can be a pain if you need more than the handful of modules that are available with your package manager. And how will you check? And how will you check whether something you need is only available from CPAN but some of its dependencies are available from your package manager. Aaaargh!
For a while, I considered setting up perlbrew, and switching to cpanm. But then I realized how much time I was loosing as it stands. If you want to know why `HTTP::BrowserDetect` doesn’t install, you need to read the error messages and install `YAML` and `Class::Exception` and all the dependencies of `Test::Most` and... and... and... it goes on for a long time when all you want is this:
cpan CPAN cpan Term::ANSIColor cpan HTTP::BrowserDetect
The Oddmuse Debian page says:
apt-get install perl-modules \ libwww-perl libxml-rss-perl \ libmime-base64-perl \ diffutils
This is my current cpan config. The mirrors were determined by cpan itself. They’re not the most obvious ones. Weird.
$CPAN::Config options from /home/alex/.cpan/CPAN/MyConfig.pm: commit [Commit changes to disk] defaults [Reload defaults from disk] help [Short help about 'o conf' usage] init [Interactive setting of all options] applypatch [/usr/bin/applypatch] auto_commit [1] build_cache [100] build_dir [/home/alex/.cpan/build] build_dir_reuse [0] build_requires_install_policy [yes] bzip2 [/bin/bzip2] cache_metadata [1] check_sigs [0] colorize_debug [black on_cyan] colorize_output [1] colorize_print [bold blue on_white] colorize_warn [bold red on_white] commandnumber_in_prompt [1] commands_quote undef connect_to_internet_ok [1] cpan_home [/home/alex/.cpan] curl undef dontload_hash undef dontload_list undef ftp undef ftp_passive [1] ftp_proxy [] ftpstats_period undef ftpstats_size undef getcwd [cwd] gpg [/usr/bin/gpg] gzip [/bin/gzip] halt_on_failure [0] histfile [/home/alex/.cpan/histfile] histsize [100] http_proxy [] inactivity_timeout [0] index_expire [1] inhibit_startup_message [0] keep_source_where [/home/alex/.cpan/sources] load_module_verbosity [none] lynx undef make [/usr/bin/make] make_arg [] make_install_arg [] make_install_make_command [sudo make] makepl_arg [INSTALLDIRS=site] mbuild_arg [] mbuild_install_arg [] mbuild_install_build_command [sudo ./Build] mbuildpl_arg [--installdirs site] ncftp undef ncftpget undef no_proxy [] pager [/usr/bin/less] password undef patch [/usr/bin/patch] patches_dir undef perl5lib_verbosity [none] plugin_list undef prefer_external_tar [1] prefer_installer [MB] prefs_dir [/home/alex/.cpan/prefs] prerequisites_policy [follow] proxy_pass undef proxy_user undef randomize_urllist undef recommends_policy undef scan_cache [atstart] shell [/bin/bash] show_unparsable_versions [0] show_upload_date [0] show_zero_versions [0] suggests_policy undef tar [/bin/tar] tar_verbosity [none] term_is_latin [0] term_ornaments [1] test_report [0] trust_test_report_history [0] unzip [/usr/bin/unzip] urllist 0 [***] 1 [***] 2 [***] use_prompt_default undef use_sqlite [1] username undef version_timeout [15] wait_list undef wget [/usr/bin/wget] yaml_load_code [0] yaml_module [YAML]