1Dec/080
Building rcapdissector on Ubuntu 8.04
I’m trying to build my rcapdissector project under Linux for the first time. Starting with a fresh Ubuntu 8.04 install, I did:
sudo aptitude install bisonto install yacc/bisonsudo aptitude install flexto install flexsudo aptitude install libgtk2.0-devto install the GTK+ 2.x headers and librariessudo aptitude install libpcap-devto install the libpcap headers and librariessudo aptitude install libgnutls-devto install the GNU TLS library (this also installs the GNU crypto library as a dependency)sudo aptitude install ruby ruby1.8 ruby1.8-devto install Ruby and the relevant headerssudo aptitude install ruby-gnome2for the Glib-awaremkmfsudo aptitude install g++to install the latest GNU C++ compiler./configure --prefix=/home/anelson/wiresharkin the Wireshark 1.0.4 source tree to configure the Wireshark buildmakein Wireshark tree to build Wireshark- Edit
/etc/ld.so.confsolibwireshark.soandlibwiretap.soare in the system search path. I did something like:
> cat /etc/ld.so.conf.d/wireshark.conf
/home/anelson/wireshark-1.0.4/epan/.libs
/home/anelson/wireshark-1.0.4/wiretap/.libs
- Run
ldconfigto pick up the changes ruby -w extconf.rbin thercapdissector/extdirectory to generate theMakefilefor the extension. Note you’ll almost certainly have to provide library paths tolibwiresharkandlibwiretapas well as theepan/epan.hheader files. More on this latermaketo build andmake installto install- Run
all_tests.rbin thetestfolder
As of now I’ve got this working with the latest SVN, except I’m getting a segfault when I run the tests, which I chalk up to something changed in Wireshark between 0.99.5 and 1.0.4. Also note that I slightly broke Windows compatibility to get this going, so the latest SVN won’t build under Windows without a bit of reverse contortion, but you can see from the SVN diffs what I did.