Operating System - HP-UX
1754938 Members
2860 Online
108827 Solutions
New Discussion

Re: compile make related problem

 
Jayesh shah
Frequent Advisor

compile make related problem

Hi,

I am getting the following error while trying to make
(compile):

./yacc_gen ../../fst cbox
Make: Cannot load ./yacc_gen. Stop.

However, when i try to execute the above line on command prompt it works
./yacc_gen ../../fst cbox

yacc_gen is a small shell script to generate .c files from special formatted files.
It has read execute bits set.

Any ideas/help/suggestions?


Thanks,
Jayesh
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: compile make related problem

Hi:

You should have also seen a numerical exit code as well. Look that errno value up. It appears that your yacc_gen script is not in the PATH when you run make. I would change the entry to the absolute path for yacc_gen and see if that runs then see about changing the PATH. Also, very important point (but not your problem here), make is one of the few UNIX utilities that is very sensitive to leading characters. Make sure that each command under a given rule is preceded by exactly one and no other whitespace.

If it ain't broke, I can fix that.