Operating System - HP-UX
1753682 Members
5628 Online
108799 Solutions
New Discussion юеВ

Re: sh[12]: -c: not found.

 
SOLVED
Go to solution
Anwarul Kabir
Advisor

sh[12]: -c: not found.

Can some one tell me what this error means? I am trying to compile this file and i get this error. looks like it can't locate the compiler for some reason. Even though for the same application on other folder its working

the full error:
splbatdv@hp66ap23|[/app/dvlp/splbatdv/splbatch/build/lib/perf_monitor/src] > make
/opt/aCC/bin/aCC -c +DD64 -AA -z -g -mt -DSTD_AA +Z +W495 -I../../../lib/perf_monitor/inc # -I../include -I../../../lib/db_ob/inc -I../../../lib/db_shared/inc -I../../../lib/shared/inc -I../../../lib/xml/inc -I../../../lib/utility/inc -I/app/dvlp/common/log4cplus/include -I/app/dvlp/common/Secure/C++/inc -I/app/dvlp/common/Secure/C++/inc -g0 +W495 +W854 -I/oracle/product/10.2.0/precomp/public -I/oracle/product/10.2.0/rdbms/public -I/oracle/product/10.2.0/plsql/public -I/oracle/product/10.2.0/network/public perf_monitor.cpp
mv `basename perf_monitor.o` ../../../lib/perf_monitor/obj
mv: perf_monitor.o: cannot access: No such file or directory
*** Error exit code 1 (ignored)
/opt/aCC/bin/aCC -c +DD64 -AA -z -g -mt -DSTD_AA +Z +W495 -I../../../lib/perf_monitor/inc # -I../include -I../../../lib/db_ob/inc -I../../../lib/db_shared/inc -I../../../lib/shared/inc -I../../../lib/xml/inc -I../../../lib/utility/inc -I/app/dvlp/common/log4cplus/include -I/app/dvlp/common/Secure/C++/inc -I/app/dvlp/common/Secure/C++/inc -g0 +W495 +W854 -I/oracle/product/10.2.0/precomp/public -I/oracle/product/10.2.0/rdbms/public -I/oracle/product/10.2.0/plsql/public -I/oracle/product/10.2.0/network/public simple_perf_monitor.cpp
mv `basename simple_perf_monitor.o` ../../../lib/perf_monitor/obj
mv: simple_perf_monitor.o: cannot access: No such file or directory
*** Error exit code 1 (ignored)
/oracle/product/10.2.0/bin/proc \
\
include=/oracle/product/10.2.0/precomp/public include=/oracle/product/10.2.0/rdbms/public include=/oracle/product/10.2.0/plsql/public include=/oracle/product/10.2.0/network/public \
include=../../../lib/perf_monitor/inc \
LTYPE=NONE MAXOPENCURSORS=200 HOLD_CURSOR=YES -g code=CPP include=/usr/include include=/opt/aCC/include/SC include=/opt/aCC/include include=/opt/aCC/include/iostream include=/opt/aCC/include/rw ireclen=132 oreclen=132 select_error=no SQLCHECK=SEMANTICS PARSE=partial userid=PDBORA/`/app/dvlp/common/Secure/C++/bin/getpasswd OLTPSPLD PDBORA /app/dvlp/common/ini/naicsec2.pwd `@OLTPSPLD THREADS=YES DEF_SQLCODE=YES \
DEFINE=INCLUDE_PROC \
iname=phase_logging.pc \
oname=../../../lib/perf_monitor/tmp/phase_logging.cpp; \
cd ../../../lib/perf_monitor/tmp ; \
/opt/aCC/bin/aCC \
+DD64 -AA -z -g -mt -DSTD_AA +Z +W495 -I../../../lib/perf_monitor/inc # -I../include -I../../../lib/db_ob/inc -I../../../lib/db_shared/inc -I../../../lib/shared/inc -I../../../lib/xml/inc -I../../../lib/utility/inc -I/app/dvlp/common/log4cplus/include -I/app/dvlp/common/Secure/C++/inc -I/app/dvlp/common/Secure/C++/inc -g0 +W495 +W854 -I/oracle/product/10.2.0/precomp/public -I/oracle/product/10.2.0/rdbms/public -I/oracle/product/10.2.0/plsql/public -I/oracle/product/10.2.0/network/public -DORACA_STORAGE_CLASS=static -DORACA_INIT -DSQLCA_STORAGE_CLASS=static -DSQLCA_INIT -DINCLUDE_PROC -D_REENTRANT -DSLXMX_ENABLE -DSLMXMX_ENABLE -DSLTS_ENABLE \
-c phase_logging.cpp; \
mv ../../../lib/perf_monitor/tmp/`basename phase_logging.o` ../../../lib/perf_monitor/obj/.

Pro*C/C++: Release 10.2.0.3.0 - Production on Thu Dec 4 10:37:38 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

System default option values taken from: /oracle/product/10.2.0/precomp/admin/pcscfg.cfg

sh[12]: -c: not found.
mv: ../../../lib/perf_monitor/tmp/phase_logging.o: cannot access: No such file or directory
*** Error exit code 1

Stop.

it got some other error but thats dues to not able to create the object file and not able to find it. the main error is at very bottom where it says sh[12]:-c: not found.

Please help
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: sh[12]: -c: not found.

Hi:

> sh[12]: -c: not found

...means that there is an error on line-12 of a shell. The error indicates that a command named '-c' cannot be located.

Regards!

...JRF...
Anwarul Kabir
Advisor

Re: sh[12]: -c: not found.

ok stupid question which ones are shell commands? I mean I am using makefile to compile which is also calling another file called Makefile.templete. Now are these shell scripts or something?
OldSchool
Honored Contributor
Solution

Re: sh[12]: -c: not found.

Something wrong in your makefile...but without seeing it I can't tell what.

some issues would be spaces/tabs following a continuation (\), leading spaces instead of tabs and so forth.

it might be somewhere around :

DSLTS_ENABLE \
-c phase_logging.cpp; \
mv ../../../lib/perf_monitor/tmp/`basename
Anwarul Kabir
Advisor

Re: sh[12]: -c: not found.

is it was the space and / after the -c line

damm you guys are good.
Dennis Handly
Acclaimed Contributor

Re: sh[12]: -c: not found.

>JRF: The error indicates that a command named '-c' cannot be located.

Or it could mean there was a macro/variable that was before the -c that wasn't set.