Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i downloaded wireshark-1.8.0rc2.tar.bz2 and copied it to /opt/wireshark directory and uncompressed it by

sudo tar -xjvf wireshark-1.8.0rc2.tar.bz2

then by doing ls in the extracted folder, i found the configure file.

Then i did ./configure then i got this problem:

  configure: error: I couldn't find yacc (or bison or ...); 
    make sure it's installed and in your path.

how to fix it?

share|improve this question
It is highly recommended to install it from official repository since it is specifying Dependencies. – atenz Jul 13 '12 at 14:01

In case someone runs into this in the future: you can just sudo apt-get install bison

Bison will provide yacc to Wireshark via update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode

Also, if you install Bison, you'll also need sudo apt-get install flex since it will ask for it afterwards. And while you're at it, you should sudo apt-get install libpcap-dev too, since it will probably need pcap.h, and it comes in the -dev package, not the regular one.

After this, it should be the usual make, wait... and then make install and you're done. Depending on your specs, the wait part might be 5 minutes, just to build the parlay package.

share|improve this answer
Very thoughtful reply from Also, one might get a configuration error about GTK+ and Glib versions, like I did (Ubuntu 12.04). In that case, install libgtk2.0-dev and libglib2.0-dev. – user242603 Feb 1 '14 at 21:49
And I'm just sitting here going wink wink at the screen. So many commands to input. So much to configure. – Błażej Michalik Mar 16 at 23:41

Wireshark is available in the software repositories. Try running sudo apt-get install wireshark in the terminal (ctrl+alt+t) to install it with the dependencies you were missing. Although, you might need to enable the universe repositories.

Question for you though... Is there a specific reason you're trying to build from source ?

share|improve this answer

The correct answer is you seeking is

sudo apt-get install bison

which already mentioned. But reason for adding another answer is because although you fulfill this dependencies you will face another dependency errors. Such as qt errors etc. To avoid all the dependencies, I suggest you to run below command.

sudo apt-get install bison flex libpcap-dev qt5-default qttools5-dev libssl-dev libgtk-3-dev

After this you will get no other dependency error. refer below link for further details

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.