Skip to content

Why the `/etc/paths` do not work?

  • by
Spread the love

I add my php path into the /etc/paths file:

markleo@mba ~ % cat /etc/paths

# php 
/Applications/phpstudy/Extensions/php/php/bin  # A modificação da versão pode ln-s segundo PHP /, que é um atalho
markleo@mba ~ % php -V
zsh: command not found: php

markleo@mba ~ % /Applications/phpstudy/Extensions/php/php/bin/php --version
PHP 5.6.40 (cli) (built: Dec  3 2019 17:26:44) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

but I cannot use the % php directly, even restarted the Terminal.

my macOS version is:12.6 (21G115).

Leave a Reply

Your email address will not be published. Required fields are marked *