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

Installation

Get the source

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

$ git clone git://github.com/treffynnon/lib_mysqludf_ssdeep.git

This should beplaintext yeah

Install dependencies

Ubuntu/Debian

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

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

Redhat

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
$ ./build.sh

The library file, lib_mysqludf_ssdeep.so, 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:

[mysqld]
plugin_dir=/usr/lib/mysql/plugin

To install the library execute the following commands:

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