Re: Pro C in Tru64 (364 Views)
Reply
Occasional Contributor
Nornikman
Posts: 6
Registered: ‎04-23-2007
Message 1 of 5 (364 Views)

Pro C in Tru64

hi all

i have a problem to compile a file

filename = pinb040_gsm1_tem.pc


bina40@/usr/users/pinadm/EXE:PINDBP>c pinb040_gsm1_tem
Sending output to nohup.out
rm: /usr/users/pinadm/EXE/pinb040_gsm1_tem.c: No such file or directory
rm: /usr/users/pinadm/EXE/pinb040_gsm1_tem.o: No such file or directory


after i compile it ..it got error


bina40@/usr/users/pinadm/EXE:PINDBP>cat nohup.out
proc define=_POSIX_4SOURCE sqlcheck=semantics dbms=v8 unsafe_null=yes iname=pinb040_gsm1_tem
sh: proc: not found
*** Exit 1
Stop.


Please check the env below , as i have include all the path needed .

bina40@/usr/users/pinadm/EXE:PINDBP>env
PATH=/usr/users/pinadm/bin:/usr/bin:/usr/bin:.:/usr/users/pinadm
ORACLE_INST_HOME=/u/app/oracle/product/8.1.7.0
BSCSDB=t:bina40:TRAINDB
ORA_CLIENT_LIB=shared
EXINIT=set nows ic nofl noai
EDITOR=vi
LOGNAME=root
ORACLE_SID=PINDBP
PS1=${HOSTNAME}@${PWD}:${ORACLE_SID}>
PS2=>
USER=pinadm
TNS_ADMIN=/u/app/oracle/product/8.1.7.0/network/admin
SHELL=/bin/ksh
ORACLE_TERM=vt100
HOME=/usr/users/pinadm
LD_LIBRARY_PATH=/u/app/oracle/product/8.1.7.0/lib:/bscsdata/bscsbin:/u/app/oracle/product/8.1.7.0/lib:/usr/lib
TERM=vt100
ORACLE_HOME=/u/app/oracle/product/8.1.7.0
PWD=/usr/users/pinadm/EXE
PINMAIL_PATH=/usr/users/pinadm/OUTPUT
Honored Contributor
Hein van den Heuvel
Posts: 6,588
Registered: ‎05-19-2003
Message 2 of 5 (364 Views)

Re: Pro C in Tru64

Hmmm, I have no immediate experience with pro*c myself, so I can only ask more questions hoping they will guide you to the main answer.

Do you have a proc compiler installed?
Did it ever work?
What changed when it stopped working?
Does it work for other user(name)s?
Does it work on other systems?


>> c pinb040_gsm1_tem
>>Sending output to nohup.out

That message about nohup does NOT seem normal to me. What is 'c' aliased as?
Or is it a script?
What does 'which c' give?

>> sh: proc: not found

That seems a clear, omnious message.
proc can not be found... where did you put it?
What does 'which proc' give?
Can you 'find / -name "pro*c"' ?
Once you found it, what would it take to have the compile environment find it?
PATH? LD_LIBRARY_PATH? env variables?

Good luck!
Hth,
Hein.



Occasional Contributor
Nornikman
Posts: 6
Registered: ‎04-23-2007
Message 3 of 5 (364 Views)

Re: Pro C in Tru64

Hi Van Den Heuval

I have checked again the library path. I provide the finding for you .

bina40@/usr/users/pinadm/EXE:PINDBP>which c
/usr/users/pinadm/bin/c

bina40@/usr/users/pinadm/EXE:PINDBP>cat /usr/users/pinadm/bin/c
rm `pwd`/nohup.out
nohup make -f $HOME/bin/proc.mk build EXE=$1 OBJS=$1.o PROCFLAGS="define=_POSIX_4SOURCE sqlcheck=semantics dbms=v8 unsafe_null=yes"
rm -i `pwd`/$1.c
rm -i `pwd`/$1.o

bina40@/usr/users/pinadm/EXE:PINDBP>which proc
no proc in /usr/users/pinadm/bin /usr/bin /usr/bin . /usr/users/pinadm


find / -name "pro*c"
/usr/lib/tcl/tclX/help/tcl/control/proc


I have put the proc path into LD_LIBRARY_PATH but the result is below

bina40@/usr/users/pinadm/EXE:PINDBP>c pinb040_gsm1_tem
Sending output to nohup.out
rm: /usr/users/pinadm/EXE/pinb040_gsm1_tem.c: No such file or directory
rm: /usr/users/pinadm/EXE/pinb040_gsm1_tem.o: No such file or directory


bina40@/usr/users/pinadm/EXE:PINDBP>cat nohup.out
proc define=_POSIX_4SOURCE sqlcheck=semantics dbms=v8 unsafe_null=yes iname=pinb040_gsm1_tem
sh: proc: execute permission denied
*** Exit 1
Stop.

Is it I need to compile it , using root .?

Appreciate your feedback.
Honored Contributor
Steven Schweda
Posts: 9,096
Registered: ‎02-23-2005
Message 4 of 5 (364 Views)

Re: Pro C in Tru64

I know nothing, but:

sh: proc: not found
and:
sh: proc: execute permission denied

tell me that somthing is trying to _run_
"proc", and it can't so it, for one reason or
another. I don't know what "proc" is (or is
supposed to be), but it looks as if you're
trying to use the wrong one, or else it's not
installed properly. Assuming that you're
trying to do something for Oracle, you might
look around for a "proc" (which should be
executable) in some Oracle-related directory,
which "/usr/lib/tcl/" would seem not to be.
Perhaps somewhere under ${ORACLE_HOME}? If
you can find the right one, you might then
add its directory to your PATH (and remove
the useless "/usr/lib/tcl/..." thing).

I'd also guess that Oracle provides some
documentation which might cover this sort of
thing.
Occasional Contributor
Nornikman
Posts: 6
Registered: ‎04-23-2007
Message 5 of 5 (364 Views)

Re: Pro C in Tru64

the problem has been escalated to oracle team
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.