Gearman – Can’t call method “syswrite” on an undefined value at /usr/local/share/perl/5.10.1/Gearman/Taskset.pm line 202.

If you get the following error while running the client code :

Can’t call method “syswrite” on an undefined value at /usr/local/share/perl/5.10.1/Gearman/Taskset.pm line 202.

… then change this

$client->job_servers(‘127.0.0.1’);
to
$client->job_servers(‘127.0.0.1:4730’);
thats it !
:)
Advertisements