On Sat, Nov 14, 2020 at 07:04:57AM -0700, [email protected] wrote: > I have been trying to get an application (SQL-Ledger) to run on a sparc box > with > solaris 11.4. Apache's log complains it can't find dbd-Pg (Postgresql-13 is > the > DB I'm using). What I did was to download the dbd-pg bundle, saw it had .pm's > in it and placed it in /usr/perl5 in a subdirectory included in apache's idea > of what @INC was. > > FWIW I have also tried to compile it but 'perl Makefile.pl' dies with a > complaint on the code. > > Is it incorrect that one can not drop in a perl module like I did? I always > thought that, to some extent, the host's perl binaries would handle the > CPU/architecture aspects of the host and run the module without issue.
Yes. When a module is pure Perl, copying its .pm file can work. DBD::Pg has C code in addition to its Perl code; it uses C to call into the PostgreSQL client library. To compile that C code and get a working module, you will need to fix whatever problem 'perl Makefile.pl' is reporting.
