6crazy9 has asked for the wisdom of the Perl Monks concerning the following question:

My master-monks,

I use Perl in Solaris 10 (sun built 5.4.8) for development of scripts and programs in a corporate environment and get on just fine - except fortunately we've only ever had to add ONE module to get MySql interactivty, and I got round gcc compiling problems by eventually getting "Net::MySQL" to work (after quite alot of tweaking in the Makefile!) ..

Anyway, Ive always thought that using a pre-compiled sunfreeware.com distribution of Perl and gcc would make things much better (i.e. download a Module and any relevant dependencies and it should all build without an issue).

But:

Ive used VirtualBox to create myself an Opensolaris installation - (ok, not quite as 'good' as Solaris in terms of all the extra software you get packaged, but I don't think it matters - let me know if this is wrong!) - and Ive downloaded Perl 5.12 and gcc 3.4.6 from SunFreeware.com.

However, I am still running into huge problems compiling modules using gcc - I haven't managed to build/make a single module except Net::MySQL (which this time went through almost flawlessly!) ..

So after 7hours and 5 modules and alot of googling, I gave up and thought "ok, Ive got gcc, let's compile my own Perl and see how that goes" - so I go download the latest Perl distro from perl.org and I can't get even close to compiling the damn thing ..

Does anyone have any experience running Perl and Gcc distro's on Solaris which end in 'happy tales'? I know it must be possible, I just must be being dumb somewhere!

Thanks! Fellow-Perl-follower, Hugo

Replies are listed 'Best First'.
Re: Solaris, perl and gcc
by james2vegas (Chaplain) on Sep 11, 2010 at 02:51 UTC
Re: Solaris, perl and gcc
by marto (Cardinal) on Sep 11, 2010 at 07:02 UTC

    At work I use Solaris 10 (Sparc) and gcc to build perl for source. You've not told us how building your own perl fails. What happens if you try:

    ./Configure -des -Dprefix=$HOME/Your/target/path/here make test make install
Re: Solaris, perl and gcc
by JavaFan (Canon) on Sep 11, 2010 at 21:37 UTC
    It's been a while, but I have compiled Perl and many modules on various versions of Solaris and SunOS, using both gcc and Suns own compiler, and usually had no problems.

    But do yourself a favour, and don't mix compilers. Either compile everything with gcc, or with the native compiler.