Perl

Local CPAN

mcpani is your friend

Adding a Module

  1. make the package
  2. make it readable by the CPAN user (put it in /tmp or something)
  3. su -s /bin/bash CPAN

  4. MAYBE edit /home/system/CPAN/.mcpani/config to uncomment the gpg key id

  5. run mcpani --add /path/to/file Run mcpani with no args for better help

    1. run "mcpani --i/htdocs/authors/id/D/DY/DYLANnject". You'll need to type the password for the CPAN.
  6. copy /home/system/CPAN/htdocs/authors/id/D/DY/DYLAN/CHECKSUMS to /home/system/CPAN

Testing

Check out Test::Output

x86_64

is only avaliable with the XS version

This quaint error message is generated by something loading Scalar::Util like this use Scalar::Util qw(dualvar); Most likely the error message said nothing about Scalar::Util. I've seen it a lot from Compress::Zlib.

I've had mixed results. Sometimes removing a CPAN version of Scalar::Util and using the RPM version fixes it, other times building from source (ala CPAN) installs the missing XS version. Very weird.

I think it's better to use the RPM in Fedora 7 and better to use CPAN in Fedora 8 or OpenBSD. In OpenBSD I had to build and install by hand (I.E. not from the cpan util)

OpenBSD and CPAN

Lynx screws up the line-ending or something like that in OpenBSD, so if you dont' have LWP and you only have http mirrors, you're SOL. Add an FTP mirror to your mirror list and things should start working. Once you have LWP, you're good to go either way.


CategoryNotes

Perl (last edited 2008-02-27 01:17:52 by localhost)