anarres: (Default)
anarres ([personal profile] anarres) wrote in [site community profile] dw_dev_training2010-07-08 12:48 pm
Entry tags:

Gearman on Dreamhack

Has anyone got any hints on getting Gearman working on a Dreamhack? I keep getting this: '[Error: Unable to get gearman client. @ hack.dreamwidth.net]'
alierak: (Default)

[personal profile] alierak 2010-07-08 01:30 pm (UTC)(link)
Yeah, I have it on mine. I got gearmand from dw/cvs/gearman/server/ and put it in dw/bin/, then ran it with "~/dw/bin/gearmand -p 17103 &". You'll need a different port for yours; ask [personal profile] sophie. Then in config-local.pl, I have:

@GEARMAN_SERVERS = ( '127.0.0.1:17103' );
alierak: (Default)

[personal profile] alierak 2010-07-08 04:57 pm (UTC)(link)
I seem to recall needing another step during gearmand installation. It comes with some perl modules like Gearman::Server that (for me) ended up in ~/dw/share/perl/5.8.8/Gearman/ so I had to add that to PERL5LIB in ~/.bash_profile in order for gearmand to find it. I don't remember exactly what command I used to install gearmand but it probably involved 'perl Makefile.PL' in some way.