genesisweb / valet-linux-plus

Advanced local development experience for Linux.
MIT License
148 stars 26 forks source link

Error while installing valet when managing php using brew #22

Closed khanalpride closed 3 years ago

khanalpride commented 4 years ago

/home/username/.composer/vendor/bin/valet: line 36: php: command not found

I have installed php7.4 and composer using linux brew System runs php and composer well and is accessible through terminal

But the problem is when I try to run valet install, it gives above error. When I run valet only it shows the list like this

Valet v1.0.6

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help     Displays help for a command
  install  Install the Valet services
  list     Lists commands

php -v

PHP 7.4.7 (cli) (built: Jul  6 2020 19:33:40) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.7, Copyright (c), by Zend Technologies

which php => /home/linuxbrew/.linuxbrew/bin/php