Skip to content

Instantly share code, notes, and snippets.

@PakCyberPyrates
Forked from bipinu/install-bison.sh
Last active September 17, 2018 12:17
Show Gist options
  • Save PakCyberPyrates/ce51c6c50b5cebccbbc1380db1777a7c to your computer and use it in GitHub Desktop.
Save PakCyberPyrates/ce51c6c50b5cebccbbc1380db1777a7c to your computer and use it in GitHub Desktop.
Install bison 2.7 on Ubuntu 14.04
#!/bin/bash
mkdir /tmp/bison
cd /tmp/bison
apt-get update
apt-get install -y build-essential m4
wget http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz
tar -xvf bison-2.5.tar.gz
rm bison-2.5.tar.gz
cd bison-2.5
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/
make
make install
ln -s /usr/local/bison/bin/bison /usr/bin/bison
ln -s /usr/local/bison/bin/yacc /usr/bin/yacc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment