我正在关注https://ninenines.eu/docs/en/cowboy/2.0/guide/getting_started/
这需要制作。 当我运行安装脚本时,提示符告诉我使用make 4.1。 我运行brew install erlang git homebrew/dupes/make
然后brew unlink make && brew link make但是which make仍然是/usr/bin并且make -v是3.8。
如何链接到正确的更新品牌?
编辑
export PATH = / usr / local / bin:$ PATH是我〜/ .bash_profile的第一行
I'm following https://ninenines.eu/docs/en/cowboy/2.0/guide/getting_started/
which requires make. When I run the install scripts, the prompt tells me to use make 4.1 . I run brew install erlang git homebrew/dupes/make
then brew unlink make && brew link make but which make is still /usr/bin and make -v is 3.8.
How do I link to the correct, updated make?
EDIT
export PATH=/usr/local/bin:$PATH is the first line of my ~/.bash_profile
最满意答案
您需要设置PATH以便/usr/local/bin位于/usr/bin 之前,因为homebrew将其二进制文件放在/usr/local/bin 。
因此,对于一次性命令,您可以运行:
/usr/local/bin/make -v但一般来说,你想在你的$HOME/.profile或$HOME/.bash_profile设置你的PATH ,如下所示:
export PATH=/usr/local/bin:$PATH通常,您需要获取个人资料:
source ~/.profile或者注销并在更改后重新登录以使其生效。
You need to set your PATH so that /usr/local/bin is ahead of, i.e. before /usr/bin because homebrew puts its binaries in /usr/local/bin.
So, for a one-off command, you can run:
/usr/local/bin/make -vbut in general, you want to set your PATH in your $HOME/.profile or in $HOME/.bash_profile like this:
export PATH=/usr/local/bin:$PATHIn general, you will need to source your profile:
source ~/.profileor log out and log back in again after changing it for it to take effect.
在OSX上使用GNU Make 4.X.(Using GNU Make 4.X on OSX)我正在关注https://ninenines.eu/docs/en/cowboy/2.0/guide/getting_started/
这需要制作。 当我运行安装脚本时,提示符告诉我使用make 4.1。 我运行brew install erlang git homebrew/dupes/make
然后brew unlink make && brew link make但是which make仍然是/usr/bin并且make -v是3.8。
如何链接到正确的更新品牌?
编辑
export PATH = / usr / local / bin:$ PATH是我〜/ .bash_profile的第一行
I'm following https://ninenines.eu/docs/en/cowboy/2.0/guide/getting_started/
which requires make. When I run the install scripts, the prompt tells me to use make 4.1 . I run brew install erlang git homebrew/dupes/make
then brew unlink make && brew link make but which make is still /usr/bin and make -v is 3.8.
How do I link to the correct, updated make?
EDIT
export PATH=/usr/local/bin:$PATH is the first line of my ~/.bash_profile
最满意答案
您需要设置PATH以便/usr/local/bin位于/usr/bin 之前,因为homebrew将其二进制文件放在/usr/local/bin 。
因此,对于一次性命令,您可以运行:
/usr/local/bin/make -v但一般来说,你想在你的$HOME/.profile或$HOME/.bash_profile设置你的PATH ,如下所示:
export PATH=/usr/local/bin:$PATH通常,您需要获取个人资料:
source ~/.profile或者注销并在更改后重新登录以使其生效。
You need to set your PATH so that /usr/local/bin is ahead of, i.e. before /usr/bin because homebrew puts its binaries in /usr/local/bin.
So, for a one-off command, you can run:
/usr/local/bin/make -vbut in general, you want to set your PATH in your $HOME/.profile or in $HOME/.bash_profile like this:
export PATH=/usr/local/bin:$PATHIn general, you will need to source your profile:
source ~/.profileor log out and log back in again after changing it for it to take effect.
发布评论