about dbi building error.

about dbi building error.

am 22.01.2007 11:50:24 von nancy.ni

------_=_NextPart_001_01C73E13.1F6BBCD1
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Dear Sir./Ms.

=20

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:

=20

=20

sunbilldev% make

/bin/sh -c true

/bin/sh -c true

/bin/sh -c true

cc -c -xO3 -xdepend -DVERSION=3D\"1.37\" -DXS_VERSION=3D\"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=3D1

/bin/sh -c true

/bin/sh -c true

/bin/sh -c true

cc -c -xO3 -xdepend -DVERSION=3D\"1.37\" -DXS_VERSION=3D\"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

=20

can u tell me what's wrong with it and how to continue to install it
successfully?

=20

=20

Thanks & Regards,

=20

Nancy Ni

=20


------_=_NextPart_001_01C73E13.1F6BBCD1--

Re: about dbi building error.

am 22.01.2007 15:51:43 von mnhan

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
> 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

RE: about dbi building error.

am 23.01.2007 03:10:30 von nancy.ni

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

-----Original Message-----
From: Michael Nhan [mailto:mnhan@watson.wustl.edu]=20
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=20
install the sun compilers. Sun does not come with the compilers=20
preinstalled. That's why you are getting "/usr/ucb/cc: language=20
optional software package not installed". Have your sys-admin install
the=20
Forte CC compilers for you.

Regards,
Michael



> Date: Mon, 22 Jan 2007 10:50:24 -0000
> From: Nancy Ni
> To: dbi-users@perl.org
> Subject: about dbi building error.
>=20
> 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=3D\"1.37\" -DXS_VERSION=3D\"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=3D1
>
> /bin/sh -c true
>
> /bin/sh -c true
>
> /bin/sh -c true
>
> cc -c -xO3 -xdepend -DVERSION=3D\"1.37\" -DXS_VERSION=3D\"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;=20
and, in our own despair, against our will,
comes wisdom to us by the awful grace of God."
--- Aeschylus

Re: about dbi building error.

am 23.01.2007 14:31:09 von Martin.Evans

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
>> 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
>
>

RE: about dbi building error.

am 23.01.2007 16:03:33 von mnhan

Hi,
Yes you can do that. Just open the makefile in an editor and
change all the CC reference to the gcc equivalent. This mean not just the
CC to gcc but cc style linker to gcc style linker (I think linker is the
correct word, anyway things like -kPIC to -fPIC and -X04 to its
equivalent. The easier thing to do would be to get perl compiled with gcc
and then all modules you build would then use gcc and you won't have to
change every makefile. There should be a perl installation for download
from http://www.sunfreeware.com which is compiled with gcc.


Regards,
Michael


> Date: Tue, 23 Jan 2007 02:10:30 -0000
> From: Nancy Ni
> To: Michael Nhan
> Cc: dbi-users@perl.org
> Subject: RE: about dbi building error.
>
>
> 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
>
> -----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
>> 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
>
>

---//---
"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