Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Config.pm

Status
Not open for further replies.

maunir

MIS
Apr 30, 2002
62
US
I'm missing this file for perl in Solaris 10 and wanted to regenerate it, how do I go about doing that? Thanks
 
For CPAN...I wanted to install SNMP module using
perl -MCPAN -e "install net::snmp" and that's when i got the error.
 
The output for the error

Cannot open >/usr/perl5/5.8.4/lib/CPAN/Config.pm at /usr/perl5/5.8.4/lib/CPAN.pm line 1219
CPAN::Config::_configpmtest('/usr/perl5/5.8.4/lib/CPAN', '/usr/perl5/5.8.4/lib/CPAN/Config.pm') called at /usr/perl5/5.8.4/lib/CPAN.pm line 1253
CPAN::Config::load('CPAN::Config') called at /usr/perl5/5.8.4/lib/CPAN.pm line 78
CPAN::AUTOLOAD('Net::SNMP') called at -e line 1

that's when i checked and found that Config.pm was missing.
 
If that doesn't work, here's a

Here's a replacement, make adjustments where necessary
Code:
$CPAN::Config = {
  'build_cache' => q[50],
  'build_dir' => q[/root/.cpan/build],
  'bzip2' => q[],
  'cache_metadata' => q[1],
  'cpan_home' => q[/root/.cpan],
  'curl' => q[],
  'dontload_hash' => {  },
  'ftp' => q[],
  'ftp_proxy' => q[],
  'getcwd' => q[cwd],
  'gpg' => q[],
  'gzip' => q[],
  'histfile' => q[/root/.cpan/histfile],
  'histsize' => q[100],
  'http_proxy' => q[],
  'inactivity_timeout' => q[0],
  'index_expire' => q[1],
  'inhibit_startup_message' => q[0],
  'keep_source_where' => q[/root/.cpan/sources],
  'lynx' => q[],
  'make' => q[/usr/bin/make],
  'make_arg' => q[],
  'make_install_arg' => q[],
  'make_install_make_command' => q[/usr/bin/make],
  '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[more],
  'prefer_installer' => q[EUMM],
  'prerequisites_policy' => q[ask],
  'scan_cache' => q[atstart],
  'shell' => q[],
  'show_upload_date' => q[0],
  'tar' => q[],
  'term_is_latin' => q[1],
  'unzip' => q[],
  'urllist' => [q[ftp://ftp.duke.edu/pub/perl/], q[ftp://mirrors.kernel.org/pub/CPAN], q[[URL unfurl="true"]http://www.perl.com/CPAN/[/URL]]],
  'wget' => q[],
};
1;
__END__

M. Brooks
 
I tried just typing in cpan and the same error comes back and I already tried the second suggestion but can't save the file as it's only in read only mode. Tried ftp'ing and same thing.
Do I have to reinstall CPAN module to make it work?
 
This box was built before I started. Anyways thanks for your help and suggestion. I have also tried to rebuild it by typing in perl -MCPAN -e shell, which is recommended to rebuild Config.pm but I can't even get cpan cli....
 
Figured it out. What was going on was that I was working on a zone in Solaris 10 and Config.pm was supposed to be rebuild on the main server. As soon as I rebuild it with the option mentioned above the Config.pm was there and it propagated to all the zones........
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top