Results 1 to 7 of 7

Thread: CPAN Help

  1. #1

    CPAN Help

    I'm trying to install CPAN modules and getting all kinds of missing pm messages. I'm at my wits end trying to figure out why. I'm running perl with cygwin if that matters. I am not understanding why CPAN insists on installing in .local rather than somewhere already in @INC:

    @INC:
    /usr/lib/perl5/site_perl/5.22/x86_64-cygwin-threads
    /usr/lib/perl5/site_perl/5.22
    /usr/lib/perl5/vendor_perl/5.22/x86_64-cygwin-threads
    /usr/lib/perl5/vendor_perl/5.22
    /usr/lib/perl5/5.22/x86_64-cygwin-threads
    /usr/lib/perl5/5.22

    I let the config default:

    applypatch []
    auto_commit [0]
    build_cache [100]
    build_dir [/home/myuser/.local/share/.cpan/build]
    build_dir_reuse [0]
    build_requires_install_policy [yes]
    bzip2 [/usr/bin/bzip2]
    cache_metadata [1]
    check_sigs [0]
    colorize_debug undef
    colorize_output [0]
    colorize_print undef
    colorize_warn undef
    commandnumber_in_prompt [1]
    commands_quote undef
    connect_to_internet_ok [1]
    cpan_home [/home/myuser/.local/share/.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 [/cygdrive/c/Program Files (x86)/GNU/GnuPG/pub/gpg.EXE]
    gzip [/usr/bin/gzip]
    halt_on_failure [0]
    histfile [/home/myuser/.local/share/.cpan/histfile]
    histsize [100]
    http_proxy []
    inactivity_timeout [0]
    index_expire [1]
    inhibit_startup_message [0]
    keep_source_where [/home/myuser/.local/share/.cpan/sources]
    load_module_verbosity [none]
    lynx undef
    make [/usr/bin/make]
    make_arg []
    make_install_arg []
    make_install_make_command [sudo /usr/bin/make]
    makepl_arg []
    mbuild_arg []
    mbuild_install_arg []
    mbuild_install_build_command [sudo ./Build]
    mbuildpl_arg []
    ncftp undef
    ncftpget undef
    no_proxy []
    pager [/usr/bin/less]
    password undef
    patch []
    patches_dir undef
    perl5lib_verbosity [none]
    plugin_list undef
    prefer_external_tar [1]
    prefer_installer [MB]
    prefs_dir [/home/myuser/.local/share/.cpan/prefs]
    prerequisites_policy [follow]
    proxy_pass undef
    proxy_user undef
    randomize_urllist undef
    recommends_policy [1]
    scan_cache [atstart]
    shell [/bin/bash]
    show_unparsable_versions [0]
    show_upload_date [0]
    show_zero_versions [0]
    suggests_policy [0]
    tar [/usr/bin/tar]
    tar_verbosity [none]
    term_is_latin [1]
    term_ornaments [1]
    test_report [0]
    trust_test_report_history [0]
    unzip [/usr/bin/unzip]
    urllist
    0 []404 Not Found
    use_prompt_default [0]
    use_sqlite [0]
    username undef
    version_timeout [15]
    wait_list undef
    wget [/usr/bin/wget]
    yaml_load_code [0]
    yaml_module [YAML]

    I can use the 'find' command to verify that the needed module is installed and in the directory tree. But it seems like perl will not traverse sub-directories in the .local path. Does anyone have any ideas? TIA.

  2. #2

    CPAN Help

    What module(s) are you trying to install?

    What are the error messages?

  3. #3

    CPAN Help

    I'm trying to install WWW::Mechanize. The typical error is (occurs numerous times):

    # Error: Can't locate HTML/Form.pm in @INC (you may need to install the HTM
    L::Form module) (@INC contains: t/local /home/myuser/.local/share/.cpan/b
    uild/WWW-Mechanize-1.75-dCkDAH/blib/lib /home/myuser/.local/share/.cpan/b
    uild/WWW-Mechanize-1.75-dCkDAH/blib/arch /usr/lib/perl5/site_perl/5.22/x86_64-cy
    gwin-threads /usr/lib/perl5/site_perl/5.22 /usr/lib/perl5/vendor_perl/5.22/x86_6
    4-cygwin-threads /usr/lib/perl5/vendor_perl/5.22 /usr/lib/perl5/5.22/x86_64-cygw
    in-threads /usr/lib/perl5/5.22 .) at /home/myuser/.local/share/.cpan/buil
    d/WWW-Mechanize-1.75-dCkDAH/blib/lib/WWW/Mechanize.pm line 133.
    # BEGIN failed--compilation aborted at /home/myuser/.local/share/.cpan/bu
    ild/WWW-Mechanize-1.75-dCkDAH/blib/lib/WWW/Mechanize.pm line 133.
    # Compilation failed in require at t/local/form.t line 10.

  4. #4

    CPAN Help

    I have not installed WWW::Mechanize myself, but I have heard from others that it can be a pain to install due to its large list of non core module dependencies.

    Since it's giving you problems, I'd probably suggest deleting everything in your build directory /home/myuser/.local/share/.cpan/build before proceeding.

  5. #5

    CPAN Help

    I've done all that. I've installed WWW::Mechanize on several platforms many times with only occasional problems which I was easily able to resolve. This is the first time on cygwin. In any case this is just not worth the time and energy. I have switched to Python whose mechanize module was trivial to install. Thanks anyway.

  6. #6
    Then review the list of dependencies at CPAN dependencies and test results checker: WWW::Mechanize and install some of those first, starting with the ones that have the least dependencies of their own.

  7. #7
    starting with the ones that have the least dependencies of their own.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •