htop for Snow Leopard

Site Section: 

Keywords: 

htop is an interactive process viewer, like top, but greatly enhanced in many respects. The main code base relies on the virtual directory '/proc', which does not exist in OS X. However, thanks to the generosity and smarts of Andy Armstrong, an OS X port is available, and can be cloned by:

$ git clone git://github.com/AndyA/htop-osx.git

Building this under Snow Leopard requires you to checkout the 'osx' branch:

$ git checkout -b osx origin/osx

and set your 'CFLAGS' environmental variable to specify a 32-bit build:

$ export CFLAGS="-m32"

before the actual build:

$ ./autogen.sh
$ ./configure
$ make
$ make install
For those of you that want to skip all this, I have made the Snow Leopard build available here.

12 Comments

FYI

To those who are interested, the precompiled build provided on this website did not work for me. It successfully installed, but it was not properly monitoring processes (all values were 0s for the columns). However, with the instructions provided on this page in combination with those provided on http://geektechnica.com/2009/07/how-to-install-htop-on-osx/, I was able to get a working htop on my Snow Leopard. Here's what you need to do.

0. Install git if you don't already have it.
1. git clone git://github.com/AndyA/htop-osx.git
2. cd htop-osx (THIS STEP IS NOT EXPLICITLY STATE ABOVE)
3. git checkout -b osx origin/osx
4. export CFLAGS="-m32"
5. ./autogen.sh
6. ./configure
7. make
8. make install

Thank you for your help!!

doesnt work

mba13:htop-osx jasunto$ htop
htop(20592) malloc: *** error for object 0x100df0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap

Add new comment