gpt4 book ai didi

path - 安装 MAMP 后出现医生警告

转载 作者:行者123 更新时间:2023-12-05 01:30:45 24 4
gpt4 key购买 nike

brew doctor 在我安装 MAMP 后发出警告:

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

/Applications/MAMP/Library/bin/curl-config
/Applications/MAMP/Library/bin/freetype-config
/Applications/MAMP/Library/bin/libmcrypt-config
/Applications/MAMP/Library/bin/libpng-config
/Applications/MAMP/Library/bin/libpng15-config
/Applications/MAMP/Library/bin/sablot-config
/Applications/MAMP/Library/bin/xml2-config
/Applications/MAMP/Library/bin/xslt-config
/Applications/MAMP/Library/bin/yaz-config

Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
/Applications/MAMP/Library/bin/

回声 $PATH 是:
/usr/local/bin:/usr/local/bin:/usr/local/sbin:~/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/mysql/bin:/Applications/MAMP/Library/bin/

我的 ~/.bashrc 文件是空白的,我的 ~/.bash_profile 看起来像这样:
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"

# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"

# Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc && source ~/.bashrc

# virtualenv should use Distribute instead of legacy setuptools
export VIRTUALENV_DISTRIBUTE=true
# Centralized location for new virtual environments
export PIP_VIRTUALENV_BASE=$HOME/.virtualenvs

# pip should only run if there is a virtualenv currently activated
export PIP_REQUIRE_VIRTUALENV=true
# cache pip-installed packages to avoid re-downloading
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache

我在 ~/.bash_profile 中没有看到“/Applications/MAMP/Library/bin/”,但 echo $PATH 末尾有它。从 $PATH 中删除“/Applications/MAMP/Library/bin/”是否会消除 brew doctor 警告?我如何删除它,它是否会对我的 MAMP 或本地主机造成问题?

谢谢!

最佳答案

我检查了我的 .bash_profilenano ~/.bash_profile并发现我在那里有需要更改的路径:

# used for Drupal config https://www.bramvandenbulcke.be/en/article/installing-drush-mamp
export PATH=/Applications/MAMP/bin/php/php5.6.32/bin:$PATH
export PATH="$HOME/.composer/vendor/bin:$PATH"
export PATH=/Applications/MAMP/Library/bin/:$PATH

上面的最后一行是我改的,去掉最后的 /广告我现在得到了清洁 brew doctor报告。

所以为了完整起见,这里是我的 .bash_profile
# used for Drupal config 
https://www.bramvandenbulcke.be/en/article/installing-drush-mamp
export PATH=/Applications/MAMP/bin/php/php5.6.32/bin:$PATH
export PATH="$HOME/.composer/vendor/bin:$PATH"
export PATH=/Applications/MAMP/Library/bin:$PATH

关于path - 安装 MAMP 后出现医生警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24093465/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com