htop for Snow Leopard
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
feed
Comments
9 comments postedI found why there's 0 if you run htop just by doble-clicking on it. you need to run it with elevated privileges.
run:
sudo htop
and enter root password
hope this helps
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
That's because you accidentally built the 64-bit version.
The binary download on this page? Or an independent build off the source code?
Thanks for the checkout hint! This worked!
Best
Zeno
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!!
Thanks very much for this. I built it on Snow Leopard and it seems OK, except when I hit F6. Then it just crashes.
git git://github.com/AndyA/htop-osx.git
makes no sense.
Sorry, missed the "clone" command. Fixed now.
Post new comment