Brew physician warnings after installing MAMP

brew Doctor issues warnings after installing 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/

echo $ 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/

My ~ / .bashrc file is empty, and my ~ / .bash_profile file looks like this:

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

I do not see "/ Applications / MAMP / Library / bin /" in my ~ / .bash_profile file, but echo $ PATH has it at the end. Removes "/ Applications / MAMP / Library / bin /" from $ PATH to get rid of brew doctor warnings? How to remove it and it will cause problems with my MAMP or localhost?

Thank!

+4
source share
1 answer

I checked mine .bash_profilewith help nano ~/.bash_profileand found that I have a path there that I need to change:

# 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.

, my .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
0

Source: https://habr.com/ru/post/1543643/


All Articles