Perl & CPAN Update Help for OS X

Here is my problem. I am running OS X v10.7 (Lion) and I want to configure the old Perl program that I wrote (then I used Windows with ActivePerl and then ppm it).

I read to use CPAN to install Perl modules (I'm trying to install the Graph module). Whenever I tried to install it, he refused the failed connection. What for? So I read that in order to update CPAN and fix any broken links, I have to run the following:

cpan> install Bundle:CPAN
cpan> reload cpan
cpan> index cpan
cpan> exit

However, after that I am stuck with this every time I try to install or upgrade CPAN:

New CPAN.pm version (v1.9800) available.
  [Currently running version is v1.9456]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.

I tried to use the default Perl stuff, which is included in OS X instead of loading ActivePerl. How to fix CPAN and install a graphics module?

PS: CPAN CPAN , .

UPDATE v1.9800, (make, install) . Graph Module. :

http://cloud.jjnford.com/3D1C1H4217222b1p1O3a

- , . /User/jj/.cpan User/jj/.cpan_bak, CPAN Graph, .

+5
4

, CPAN (, OS X XAN ). . , , , make Perl script, make- , , , .

$> tar -xvxf CPAN-1.9800
$> cd CPAN-1.9800
$> perl Makefile.PL
$> make
$> make test
$> make install

CPAN:

$> mv ~/.cpan ~/.cpan.bak

, CPAN , . , CPAN , :

cpan shell -- CPAN exploration and modules installation (v1.9800)

, CPAN , Graph Module:

$cpan> install Graph

. , -.

+5

, , "cpanminus". . : cpanminus, cpanminus (. App::cpanminus):

curl -L http://cpanmin.us | perl - --sudo App::cpanminus

:

cpanm <module>

:

curl -L http://cpanmin.us | perl - --sudo <module>

X Lion, :)

+4

Mac OS X Lion, CPAN .

XCode . Make, gcc, g++ .

, : XCode, XCode- > - > " ".

+4

, .

, OP. , ( - Bundle:: CPAN vs Bundle: CPAN), , .

0
source

All Articles