Perl, CGI.pm, DBI/DBD on Solaris8 (CC vs. GCC)
Problem:
CGI.pm, DBI/DBD etc. will not install with
the Solaris CC compiler. The reason for this is that the CC compiler
on solaris 8 is not a full version. The full version costs money. In
addition since the installed perl was compilied with CC you can not
compile the other perl libraries with gcc.
> Solaris 8 now comes with perl5 installed, I'm trying
> to add DBI but make complains that my cc has not
> all "optional language software installed".
>
> Do I need the original compiler that perl was installed with
> before I can add any more modules?
Yes.
You can check which compiler it is with the command
perl -V:cc
> I know that the full cc compiler is an add on product from
> Sun (with cost).
Don't uninstall the Perl interpreter bundled with Solaris (I think it's
perl 5.003_05). This may break things. My advice is to install gcc and
to build a newer Perl (e.g. 5.6.0) from sources, and to install it in
/usr/local (or in /opt, at your option).
An example: if you want to install MySQL, you will need gcc (Sun's cc
doesn't work). Then, to install DBI and DBD::mysql, you will need a Perl
Re-installing Perl onto Solaris 8 was very easy and the corresponding installs (CGI.pm, DBI/DBD) went very well. You merely have to remember when re-installing is to tell it to use gcc. Libraries after this point will know to also use gcc.
Last modified: Thu Jan 24 13:47:43 EST 2002