On 2/16/02 11:28 AM, "Stonewall Ballard" <[EMAIL PROTECTED]> wrote:
> I'm looking for instructions on installing Perl and the CPAN modules on OS > X. I'm not a serious Unix hacker, so I'm looking for a simple recipe. > > I've tried installing some CPAN modules, and every time I do it, Perl 5.6.1 > is downloaded and installed. Or at least, it tried to install. I had the same problem which I solved by reinstalling CPAN. Do this, while logged in as an administrator : 1. Download the latest version of CPAN from http://www.cpan.org/authors/id/ANDK/CPAN-1.59_54.tar.gz . Don't let Stuffit Expander decompress it; if it does, throw out Stuffit's decompressed folder. 2. In terminal, maneuver to the directory where the downloaded file is located. 3. From the command line, enter the following commands % gzip -d CPAN-1.59_54.tar.gz % tar -xvf CPAN-1.59_54.tar [N.B. These instructions are adapted from those at <http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlmodinstall.html>. That page suggests using the flags "-xof". However, the "o" didn't work for me, but the "v" flag did. I forgot where I learned that little tip.] 4. Go the the newly created directory (named something like CPAN-1.59_54) and enter the following commands: % perl Makefile.PL % make % make test % sudo make install # you need superuser rights to install CPAN properly CPAN will now be installed. Next time you run CPAN, all should be fine -- it won't try to install Perl 5.6.1. If you need to reconfigure CPAN, just accept the defaults; they worked for me. My only other suggestion is to sudo CPAN whenever you install new modules, to make sure they're installed properly. HTH. - geoff