perl modules vs. solaris 10

thinc on 2006-06-21T19:52:04

So I've got this solaris 10 workstation, and I want to install DateTime on it.

No problem, I think, just fire up cpan and "install DateTime".

Yeah right. This is solaris. Of course I don't have "Sun WorkShop" installed. So I install gcc, and gmake.

But wait, perl was compiled with Sun WorkShop, so the configure flags are different.

Then I find out about perlgcc. It works beautifully.

Here's the magic of how to compile perl modules on solaris 10 without having Sun developer tools installed:

# echo $PATH
/usr/sbin:/usr/bin:/usr/local/bin/:/usr/sfw/bin/
# /usr/perl5/bin/perlgcc Makefile.PL
...
# gmake
...
# gmake test
...
# gmake install


Note the /usr/sfw/bin/ on path to pick up the gcc and gmake.

Thank you Alan Burlison and perlgcc, you just made my job a lot easier.