Perl
Local CPAN
mcpani is your friend
Adding a Module
- make the package
- make it readable by the CPAN user (put it in /tmp or something)
su -s /bin/bash CPAN
MAYBE edit /home/system/CPAN/.mcpani/config to uncomment the gpg key id
run mcpani --add /path/to/file Run mcpani with no args for better help
- run "mcpani --i/htdocs/authors/id/D/DY/DYLANnject". You'll need to type the password for the CPAN.
copy /home/system/CPAN/htdocs/authors/id/D/DY/DYLAN/CHECKSUMS to /home/system/CPAN
Testing
Check out Test::Output
x86_64
- Remove i386 specific perl RPMs.
# rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' 'perl*' | grep i386 - .. might reveal perl, perl-libs and perl-devel or something similer. Remove all those. To specify arch when removing do like:
rpm -e perl-1.2.3-5.4.i386
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.
