Compiling C program with Oracle on Sun Solaris - oraxlc not found
Date: 27 Jan 2004 01:54:33 -0800
Message-ID: <f15e920e.0401270154.677c0b40_at_posting.google.com>
[Quoted] [Quoted] When I compile a C program on Sun Solaris, I get this error message:
[Quoted] sh: /u01/app/oracle/product/8.1.7/bin/oraxlc not found.
I am using Oracle 8.1.7 on Solaris 8. I have installed the standard Oracle server install and the Pro*C/C++ part of the client install.
Can anyone tell me how I fix this?
If it helps, this is the makefile:
"#********************************************************************/
#* */
#* Module : ceshogandl.mak */
#* */
#* Description : For the hogan Download file (MT935/ITT) */
#* */
#********************************************************************/
#TODO: set up to point to your Roma installation
MQMLIB=/opt/mqm/lib
ORALIB=$(ORACLE_HOME)/lib
MQMINC=/opt/mqm/include
MYINC=../include
#TODO: standard build tools and flags ...
CC=xlC_r LN=xlC_r RM=rm -f AR=ar
C_INCS=-I$(MQMINC) -I$(MYINC)
DEFS=-DTRACE -DOLD_IOSTREAM -DAIX -DDEBUG -DUMI -DNOCDATA
MQCFLAGS= $(C_INCS) $(DEFS) -qcpluscmt
#object & library definitions
O=o
include $(ORACLE_HOME)/precomp/lib/env_precomp.mk ORACLE8DIR=$(I_SYM). $(I_SYM)$(PRECOMPHOME)public $(I_SYM)$(RDBMSHOME)public $(I_SYM)$(RDBMSHOME)demo \
$(I_SYM)$(PLSQLHOME)public $(I_SYM)$(NETWORKHOME)public
I_SYM=-I
PROCFLAGS= sqlcheck=semantics userid=smart_69/smart_69
include=$(MYINC) include=$(MQMINC)
all: smartmqadapter
smartmqadapter: mq_smart smart_mq
# main targets ...
mq_smart: mq_smart.c $(CC) -o ../bin/mq_smart mq_smart.c $(MQCFLAGS) $(ORACLE8DIR) -L$(MQMLIB) -L$(ORALIB) -lmqm_r -lclntsh $(RM) mq_smart.c smart_mq: smart_mq.c $(CC) -o ../bin/smart_mq smart_mq.c $(MQCFLAGS) $(ORACLE8DIR) -L$(MQMLIB) -L$(ORALIB) -lmqm_r -lclntsh $(RM) smart_mq.c mq_smart.c: mq_smart.pc $(PROC) $(PROCFLAGS) iname=mq_smart.pc smart_mq.c: smart_mq.pc $(PROC) $(PROCFLAGS) iname=smart_mq.pc clean: -$(RM) *.o
" Received on Tue Jan 27 2004 - 10:54:33 CET