Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Not able to install DBD::Oracle on sun solaris.

by Ankur_kuls (Sexton)
on Dec 11, 2014 at 05:07 UTC ( [id://1110011]=perlquestion: print w/replies, xml ) Need Help??

Ankur_kuls has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, I am trying to install DBD-Oracle-1.74 on my sun solaris machine

uname -a SunOS apvs2a 5.10 Generic_147440-25 sun4v sparc SUNW,Netra-T2000

but when I run the make command it is giving me the below error.

cc -c -I/opt/oracle/product/11g/db_1/rdbms/public -I/opt/oracle/produ +ct/11g/db_1/rdbms/demo -I/opt/oracle/product/11g/db_1/rdbms/public -I +/opt/oracle/product/11g/db_1/plsql/public -I/opt/oracle/product/11g/d +b_1/network/public -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/ +auto/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ +ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.23\" -DXS_VERSION=\"1.2 +3\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DUTF8_SU +PPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" Oracle.c sh: cc: not found *** Error code 1 make: Fatal error: Command failed for target `Oracle.o'

I searched in net and found this link http://www.perlmonks.org/?node_id=765053 but in DBD-Oracle-1.74 those parameters are already not commented out. Then I also tried to install DBD-Oracle 1.23 by removing those comment outs like this

sword OCIXMLTypeCreateFromSrc( OCISvcCtx *svchp, OCIError *errhp, OCI +Duration dur, ub1 src_type, dvoid *src_ptr,sb4 ind, OCIXMLType **retI +nstance );

but still I am receiving the same error. also I can't use CPAN prompt method as I am facing connectivity issues...please help...thanks

Replies are listed 'Best First'.
Re: Not able to install DBD::Oracle on sun solaris.
by Old_Gray_Bear (Bishop) on Dec 11, 2014 at 07:19 UTC
    Historically, Sun Micro did not include a C compiler in the Solaris distribution. You had to install it after the fact from SunSoft or some other authorized code repository. I see Oracle hasn't changed that policy. (sh: cc: not found)

    You, or your sysadmin needs to go to the current blessed-by-Oracle site and do the compiler install before you can install DBD-Oracle.

    ----
    I Go Back to Sleep, Now.

    OGB

Re: Not able to install DBD::Oracle on sun solaris.
by marto (Cardinal) on Dec 11, 2014 at 09:18 UTC

    Firstly, stop using the system perl (Perl that ships with Solaris). It's ancient (mid 2004), it's used by the OS so you want to avoid changing it at all (very weird things can happen), and it's trivial to install your own modern perl version anywhere elseon the system.

      Thanks for reply.. I have installed perl on windows & linux machines but could you please guide me.. how do I do the same on solaris 5.10 machine>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1110011]
Approved by kevbot
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 19:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found