RE: Can't locate DBI.pm
- From: lchekuri@xxxxxxxx (Lalitha Chekuri)
- Date: Thu, 28 Apr 2005 09:54:12 -0400
My problem is:
To install perl it is asking cc
I downloaded gcc from freeware,
To install gcc: if I have cc in path it is giving " /usr/ucb/cc:
language optional software package not installed" error.
If I don't have cc in the path it is saying cc not found.
I am not sure what is wrong.
Lalitha
-----Original Message-----
From: James D. White [mailto:jdw@xxxxxx]
Sent: Thursday, April 28, 2005 9:48 AM
To: Michael A Chase
Cc: Chekuri, Lalitha; dbi-users@xxxxxxxx
Subject: 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.
>
.
- Follow-Ups:
- Re: Can't locate DBI.pm
- From: Michael A Chase
- RE: Can't locate DBI.pm
- From: Michael Nhan
- Re: Can't locate DBI.pm
- Prev by Date: Re: Can't locate DBI.pm
- Next by Date: RE: Can't locate DBI.pm
- Previous by thread: RE: Can't locate DBI.pm
- Next by thread: RE: Can't locate DBI.pm
- Index(es):
Relevant Pages
|