我試圖安裝Laravel代客,這需要PHP 7.1,但是當我運行沖泡安裝php71,我得到以下錯誤:BREW鏈接php71:無法符號鏈接sbin目錄/ PHP-FPM
==> Pouring php71-7.1.10_21.high_sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink sbin/php-fpm
/usr/local/sbin is not writable.
當我運行brew link php71
時出現同樣的錯誤。如果我運行php -v
,我確實看到我正在運行PHP 7.1.7。
但是當我運行代客安裝,我得到:
[DomainException]
Unable to determine linked PHP.
我甚至沒有在/ usr /本地的sbin目錄。
有什麼建議嗎?
只是猜測,但你可能需要暫時禁用*「系統完整性保護」* ...'csrutil'或其他。 –
這並未使sbin目錄顯示。 – AlxVallejo
你應該可以自己做,然後再試一次'mkdir/usr/local/sbin' –