1

Iam new to Gearman and I have followed the procedure to install Gearman as suggested in How to install Gearman with PHP Extension.

Installation procedure at the end displayed a message that Gearman has been successfully installed but when Iam executing command to start Gearman it is saying command not found.

command: gearmand -d
bash: gearmand: command not found

Message displayed post completion of installation is:

Build process completed successfully
Installing '/usr/lib64/php/5.5/modules/gearman.so'
install ok: channel://pecl.php.net/gearman-1.1.2

Upon recheck installation it is clearly saying gearman is installed

pecl/gearman is already installed and is the same as the released version 1.1.2
palik
  • 2,425
  • 23
  • 31
Abhinav
  • 691
  • 1
  • 6
  • 20
  • If you on some of debian derivate `gearmand` is a part of `gearman-job-server` package. Run `apt-get install gearman-job-server` to install the package. – palik Aug 17 '20 at 07:11
  • We are using centos – Abhinav Aug 17 '20 at 16:38
  • `gearmand` is not a part of php module `pecl/gearman`. Hence you've to install the daemon separately. – palik Aug 18 '20 at 06:10
  • 1
    CentOS 7.x? There’s a gearmand package in the EPEL x86_64 repo. First, enable that repo if you haven’t. Then, just `yum install gearmand`. Alternatively, download the latest gearmand release from https://github.com/gearman/gearmand/releases, configure, and compile the source. – Ed Sabol Aug 19 '20 at 09:15

1 Answers1

2

pecl/gearman uses libgearman library to provide API for communicating with gearmand, and writing clients and workers.

gearmand is a daemon, which is not a part of pecl/gearman, and should be installed separately.

palik
  • 2,425
  • 23
  • 31