1. Install Gearman / TheSchwartz

Installing from packages

Alternatively you can install packages from your Linux distribution e.g., Debian, or CPAN. These are stable (if old) releases that can be used to get up and running more quickly.

Gearman::Client libgearman-client-perl  
Gearman::Client::Async libgearman-client-async-perl  
Gearman::Server gearman-server  

Gearman installation.  First you need the Gearman server code from SVN (http://code.sixapart.com/svn/gearman/trunk/). This is automatically checked out into your cvs subdirectory $LJHOME/cvs/gearman/server. Build and install the code with:

# cd $LJHOME/cvs/gearman/server
# perl Makefile.PL
# make
# make test
# make install

You also need the Gearman client module. This is automatically checked out into your cvs subdirectory $LJHOME/cvs/gearman/api/perl/Gearman, and mapped into $LJHOME/cgi-bin/Gearman.

You should build and install the libraries for both the general synchronous version and asynschronous version. To do this, run the following commands:

First, install the general synchronous version.

# cd $LJHOME/cvs/gearman/api/perl/Gearman
# perl Makefile.PL
# make
# make test
# make install

Now, the async version.

# cd $LJHOME/cvs/gearman/api/perl/Gearman-Client-Async
# perl Makefile.PL
# make
# make test
# make install

TheSchwartz installation.  First you need the TheSchwartz server code from SVN ( http://code.sixapart.com/svn/TheSchwartz/trunk/). This is automatically checked out into your cvs subdirectory $LJHOME/cvs/TheSchwartz/lib. and mapped into $LJHOME/cgi-bin/TheSchwartz. Build and install the code with:

# cd $LJHOME/cvs/TheSchwartz
# perl Makefile.PL
# make
# make test
# make install

You also need the TheSchwartz e-mail worker from http://code.sixapart.com/svn/TheSchwartz-Worker-SendEmail/trunk/. This is automatically checked out into your cvs subdirectory $LJHOME/cvs/TheSchwartz-Worker-SendEmail/lib. and mapped into $LJHOME/cgi-bin/TheSchwartz/Worker. Build and install the code, as before:

# cd $LJHOME/cvs/TheSchwartz-Worker-SendEmail
# perl Makefile.PL
# make
# make test
# make install