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 <[EMAIL PROTECTED]>
To: Michael Nhan <[EMAIL PROTECTED]>
Cc: [email protected]
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:[EMAIL PROTECTED]
Sent: Monday, January 22, 2007 10:52 PM
To: Nancy Ni
Cc: [email protected]
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 <[EMAIL PROTECTED]>
To: [email protected]
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

Reply via email to