I've installed gearman using "apt-get install gearman-server" and than build the PHP PECL.
If i try the worker:
$ gearman -w -f wc -- wc -l
It starts waiting. right.
But if i try to start a job (as descriped in the tutorial)
$ gearman -f wc < /etc/passwd
it says:
gearman: gearman_client_run_tasks : flush(GEARMAN_COULD_NOT_CONNECT) 127.0.0.1:4730 -> libgearman/connection.cc:480
And if i try the PHP str_rev demo descriped in the tutorial it gives me the very same error.
PHP Warning: GearmanClient::do(): flush(GEARMAN_COULD_NOT_CONNECT) 127.0.0.1:4730 -> libgearman/connection.cc:480 in /root/client.php on line 4
Here's the tutorial i've used: http://gearman.org/index.php?id=getting_started
Can someone help me?
Edit: Ok. I did the following: "apt-get remove gearman-server" and then "apt-get install gearman-job-server". Now the error is gone. But Another Problem: Both, Worker and Client, are now freezing. Just as they wait for something. Can someone help me?