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.
feed
12 Comments
git
Submitted by Anonymous (not verified) on
git git://github.com/AndyA/htop-osx.git
makes no sense.
should be "clone"
Submitted by Jeet Sukumaran on
Sorry, missed the "clone" command. Fixed now.
Very nice. But ...
Submitted by Anonymous (not verified) on
Thanks very much for this. I built it on Snow Leopard and it seems OK, except when I hit F6. Then it just crashes.
FYI
Submitted by Abbie (not verified) on
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!!
This worked, thanks!
Submitted by Zeno Davatz (not verified) on
Thanks for the checkout hint! This worked!
Best
Zeno
doesnt work
Submitted by Jay (not verified) on
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
Which does not work?
Submitted by Jeet Sukumaran on
The binary download on this page? Or an independent build off the source code?
That's because you
Submitted by Anonymous (not verified) on
That's because you accidentally built the 64-bit version.
Records show 0
Submitted by Polk (not verified) on
I 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
htop and sudo?
Submitted by William (not verified) on
Is there a way to avoid having to use sudo when calling htop in mac os x?
I think security settings
Submitted by Jeet Sukumaran on
I think security settings (now?) require authentication for a third-party program to access another process. My Mac-fu is not to the level where I can tell you how to avoid this, though I believe it can be achieved through authorizing the program through KeyChain maybe? The same issue is encountered if you try to run your own-built version of, e.g. gdb, so you may want to see how folks solve that and apply the same approach.
htop and sudo
Submitted by Douglas Camata (not verified) on
Avoided this by changing "make install" to "sudo make install".
Add new comment