
Tips for running CPAN in Solaris 11
CPAN is available from the official Solaris 11 distribution, you may find it in package manager under publisher "solaris". It is permissible to have both Perl version 5.8 and 5.12 installed simultaneously.
Unlike most Unix/Linux distributions, cpan executable is not in $PATH in a Solaris 11. It is located at /usr/perl5/bin/ which is a symbol link to the default Perl version your Solaris uses:
lrwxrwxrwx 1 root root 10 2012-08-21 17:30 bin -> ./5.12/bin
While many CPAN models only contain Perl code, some of them require a C compiler to build and install. CPAN will find and use the C compiler at /bin/cc to build these modules. Be aware that Solaris 11 does not offer a C compiler by default, and the officially distributed gcc3 fails to compile most of the Perl modules.
To get a modern and up-to-date C compiler for Solaris 11, download "Solaris Studio" that comes with comprehensive C, C++, and Fortran compilers and libraries. After having installed the Solaris Studio, create a symbol link ln -sf /bin/cc /opt/solarisstudio-VERSION/cc.
Afterwards, Perl modules will no longer experience trouble with compiling their C code.
CPAN modules that install binaries will have the binary programs placed under /usr/perl/bin/ directory.
Leave Tips for running CPAN in Solaris 11 to:
Read more #unix posts
Best Posts From Howard (Houzuo) Guo
We have not curated any of ghz's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Howard (Houzuo) Guo
- Open Source: new features in laitos v3.1 - your personal web infrastructure and assistant over telephone/SMS/satellite terminals
- Howard (Houzuo) Guo | HZGL
- New Version! laitos v1.2 brings new enhancements to the only software solution that let you be in touch with your Linux computer at all times via telephone, SMS, and satellite terminals
- A minimal setup for managing SUDO rules centrally on a directory server
- Go: workaround to json.Unmarshal being incapable of deserialising into custom interface type
- Alter the system-wide default environment PATH and switch-user PATH on Solaris 10 and 11
- Tips for running CPAN in Solaris 11
- Remedy for PPTP VPN clients not able to browse several or any websites
- Install Broadcom BCM5786 Driver in Oracle Solaris 10
- Create a better world map (base map) for your Garmin Fenix