Re: Can't locate DBI.pm



It looks like you have a fresh install of Solaris 9, not a fresh install of perl.
"v5.6.1 built for sun4-solaris-64int" is the version that comes with Solaris 9,
which was built by Sun using a Sun C compiler and installed, I assume, as
/usr/bin/perl.


You have two options.

1) Spend money. Buy and install the Sun C compiler that was used to build
the perl that came with Solaris 9. Then build DBI with that C compiler.  You
do not have the C compiler as evidences by "/usr/ucb/cc:  language optional
software package not installed".

2) Save money. Download and install gcc. Download the source version of
perl. Check out README.solaris. Install the downloaded source version
of perl into /usr/local, but leave the Sun compiled version in /usr. Some of
the Solaris utilities depend upon that version, but the path is hard-wired
into the programs, so as long as /usr/local/bin is in your path before /usr/bin,
you can run the version you install, and the Solaris utilities use their version.
Install DBI and any other perl modules you may need.


Michael A Chase wrote:

On 04/27/2005 01:22 PM, Chekuri, Lalitha said:

It is fresh install:
magma:oracle $uname -a
SunOS magma 5.9 Generic_117171-12 sun4u sparc SUNW,Ultra-60

My perl -v magma:oracle $perl -v

This is perl, v5.6.1 built for sun4-solaris-64int
(with 48 registered patches, see perl -V for more detail)

For CC:
magma:oracle $what cc
can't open cc (26)
magma:oracle $which cc
/usr/ucb/cc
magma:oracle $cc
/usr/ucb/cc:  language optional software package not installed


It is exactly as Ron and Michael Nhan said, you need to either install the same compiler that was used to build your perl or you need to build perl with the comipler you have

Modules __MUST__ be built with the same compiler that was used to build perl.


.



Relevant Pages

  • Re: attempt to build 64 bit on Solaris fails
    ... > libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... > Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Re: attempt to build 64 bit on Solaris fails
    ... libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Problems building DBD 1.51 on Solaris 9
    ... I have not found anything in google that has helped with with this problem, aside from that I should be using a compiler that was built on Solaris 9. ... I built gcc 4.1.1 on Solaris 9, then used that to build the 64 bit Perl on the same host. ... I can install CPAN with this version of Perl, but had not been able to build DBD 1.5.1. ...
    (perl.dbi.users)
  • RE: Make problem Building 64 bit Perl 5.8.8 from source on Solaris 10 with gcc 3.4.6
    ... Solaris 10 with gcc 3.4.6 ... Make problem Building 64 bit Perl 5.8.8 from source on ... INSTALL notes and have looked through the hints script. ... compiler or make any changes to the system directories. ...
    (perl.dbi.users)
  • Re: Dont get DBI module installed
    ... You need to build DBI with the same C compiler that was used to build the version of Perl ... Install the new Perl into /usr/local. ...
    (perl.dbi.users)