develooper Front page | perl.dbi.users | Postings from January 2007

Re: about dbi building error.

Thread Previous
From:
Martin Evans
Date:
January 23, 2007 05:27
Subject:
Re: about dbi building error.
Message ID:
45B60E1D.3060401@easysoft.com
Nancy Ni wrote:
> If my unix system currently uses gcc to compile c program,then what
> should I do without installing a new sun compiler?can change the make
> file for c compile?
> Thanks & regards,
> Nancy

Firstly, you need to use the same compiler to compile Perl and any 
modules not included with the standard Perl distribution that you 
compile later (e.g. DBI). If you got Perl binaries from elsewhere
(e.g. Sun) they most probably were built with the Forte compiler
in which case you'll have to either a) get the Forte compiler or
b) rebuild Perl with the compiler you have).

You will need to ascertain what compiler was used to compile the Perl
you are using - I believe you can see this if you run Perl -V and
look for cc.

Then when you build DBI you need to ensure the first compiler
found in your path is the same compiler used to compile Perl
i.e. make sure /path/to/gcc (if it is gcc) is first in your PATH
environment variable.

Martin
-- 
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

> -----Original Message-----
> From: Michael Nhan [mailto:mnhan@watson.wustl.edu] 
> Sent: Monday, January 22, 2007 10:52 PM
> To: Nancy Ni
> Cc: dbi-users@perl.org
> Subject: Re: about dbi building error.
> 
> Hi,
> 
>  	If you choose to use the sun compilers to compile DBI, you must 
> install the sun compilers. Sun does not come with the compilers 
> preinstalled.   That's why you are getting "/usr/ucb/cc:  language 
> optional software package not installed".  Have your sys-admin install
> the 
> Forte CC compilers for you.
> 
> Regards,
> Michael
> 
> 
> 
>   > Date: Mon, 22 Jan 2007 10:50:24 -0000
>> From: Nancy Ni <nancy.ni@mobile365.com>
>> To: dbi-users@perl.org
>> Subject: about dbi building error.
>>
>> Dear Sir./Ms.
>>
>>
>>
>> My current server perl version is:
>>
>> This is perl, version 5.005_03 built for sun4-solaris
>>
>> The Bundle about DBI I using is DBI-1.37.
>>
>> During building it,there is some error appearing:
>>
>>
>>
>>
>>
>> sunbilldev% make
>>
>> /bin/sh -c true
>>
>> /bin/sh -c true
>>
>> /bin/sh -c true
>>
>> cc -c   -xO3 -xdepend    -DVERSION=\"1.37\" -DXS_VERSION=\"1.37\"
> -KPIC
>> -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS Perl.c
>>
>> /usr/ucb/cc:  language optional software package not installed
>>
>> make: *** [Perl.o] Error 1
>>
>> sunbilldev% make test TEST_VERBOSE=1
>>
>> /bin/sh -c true
>>
>> /bin/sh -c true
>>
>> /bin/sh -c true
>>
>> cc -c   -xO3 -xdepend    -DVERSION=\"1.37\" -DXS_VERSION=\"1.37\"
> -KPIC
>> -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS Perl.c
>>
>> /usr/ucb/cc:  language optional software package not installed
>>
>> make: *** [Perl.o] Error 1
>>
>>
>>
>> can u tell me what's wrong with it and how to continue to install it
>> successfully?
>>
>>
>>
>>
>>
>> Thanks & Regards,
>>
>>
>>
>> Nancy Ni
>>
>>
>>
>>
> 
>  		---//---
>      "He who learns must suffer. And even in our sleep,
>   pain that cannot forget, falls drop by drop upon the heart; 
> and, in our own despair, against our will,
>   comes wisdom to us by the awful grace of God."
>  		--- Aeschylus
> 
> 

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About