What is the 'best practice' for installing perl modules on Solaris/OpenSolaris?

Posted by AndrewR on Server Fault See other posts from Server Fault or by AndrewR
Published on 2010-05-12T02:41:12Z Indexed on 2010/05/12 2:44 UTC
Read the original article Hit count: 302

Filed under:
|
|
|

I'm currently in the process of writing setup instructions for some software I've written that is implemented as a set of Perl modules. Having done this for various flavours of Linux, I'm now doing the same for Solaris/OpenSolaris (v10 only).

Part of the setup process is to make sure that dependent Perl modules are installed. This has been pretty easy on Linux as the Perl modules I require tend to be within the distro's packaging system (eg yum install perl-Cache-Cache).

This is not the case on Solaris so I'm working on setup instructions that use the CPAN module to fetch dependent modules (eg perl -MCPAN -e 'install Cache::Cache'). This works ok but there are known problems with modules that require things to be built with a C compiler.

The problem is that the C Makefile generated assumes you're using Sun's compiler and uses command-line options not understood by gcc, which you may be using instead. Consulting teh Internetz has thrown up a number of solutions to this:

All of these work. My question to those more familiar with Solaris than me is: Is one of these the 'best' or 'most commonly used' method?

© Server Fault or respective owner

Related posts about perl

Related posts about cpan