Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
It is highly recommended to install it from official repository since it is specifying Dependencies. –  atenz Jul 13 '12 at 14:01

2 Answers 2

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 alonso.ss. 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 at 21:49

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

Your Answer

 
discard

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.