我想快要忘記內置的PHP版本是在Mac和具有終端用我XAMP版本。我從我的瀏覽器與CLI獲得了不同的結果。MacOS的塞拉利昂 - 重寫PHP與XAMPP打破沖泡
我編輯我的道路,其中固定我的PHP版本問題~/.bash_profile
。然而,它打破了自制:(
的.bash_profile:
export PATH="/usr/local/sbin:/Applications/XAMPP/xamppfiles/bin:$PATH"
路徑:
which php
/Applications/XAMPP/xamppfiles/bin/php
which brew
/usr/local/bin/brew
which head
/Applications/XAMPP/xamppfiles/bin/head
這導致沖泡給我的命令列表,不管我怎麼努力
brew -v
Unknown option: n
Unknown option: 1
... list of command help...
我需要這麼做與我的.bash_profile
不同?也許只是別名PHP到XAMPP?
你爲什麼這樣做,如果你有家釀? 'brew install php',你就完成了。 – miken32
家釀是挑剔的,我不想PHP管理它。 –
好吧我使用macports所以我不熟悉brew。祝你好運! – miken32