lex.yy.c: No such file or directory
Opened this issue · 1 comments
laixintao commented
Hi I meet this error when compile tiptop:
[root@aaa]~/tiptop# make
cd src && make all
make[1]: Entering directory `/root/tiptop/src'
gcc -g -O2 -I.. -c -o tiptop.o tiptop.c
gcc -g -O2 -I.. -c -o pmc.o pmc.c
gcc -g -O2 -I.. -c -o process.o process.c
gcc -g -O2 -I.. -c -o requisite.o requisite.c
gcc -g -O2 -I.. -c -o conf.o conf.c
gcc -g -O2 -I.. -c -o screen.o screen.c
gcc -g -O2 -I.. -c -o debug.o debug.c
gcc -g -O2 -I.. -DCOMPILE_HOST="\""`hostname`"\"" \
-DCOMPILE_DATE="\"`date`\"" \
-c ./version.c
gcc -g -O2 -I.. -c -o helpwin.o helpwin.c
gcc -g -O2 -I.. -c -o options.o options.c
gcc -g -O2 -I.. -c -o hash.o hash.c
gcc -g -O2 -I.. -c -o spawn.o spawn.c
gcc -g -O2 -I.. -c -o xml-parser.o xml-parser.c
gcc -g -O2 -I.. -c -o target.o target.c
yacc -d ./calc.y
make[1]: yacc: Command not found
make[1]: *** [y.tab.h] Error 127
make[1]: Leaving directory `/root/tiptop/src'
make: *** [all] Error 2
[root@izm5eadrj9n2uq13hgppwzz]~/tiptop# uname
Linux
[root@izm5eadrj9n2uq13hgppwzz]~/tiptop# uname -a
Linux izm5eadrj9n2uq13hgppwzz 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@izm5eadrj9n2uq13hgppwzz]~/tiptop# make
cd src && make all
make[1]: Entering directory `/root/tiptop/src'
yacc -d ./calc.y
gcc -g -O2 -I.. -c -o utils-expression.o utils-expression.c
gcc -g -O2 -I.. -c -o error.o error.c
: ./calc.lex
gcc -g -O2 -I.. -I. -c lex.yy.c
gcc: error: lex.yy.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
make[1]: *** [lex.yy.o] Error 4
make[1]: Leaving directory `/root/tiptop/src'
make: *** [all] Error 2
uname -a
Linux izm5eadrj9n2uq13hgppwzz 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I have installed this before compile:
5 sudo yum install papi-devel.i686
6 sudo yum search yacc
7 sudo yum install byacc.x86_64
Thanks.
vaisov commented
On debian it still doesn't work with same error after installing byacc
and libpapi-dev
.