Could not run "make", error using byacc

Hi,

I am getting the following Error at the time of make -

arnab@arnab-Inspiron-3558:~/Downloads/igraph-master$ make
make all-recursive
make[1]: Entering directory '/home/arnab/Downloads/igraph-master'
Making all in src
make[2]: Entering directory '/home/arnab/Downloads/igraph-master/src'
/bin/bash ../ylwrap foreign-ncol-parser.y y.tab.c foreign-ncol-parser.c y.tab.h `echo foreign-ncol-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 foreign-ncol-parser.output -- byacc -d
byacc: e - line 74 of "/home/arnab/Downloads/igraph-master/src/foreign-ncol-parser.y", syntax error
%output="y.tab.c"
^
Makefile:9042: recipe for target 'foreign-ncol-parser.c' failed
make[2]: *** [foreign-ncol-parser.c] Error 1
make[2]: Leaving directory '/home/arnab/Downloads/igraph-master/src'
Makefile:503: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/arnab/Downloads/igraph-master'
Makefile:406: recipe for target 'all' failed
make: *** [all] Error 2

How to resolve?

I have downloaded the igraph from git-hub repository (https://github.com/igraph/igraph) and then run ./bootstrap.h and ./configure.

I have downloaded the build-essential libxml2-dev and libgmp-dev packages and also run sudo apt-get install libtool m4 automake

Try installing bison instead of byacc, then run make distclean, re-run ./configure and check if it works.

The installation instructions shown at https://igraph.org/c/#cinstall are valid when using a released version (see download links).

If you are using the development version from the GitHub repository, there are additional requirements:

You need to have bison and flex installed. On Ubuntu,

apt-get install build-essential bison flex

Then to compile, run

./bootstrap.sh
./configure
make

It seems that you have byacc, which is a yacc variant that does not work with igraph. igraph requires bison instead.