michellc 发表于 2018-8-31 10:07:53

bugzilla的perl模块装不上解决方法

  转载自:http://linux.chinaunix.net/techdoc/net/2008/12/17/1053667.shtml
  1)配置文件:/usr/lib/perl5/5.8.8/CPAN/Config.pm
  如果第一次运行cpan命令
  cpan提示进行交互的进行配置
  当然我们根据自己的需要也可以手动的编辑此文件
  贴一下自己的配置:
  # This is CPAN.pm's systemwide configuration file. This file provides
  # defaults for users, and the values can be changed in a per-user
  # configuration file. The user-config file is being looked for as
  # ~/.cpan/CPAN/MyConfig.pm.
  $CPAN::Config = {
  'build_cache' => q,
  'build_dir' => q,
  'cache_metadata' => q,
  'cpan_home' => q,
  'dontload_hash' => {},
  'ftp' => q,
  'ftp_proxy' => q[],
  'getcwd' => q,
  'gpg' => q,
  'gzip' => q,
  'histfile' => q,
  'histsize' => q,
  'http_proxy' => q[],
  'inactivity_timeout' => q,
  'index_expire' => q,
  'inhibit_startup_message' => q,
  'keep_source_where' => q,
  'links' => q,
  'make' => q,
  'make_arg' => q[],
  'make_install_arg' => q[],
  'makepl_arg' => q[],
  'ncftp' => q[],
  'ncftpget' => q[],
  'no_proxy' => q[],
  'pager' => q,
  'prerequisites_policy' => q,
  'scan_cache' => q,
  'shell' => q,
  'tar' => q,
  'term_is_latin' => q,
  'unzip' => q,
  'urllist' => ],
  'wget' => q,
  };
  1;
  __END__
  2)如果需要重新配置CPAN,输入:
  #cpan
  进入cpan后,输入:
  #CPAN>o conf init
  重新配置后Config.pm如下:
  $CPAN::Config = {
  'applypatch' => q[],
  'auto_commit' => q,
  'build_cache' => q,
  'build_dir' => q,
  'build_dir_reuse' => q,
  'build_requires_install_policy' => q,
  'bzip2' => q,
  'cache_metadata' => q,
  'check_sigs' => q,
  'colorize_output' => q,
  'commandnumber_in_prompt' => q,
  'cpan_home' => q,
  'curl' => q,
  'dontload_hash' => {},
  'ftp' => q,
  'ftp_passive' => q,
  'ftp_proxy' => q[],
  'getcwd' => q,
  'gpg' => q,
  'gzip' => q,
  'histfile' => q,
  'histsize' => q,
  'http_proxy' => q[],
  'inactivity_timeout' => q,
  'index_expire' => q,
  'inhibit_startup_message' => q,
  'keep_source_where' => q,
  'load_module_verbosity' => q,
  'lynx' => q[],
  'make' => q,
  'make_arg' => q[],
  'make_install_arg' => q[],
  'make_install_make_command' => q,
  'makepl_arg' => q[],
  'mbuild_arg' => q[],
  'mbuild_install_arg' => q[],
  'mbuild_install_build_command' => q[./Build],
  'mbuildpl_arg' => q[],
  'ncftp' => q[],
  'ncftpget' => q[],
  'no_proxy' => q[],
  'pager' => q,
  'patch' => q,
  'prefer_installer' => q,
  'prefs_dir' => q,
  'prerequisites_policy' => q,
  'scan_cache' => q,
  'shell' => q,
  'show_unparsable_versions' => q,
  'show_upload_date' => q,
  'show_zero_versions' => q,
  'tar' => q,
  'tar_verbosity' => q,
  'term_is_latin' => q,
  'term_ornaments' => q,
  'test_report' => q,
  'unzip' => q,
  'urllist' => ],
  'use_sqlite' => q,
  'wget' => q,
  'yaml_load_code' => q,
  'yaml_module' => q,
  };
  1;
  __END__
  3)安装perl组件出错:
  /usr/bin/make — NOT OK
  Running make test
  Can’t test without successful make
  Running make install
  make had returned bad status, install seems impossible
  一.可以尝试
  #cpan
  cpan>o conf make /usr/bin/make
  cpan>o conf commit
  cpan>exit
  然后用perl命令再安装一下该组件,看能否成功。
  二.原因也可能是默认缓存/root/.cpan中的数据损坏rm -rf ~/.cpan删除后在perl -MCPAN -eshell中执行reload index然后执行install Bundle::CPAN最后执行reloadCPAN即可正常通过命令行install MODULES

页: [1]
查看完整版本: bugzilla的perl模块装不上解决方法