我想快要忘记内置的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