I'm going to assume that you have a hosting account on a *ix box with shell access. Log in, do ls -la and you may see a dir called '.cpan' (this should be in your account home directory).
You want a file in '.cpan/CPAN/MyConfig.pm'
Here's mine:
$CPAN::Config = {
'build_cache' => q[10],
'build_dir' => q[/home/myself/.cpan/build],
'cache_metadata' => q[0],
'cpan_home' => q[/home/myself/.cpan],
'dontload_hash' => { },
'ftp' => q[/usr/bin/ftp],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gpg' => q[],
'gzip' => q[/usr/bin/gzip],
'histfile' => q[/home/myself/.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[/home/myself/.cpan/sources],
'lynx' => q[/usr/local/bin/lynx],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'makepl_arg' => q[PREFIX=/home/myself LIB=/home/myself/lib],
'ncftp' => q[],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[more],
'prerequisites_policy' => q[ask],
'scan_cache' => q[atstart],
'shell' => q[/bin/bash],
'tar' => q[/usr/bin/tar],
'term_is_latin' => q[1],
'unzip' => q[],
'urllist' => [q[ftp://mirrors.phenominet.com/pub/CPAN/], q[ftp://mir
+rors.jtlnet.com/CPAN/], q[ftp://mirrors.24-7-solutions.net/pub/CPAN/]
+, q[ftp://mirror.sit.wisc.edu/pub/CPAN/]],
'wget' => q[/usr/local/bin/wget],
};
1;
With this all in place.. you can just run cpan to install modules! Woohoo!! cpan install The::Module::I::Want
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.