Most perl module installations just involve moving text files. Their "source" is what perl runs. Building from the tarball is slightly more reliable since the installation locations are localized by perl and CPAN.pm.
Some modules use XS or other foreign code, frequently for loading and call system libraries. I prefer to build those from source. That way I know that the C compiler or whatever is compatable with my perl and system libraries.
| [reply] |
I'd say it somewhat depends on the OS you're using. If you're on a Unix of some description, then it's usually easy to make and install modules yourself from source, since you'll likely have gcc, and can therefore deal with pure Perl and XS modules with equal alacrity. If you're on Windows, you may find it easier to use a binary port of perl like the one from ActiveState, and install modules from binary distributions using their PPM tool. There are a few problems with this: the PPM distributions are sometimes out of date or missing; the latest version doesn't seem to update the HTML documentation when you install modules any more; and you can't use certain modules properly (like Inline). If this bugs you, you could always compile perl yourself with Mingw, Microsoft's VCToolkit, or run it inside Cygwin. | [reply] [d/l] [select] |
| [reply] |
If you have an easy to update binary packaging system, like Debian's apt, and don't need features (or bug fixes) only available in versions of a module not avaiable via your packaging system, it is very convenient to use binary packages to install and update perl modules. There are quite a few caveats though... | [reply] |
| [reply] |