Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.

Installation

pkarman edited this page Sep 28, 2014 · 5 revisions

Installing the audio-search application

The application uses:

  • MySQL >= 5.0
  • Perl >= 5.8.9
  • lots of Perl CPAN modules

First, checkout the code:

% git clone https://github.com/APMG/audio-search.git
% cd audio-search

Second, create a database:

% mysql -u root -p
mysql> create database tq;
mysql> grant all on tq.* to 'tq'@'localhost' identified by 'yoursecretpw';
mysql> quit
% mysql -u tq -D tq -pyoursecretpw < etc/tq.sql

The etc/profiles.ini file contains the configuration profile for your application. See the example in etc/profiles.ini.example.

Create a configuration file and add the db credentials you used above.

% cp etc/profiles.ini.example etc/profiles.ini
% vi etc/profiles.ini

The install of most of the needed CPAN modules should be handled by the make deps and make installdeps commands below.

% sudo cpan Module::Install Module::Install::Catalyst
% make deps
% make installdeps
% make test
% make install

See the Configuration page.

Once your application is installed and configured, you need to add a crontab entry to every host that will process your incoming audio. An example crontab is here: https://github.com/APMG/audio-search/blob/master/etc/crontab.example

Clone this wiki locally