How to install htop on OS X using Homebrew?
I am trying install htop using brew:
➜ ~ brew install htop
Error: You must `brew link autoconf' before htop-osx can be installed
Then I am doing
brew link autoconf
Linking /usr/local/Cellar/autoconf/2.69... Warning: Could not link autoconf. Unlinking...
Error: Could not symlink file: /usr/local/Cellar/autoconf/2.69/share/emacs/site-lisp/autotest-mode.elc
Target /usr/local/share/emacs/site-lisp/autotest-mode.elc already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
brew link --overwrite formula_name
To list all files that would be deleted:
brew link --overwrite --dry-run formula_name
What is root of the problem?
I just ran into this issue myself!
Open your terminal, trying installing:
brew install htop
Output:
$ brew install htop Warning: It appears you have MacPorts or Fink installed. Software installed with other package managers causes known problems for Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again. Error: You must `brew link autoconf' before htop-osx can be installed
Now, fix:
sudo brew link autoconf
Let me know if this helps!
After, it might ask you to link "htop":
sudo brew link htop
Basically, all the "linkking" problems need root to create the correct symlinks in order to work properly on your system.
Regards,