1748066 Members
5426 Online
108758 Solutions
New Discussion юеВ

Pro C in Tru64

 
Nornikman
Occasional Contributor

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
4 REPLIES 4
Hein van den Heuvel
Honored Contributor

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.



Nornikman
Occasional Contributor

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.
Steven Schweda
Honored Contributor

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.
Nornikman
Occasional Contributor

Re: Pro C in Tru64

the problem has been escalated to oracle team