Lurker News

Comments (153) 37 threads

Show all comments

Showing thread 11 of 37

nodesocket2 replies#
Huge htop fan. Honestly probably my favorite unix utility.

Just did `brew update && brew upgrade` but not seeing an htop update. I am still running htop 0.8.2.8 via brew.
Also tried on an AWS server running Ubuntu, same thing `apt-get update && apt-get upgrade` no new htop version available. Running htop 1.0.2.

wrigby1 reply#
I hit the same thing, so I figured I would try compiling from source.

I built ncurses 6.0 from source (installed to $HOME/local) and then htop 2.0 (also to $HOME/local) and it worked a charm. This was on a clean (took it out of the box today) 10.11 system.

nodesocket2 replies#
Ehhhhhhhhhhhh, really want to stick with using native package managers (brew, apt). Did you just add htop to the apt exclude?
wrigby#
Ack, my bad. I meant OS X 10.11 (El Capitan). Same should probably work on any Linux distro with standard build tools installed.

I keep a ~/local directory with built-from-source programs in it. That way I don't get any conflicts with system-wide package managers.
Configure line for ncurses:

  ./configure  --enable-pc-files --with-pkg-config-libdir=$HOME/local/lib/pkgconfig --with-shared --prefix=$HOME/local
  make -j8 && make install
And for htop, a regular configure worked fine:

  ./configure --prefix=$HOME/local
  make -j8 && make install
A quick check in my .bashrc (actually .zshrc) prepends $HOME/local/bin to my $PATH if it exists.
alphonse231 reply#
I too would like to know how to install via brew.
brianxq3#
I quickly and hackily did `brew edit htop` and made these changes to install htop 2.0: https://gist.github.com/bmorton/231bc3d6b3aa6fbefd48

I've got it on my list to fully fix it up and submit a PR, but feel free to flesh out my changes and submit instead :D