Professional Web Applications Themes

CPAN - PERL Beginners

I am accessing CPAN as an un-priviledged user and run into a problem during make install. CPAN quits suggesting I su to run make install. Do I have to su before I do "perl _MCPAN -e shell" ? Can I continue the process in $HOME/.cpan ? Will this go to the main INC somewhere, or be an orphan in my $HOME ? Thanks for your pointers Tim...

  1. #1

    Default CPAN

    I am accessing CPAN as an un-priviledged user and run into a problem during
    make install. CPAN quits suggesting I su to run make install.

    Do I have to su before I do "perl _MCPAN -e shell" ?

    Can I continue the process in $HOME/.cpan ?

    Will this go to the main INC somewhere, or be an orphan in my $HOME ?

    Thanks for your pointers

    Tim

    Tim Guest

  2. #2

    Default Re: CPAN

    > I am accessing CPAN as an un-priviledged user and run into a problem
    during 

    Do you have 'su' permissions or not? The easiest thing to do is to
    become a privileged user and let CPAN install the modules where it
    will... this isn't always possible.
     

    If you are allowed to, then yes that is the easiest way...
     

    Depends... with 'su' I believe you are going to have $HOME set to /root
    rather than /home/<user> so it may not work and you will have to
    reconfigure CPAN, etc. With something like 'sudo' on the other hand you
    are getting a privileged <user> rather than a root login, so it should
    work without changes (this is probably the easiest way to do things).
    This is probably OS dependent, and is my *understanding* not necessarily
    *fact* :-)...
     

    As long as you have privileges to write to the INC then it will go
    there. If you do not, you can configure CPAN to install into a
    directory of your choosing. Then in your scripts you can either add a
    'use lib' line, or in your environment you can set the PERL5LIB variable.

    If you do not have privileges and need more help come back and we can
    straighten out your CPAN config.

    http://danconia.org

    Wiggins Guest

  3. #3

    Default CPAN

    Hello!

    Anyone know how to remove a mirror from the list that CPAN uses? I
    would like to remove ftp://carroll.cac.psu.edu from the list as it
    keeps timing out....

    Thanks!

    --
    --==[ Bob Gordon ]==--
    Bob Guest

  4. #4

    Default deleting a mirror from CPAN.pm, was Re: CPAN

    Please use a more descriptive subject line.

    On Mon, 4 Oct 2004, Bob Gordon wrote:
     

    Do you have a file at ~/.cpan/CPAN/MyConfig.pm ?

    If so, it's a declaration like
    CPAN::Config hash

    $CPAN::Config = {
    'build_cache' => q[10],
    'build_dir' => q[/Users/Shared/.cpan/build],
    # ... several lines skipped ...
    'urllist' => [q[ftp://ftp.cise.ufl.edu/pub/mirrors/CPAN/],
    q[ftp://ftp.cpanel.net/pub/CPAN/],
    q[ftp://ftp.cs.colorado.edu/pub/perl/CPAN/],
    q[ftp://ftp.dc.aleron.net/pub/CPAN/],
    q[ftp://ftp.duke.edu/pub/perl/]],
    'wget' => q[],
    };
    1;


    All you have to do is find and edit the 'urllist' declaration line.


    --
    Chris Devers
    Chris Guest

  5. #5

    Default Re: deleting a mirror from CPAN.pm, was Re: CPAN

    On Mon, 4 Oct 2004 19:04:09 -0400 (EDT), Chris Devers <com> wrote: 
    >
    > Do you have a file at ~/.cpan/CPAN/MyConfig.pm ?
    >
    > If so, it's a declaration like
    > CPAN::Config hash
    >
    > $CPAN::Config = {
    > 'build_cache' => q[10],
    > 'build_dir' => q[/Users/Shared/.cpan/build],
    > # ... several lines skipped ...
    > 'urllist' => [q[ftp://ftp.cise.ufl.edu/pub/mirrors/CPAN/],
    > q[ftp://ftp.cpanel.net/pub/CPAN/],
    > q[ftp://ftp.cs.colorado.edu/pub/perl/CPAN/],
    > q[ftp://ftp.dc.aleron.net/pub/CPAN/],
    > q[ftp://ftp.duke.edu/pub/perl/]],
    > 'wget' => q[],
    > };
    > 1;
    >
    > All you have to do is find and edit the 'urllist' declaration line.[/ref]

    Thanks.. Didn't find it there but I was able to locate it in
    /usr/local/lib/perl5/5.8.5/CPAN

    --
    --==[ Bob Gordon ]==--
    Bob Guest

  6. #6

    Default Re: deleting a mirror from CPAN.pm, was Re: CPAN

    In article <local>,
    com (Chris Devers) writes: 
    >
    >Do you have a file at ~/.cpan/CPAN/MyConfig.pm ?[/ref]
    [snip] 

    It's intended to be easier than that. Assuming that the offending mirror
    is first in the list (or it would be unlikely for it to be a problem):

    perl -MCPAN -e shell
    o conf urllist shift
    # Optionally, replace it with another one via:
    o conf urllist unshift http://new.mirror.com/CPAN
    o conf commit
    q

    --
    Peter Scott
    http://www.perldebugged.com/
    *** NEW *** http://www.perlmedic.com/
    Peter Guest

Similar Threads

  1. PHP on CPAN?
    By John Bokma in forum PERL Modules
    Replies: 0
    Last Post: April 16th, 10:56 PM
  2. Replies: 0
    Last Post: May 10th, 08:51 PM
  3. Listed in search.cpan.org but not www.cpan.org
    By William Goedicke in forum PERL Modules
    Replies: 0
    Last Post: February 3rd, 03:47 PM
  4. Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)
    By Matthew Glidden in forum PERL Beginners
    Replies: 2
    Last Post: December 11th, 06:50 PM
  5. CPAN or ?
    By Tim in forum PERL Beginners
    Replies: 2
    Last Post: November 18th, 06:54 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139