*** glibc detected *** bison: double free or corruption (!prev): 0x0000000000e139c0 ***
This blog post provided a solution. Simply type the following on the terminal:
sudo apt-get install bisonIt seems that I accidentally had the bison++ package installed instead of bison.
I would also suggest:
sudo apt-get install flexSince I was missing that package as well.