charltoons
charltoons

Reputation: 2001

Can't run gearmand after installing on OSX using homebrew

I just tried to install gearman on OSX 10.10 Yosemite. The installation looked like it worked fine.

brew install gearman

But when I tried to run the command to start the job server gearmand -d I just get -bash: gearmand: command not found.

Upvotes: 3

Views: 1727

Answers (1)

charltoons
charltoons

Reputation: 2001

It turns out the homebrew puts everything in /usr/local/opt/gearman/bin in your PATH (gearman and gearman-admin). But it puts gearmand in /usr/local/opt/gearman/sbin. Homebrew totally misses it.

I solved it by soft-linking to my /usr/local/bin.

ln -s /usr/local/opt/gearman/sbin/gearmand /usr/local/bin

Boom. Now gearmand is in your PATH.

Upvotes: 16

Related Questions