본문 바로가기

리눅스/문제해결

yacc: command not found

mkdir -p Lib

test -z "1" || (cd CCache && make)

echo "/* SWIG warning codes */" > Lib/swigwarn.swg

cat Source/Include/swigwarn.h | grep "^#define WARN\|/\*.*\*/\|^[ \t]*$" | sed 's/^#define \(WARN.*[0-9][0-9]*\)\(.*\)$/%define SWIG\1 %enddef\2/' >> Lib/swigwarn.swg

make[1]: Entering directory '/root/swig/CCache'

gcc -g -O2 -Wall -W -I.   -c -o ccache.o ccache.c

gcc -g -O2 -Wall -W -I.   -c -o mdfour.o mdfour.c

gcc -g -O2 -Wall -W -I.   -c -o hash.o hash.c

make[1]: Entering directory '/root/swig/Source'

/bin/bash ../Tools/config/ylwrap CParse/parser.y y.tab.c CParse/parser.c y.tab.h `echo CParse/parser.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output CParse/parser.output -- yacc -d 

../Tools/config/ylwrap: line 176: yacc: command not found

Makefile:993: recipe for target 'CParse/parser.c' failed

make[1]: *** [CParse/parser.c] Error 127

make[1]: Leaving directory '/root/swig/Source'

Makefile:37: recipe for target 'source' failed

make: *** [source] Error 2

make: *** Waiting for unfinished jobs....



해결방법

$ sudo apt-get install bison