DBI compiling error on solaris box

2009-09-07 Thread chethan.mnc
Hi all,

I am trying to install DBI on a solaris box hosting oracle.

please find the error log attched.

error :

/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap
/usr/perl5/5.8.4/lib/ExtUtils/typemap -typemap typemap Perl.xs 
Perl.xsc  mv Perl.xsc Perl.c

cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO
-xO3 -xspace -xildoff -DVERSION=\1.609\ -DXS_VERSION=\1.609\ -KPIC
-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -DDBI_NO_THREADS Perl.c

sh: cc: not found

*** Error code 1

make: Fatal error: Command failed for target `Perl.o'



PLease help me on this.



Regards,

Chethan M N


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 bash-3.00# 
perl Makefile.PL\par
Creating test wrappers for DBI::PurePerl:\par
t/zvp_01basics.t\par
t/zvp_02dbidrv.t\par
t/zvp_03handle.t\par
t/zvp_04mods.t\par
t/zvp_05concathash.t\par
t/zvp_06attrs.t\par
t/zvp_07kids.t\par
t/zvp_08keeperr.t\par
t/zvp_09trace.t\par
t/zvp_10examp.t\par
t/zvp_11fetch.t\par
t/zvp_12quote.t\par
t/zvp_13taint.t\par
t/zvp_14utf8.t\par
t/zvp_15array.t\par
t/zvp_19fhtrace.t\par
t/zvp_20meta.t\par
t/zvp_30subclass.t\par
t/zvp_35thrclone.t\par
t/zvp_40profile.t\par
t/zvp_41prof_dump.t\par
t/zvp_42prof_data.t\par
t/zvp_43prof_env.t\par
t/zvp_50dbm.t\par
t/zvp_60preparse.t\par
t/zvp_65transact.t\par
t/zvp_70callbacks.t\par
t/zvp_72childhandles.t\par
t/zvp_80proxy.t\par
t/zvp_85gofer.t\par
t/zvp_86gofer_fail.t\par
t/zvp_87gofer_cache.t\par
Creating test wrappers for DBD::Gofer:\par
t/zvg_01basics.t\par
t/zvg_02dbidrv.t\par
t/zvg_03handle.t\par
t/zvg_04mods.t\par
t/zvg_05concathash.t\par
t/zvg_06attrs.t\par
t/zvg_07kids.t\par
t/zvg_08keeperr.t\par
t/zvg_09trace.t\par
t/zvg_10examp.t\par
t/zvg_11fetch.t\par
t/zvg_12quote.t\par
t/zvg_13taint.t\par
t/zvg_14utf8.t\par
t/zvg_15array.t\par
t/zvg_19fhtrace.t\par
t/zvg_20meta.t\par
t/zvg_30subclass.t\par
t/zvg_35thrclone.t\par
t/zvg_40profile.t\par
t/zvg_41prof_dump.t\par
t/zvg_42prof_data.t\par
t/zvg_43prof_env.t\par
t/zvg_50dbm.t\par
t/zvg_60preparse.t\par
t/zvg_65transact.t\par
t/zvg_70callbacks.t\par
t/zvg_72childhandles.t\par
t/zvg_80proxy.t\par
t/zvg_85gofer.t\par
t/zvg_86gofer_fail.t\par
t/zvg_87gofer_cache.t\par
Creating test wrappers for PurePerl  Gofer:\par
t/zvxgp_01basics.t\par
t/zvxgp_02dbidrv.t\par
t/zvxgp_03handle.t\par
t/zvxgp_04mods.t\par
t/zvxgp_05concathash.t\par
t/zvxgp_06attrs.t\par
t/zvxgp_07kids.t\par
t/zvxgp_08keeperr.t\par
t/zvxgp_09trace.t\par
t/zvxgp_10examp.t\par
t/zvxgp_11fetch.t\par
t/zvxgp_12quote.t\par
t/zvxgp_13taint.t\par
t/zvxgp_14utf8.t\par
t/zvxgp_15array.t\par
t/zvxgp_19fhtrace.t\par
t/zvxgp_20meta.t\par
t/zvxgp_30subclass.t\par
t/zvxgp_35thrclone.t\par
t/zvxgp_40profile.t\par
t/zvxgp_41prof_dump.t\par
t/zvxgp_42prof_data.t\par
t/zvxgp_43prof_env.t\par
t/zvxgp_50dbm.t\par
t/zvxgp_60preparse.t\par
t/zvxgp_65transact.t\par
t/zvxgp_70callbacks.t\par
t/zvxgp_72childhandles.t\par
t/zvxgp_80proxy.t\par
t/zvxgp_85gofer.t\par
t/zvxgp_86gofer_fail.t\par
t/zvxgp_87gofer_cache.t\par
Checking if your kit is complete...\par
Looks good\par
\par
I see you're using perl 5.008004 on sun4-solaris-64int, okay.\par
Remember to actually *read* the README file!\par
Use  'make' to build the software (dmake or nmake on Windows).\par
Then 'make test' to execute self tests.\par
Then 'make install' to install the DBI and then delete this working\par
directory before unpacking and building any DBD::* drivers.\par
\par
Writing Makefile for DBI\par
bash-3.00# make\par
/usr/bin/perl -MExtUtils::Command -e mkpath blib/lib/DBI\par
rm -f blib/lib/DBI/Changes.pm\par
cp Changes blib/lib/DBI/Changes.pm\par
/usr/bin/perl -MExtUtils::Command -e mkpath blib/lib/DBI\par
rm -f blib/lib/DBI/Roadmap.pm\par
cp Roadmap.pod blib/lib/DBI/Roadmap.pm\par
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h\par
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm\par
cp lib/DBI/Gofer/Response.pm blib/lib/DBI/Gofer/Response.pm\par
cp lib/DBI/Gofer/Transport/Base.pm blib/lib/DBI/Gofer/Transport/Base.pm\par
cp lib/DBI/Util/_accessor.pm blib/lib/DBI/Util/_accessor.pm\par
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm\par
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h\par
cp Roadmap.pod 

Re: DBI compiling error on solaris box

2009-09-07 Thread Jonathan Leffler
On Mon, Sep 7, 2009 at 4:24 AM, chethan@wipro.com wrote:

 I am trying to install DBI on a solaris box hosting oracle.

 [...]
 sh: cc: not found



You need to install the Sun C compiler.

(No, using GCC is not a serious option.)


-- 
Jonathan Leffler jonathan.leff...@gmail.com  #include disclaimer.h
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
Blessed are we who can laugh at ourselves, for we shall never cease to be
amused.


Re: DBI compiling error on solaris box

2009-09-07 Thread Lincoln A. Baxter
On Mon, 2009-09-07 at 12:32 -0700, Jonathan Leffler wrote:
 On Mon, Sep 7, 2009 at 4:24 AM, chethan@wipro.com wrote:
 
  I am trying to install DBI on a solaris box hosting oracle.
 
  [...]
  sh: cc: not found
 
 
 
 You need to install the Sun C compiler.
 
 (No, using GCC is not a serious option.)
 
 
It works fine compiled with gcc... *provided* Perl itself is compileed
with gcc.  In other words... you have to compile your own perl.

Otherwise, the man is right.  If you want to use the perl that is native
to Solaris, you need the Sun C compiler.  

If you want to build your own perl, I believe there is a makefile I used
to use in the DBD-Oracle readme's for HPUX.  I used to use that makefile
to build perl on all OSes I was supporting at the time, which included
Solaris on Sun hardware, AIX, and HPUX.

Wow... why did I feel moved to chime in now? I haven't sent an email to
this list in years...  ;-)

Lincoln