- or download this
Building CPAN modules on Solaris might be a bit different than on your
+ average Linux platform. Here is the reason why:
...
Luckily Solaris comes with a tool called perlgcc that fixes this probl
+em. It will make sure that modules are build with gcc rather than the
+ Sun Studio compiler. Instead of invoking perl Makefile.PL to generat
+e the makefile needed to compile a module, perlgcc Makefile.PL should
+ be used instead. All command-line arguments to perlgcc are passed un
+modified to perl.
Needless to say you can forget all in this article if you have Sun Stu
+dio compiler installed and wish to use that for building modules. How
+ever most Perl modules have only been tested to compile with the GNU
+C/C++ compiler so if you do not want trouble stick with the recipe in
+ this article.
- or download this
perl Makefile.PL
- or download this
perlgcc Makefile.PL
- or download this
[db07-dc2:~] root% ./dbitest.pl
ld.so.1: perl: fatal: relocation error: file /usr/perl5/site_perl/5.8.
+4/sun4-solaris-64int/auto/DBD/Oracle/Oracle.so: symbol OCINlsEnvironm
+entVariableGet: referenced symbol not found
Killed
- or download this
#!/usr/bin/perl
use warnings;
...
"$PASS",
) || die "Database connection not made: $DBI::er
+rstr";
$dbh->disconnect;
- or download this
[db07-dc2:~] root% uname -a
SunOS db07-dc2 5.10 Generic_147440-09 sun4u sparc SUNW,Sun-Fire-15000
- or download this
[db07-dc2:~] root% perl -v
This is perl, v5.8.4 built for sun4-solaris-64int
(with 36 registered patches, see perl -V for more detail)