I am trying to install memcached using:
brew install memcached
This ends in error about homebrew not being able to create a symlink:
after i performed the suggestions in @septerr answer, i still was unable to install carthage via homebrew... after some googleing i found this: Gist https://gist.github.com/dalegaspi/7d336944041f31466c0f9c7a17f7d601
Anyway... got this:
Error: An unexpected error occurred during the 'brew link' step The formula built, but is not symlinked into /usr/local Permission denied @ dir_s_mkdir - /usr/local/Frameworks Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
did this:
sudo chown -R $(whoami) $(brew --prefix)/*
and
sudo install -d -o $(whoami) -g admin /usr/local/Frameworks
after that is was able to install carthage successfully