-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
brew install htop does not work #10355
Comments
htop was removed from Homebrew because it was a seemingly non-maintained unofficial fork. |
Thank you. At least now we have a record of this. |
htop was shipped off to Homebrew-alt in b99d68b. |
To install from homebrew-alt: brew install --HEAD https://raw.github.com/adamv/homebrew-alt/master/unmaintained/htop.rb |
@landon9720 thx, however it didn't work ; autogen is failing to build htop. I don't really know how to fix that.
|
Brice, I have the same problem. I only installed the Xcode command line tools, which do not appear to include autoconf. If somebody knows how to install autoconf that information would be appreciated. On Feb 24, 2012, at 5:15 AM, Brice Dutheil wrote:
|
xcode 4.3. no longer has autotools which is why htop does not build. You will have to install a few other things before htop builds from that brew script. Alternatively someone can amend the scrip if they'd like to brew install https://github.com/adamv/homebrew-alt/raw/master/duplicates/autoconf.rb after installing autoconf and automake you should be able to compile htop (if not add libtool). I have no idea why Apple though that autoconf and automake are not needed but at least you still have a way around the issue. Oh and Homebrew should really bring autoconf back to the main branch. |
I applied @grouver 's instructions and then tried |
@ahmetalpbalkan this is not a problem with homebrew as I can guarantee that htop works just fine without having to sudo if you have setup homebrew in the standard and recommended location. Sorry, but it would be impossible for someone to help you given the limited amount of information that you have posted about the setting you used for homebrew and your system. Also, if you are using a custom location for homebrew I would strongly urge you to think really hard why it is that you need that. It makes troubleshooting a nightmare at times and it's simply not worth the hassle in most cases. |
@grouver I didn't say that I installed homebrew somewhere else, it is in default location, this bug disappeared after reboot. |
@ahmetalpbalkan sorry, for assuming stuff. I've had to troubleshoot insane configurations before so I jumped the gun there. Anyway glad your problem is resolved. It is rather odd that you had to restart the computer and I don't remember having to do that ... |
Looks like autoconf is now back in the main branch? The above did not work for me but this did: brew install autoconf ... received some warnings that htop needed sudo privs to get at all the process info and followed these instructions: cd /usr/local/Cellar/htop/HEAD/bin and all is well in the world again |
You might also want to check if you have procfs enabled. Htop is procfs dependent, and my clean install of lion did not come with /proc mounted nor did it come with procfs or 'mount_linprocfs' -- so ymmv still. We might be able to get around this issue by installing http://osxfuse.github.com/ and creating a procfs mount, but I have yet to test that. |
@Andrewpk I am not clamming to have a detailed knowledge of what Apple has removed from Lion but I know for a fact that after a fresh install of Lion (clean hdd without recovering any preference files etc.) htop installed just fine with brew and it runs without me having to do anything. It is possible that the installation process checks and installs missing components but I didn't really pay attention to that. So the removal of procfs is likely not the reason why htop fails to build. |
@grouver Hrm, even the package they threw in freebsd requires procfs -- http://www.freebsdsoftware.org/sysutils/htop.html/ - "requires linprocfs" |
@Andrewpk well I just checked again and I have no procfs mounted and also /proc does not exist yet htop runs without any errors and it does show all processes and from what I can tell works as expected. The only reasonable explanation that I can come up with is that recent versions are patched so that they no longer need procfs when running on OS X (and possibly FreeBSD). |
@grouver - the errors I was getting were from compiling htop from source at the current stable release (1.something now) after I had some initial errors with brew's htop. Whatever I did to get htop 'live' compiling to the point it was complaining about a lack of /proc along with the autoconf && automake additions allowed me to finally get htop via brew installed. I was right about htop requiring procfs --- but it looks like the version of htop that brew is pointing to has had some work done on it in order for it to run under os x. |
I opened pull request #11727 to re-add htop to homebrew. Includes latest patches for version 0.8.2.1 ... compiles fine on Lion ... does not crash. |
Anyone have this working on SnowLeopard? |
@markalanevans - yes - if you have troubles make sure you try each suggestion in this thread. |
Hi, what's the current status on this? The url for homebrew-alt doesn't seem to work any more, and I can't find the htop formula anywhere. |
@alletti Please don't comment on older closed issues - thanks. As you can see above, there's a pull request for resubmitting it. It was also recently moved from homebrew-alt to the boneyard, and you can install from there by doing |
Thanks. Searches on htop for Lion tend to bring to this page, but I couldn't find any up to date information on the current wereabouts of the formula. |
brew install htop
Error: No available formula for htop
Various online sources site the "htop" formula which appears to be missing.
The text was updated successfully, but these errors were encountered: