So, I use homebrew to install various packages / libraries / programs on my mac. I continue to run into a problem in which the homegrown tells me that in my basement I disconnected the barrel.
For example, when brew install phantomjsI started, I received the following message:
Warning: Could not link phantomjs. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link phantomjs'
Possible conflicting files are:
/usr/local/bin/phantomjs -> /usr/local/lib/node_modules/phantomjs/bin/phantomjs
I tried running brew link phantomjsas recommended, and hit a similar problem:
Error: Could not symlink file: /usr/local/Cellar/phantomjs/1.9.2/bin/phantomjs
Target /usr/local/bin/phantomjs already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
brew link
The command brew link --overwrite --dry-run phantomjsdisplays the following message:
Would remove:
/usr/local/bin/phantomjs -> /usr/local/lib/node_modules/phantomjs/bin/phantomjs
I will probably go over and overwrite, but this seems to happen every time I try to install something with a homebrew. What for? Why doesn't the housewife work as expected?
Thanks.
source
share