Search code examples
phpenvironmentphpfarm

PhpFarm switch not working


I have just installed phpfarm and compiled a 5.3.0 just for test purpose. All good so far.

When trying to perform switch-phpfarm 5.3.0 I get "ln: failed to create symbolic link `/opt/phpfarm/inst/current-bin': Permission denied".

Note that I have updated my PATH with inst/current-bin and inst/bin from phpfarm directory.

I have attepted to use sudo (like any other newbie) and I got a "sudo: switch-phpfarm: command not found".

What did I do wrong?


Solution

  • You have to add the bin directory (/path/to/phpfarm/inst/bin) to your $PATH.