Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (42 sloc) 1.81 KB


Get the source

Either clone down the git respository from github or download the latest tag as a tar gzip:

$ git clone git://

This should beplaintext yeah

Install dependencies


To install the MySQL development headers and ssdeep install the following package:

$ sudo apt-get install libmysqlclient-dev ssdeep libfuzzy-dev


To install the GCC C++ compiler and the MySQL development headers install the following packages:

$ yum install gcc-c++ mysql-devel autoconf automake libtool

As there is no libfuzzy package on Redhat you need to build ssdeep from its sources:

$ cd ssdeep
$ ./configure
$ make
$ make install

Build lib_mysqludf_ssdeep

Now onto building the lib_mysqludf_sseep library:

$ cd lib_mysqludf_ssdeep
$ ./

The library file,, is now in the current directory ready to be installed into MySQL,

Install lib_mysqludf_ssdeep

The library needs to be copied to the MySQL plugin directory. To find out the location of your plugin directory run the following SQL

show variables like 'plugin_dir';

A common location is /usr/lib/mysql/plugin, but it can be changed in the MySQL configuration at /etc/mysql/my.cnf in the mysqld section:


To install the library execute the following commands:

$ sudo cp /usr/lib/mysql/plugin/
$ mysql -u root -p < src/installdb.sql