Closed prb closed 13 years ago
Do this before ./configure: export CFLAGS="-m32"
This will force building htop as x86 (32-bit, 64-bit by default) application - this way it works :)
That didn't work for me. I got :
ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: * [htop] Error 1 make: * [all] Error 2
as result of make
If you want to get the whole text, I can send that to you via mail.
Using MacPort I was able to build it. The PortFile:
http://trac.macports.org/browser/trunk/dports/sysutils/htop/Portfile
I didn't want to install macport (why installing another PERL dist to install htop), so I try to use your source. I have the same problem :
htop(20786) malloc: * error for object 0x100df0: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug Abort trap
with snow 10.6.5. I try the CFLAGS tricks, but I still have the malloc error.
Any fixes ?
regards
I'm on Snow Leopard 10.6.6 and compiling with CFLAGS="-m32" works for me and also with CFLAGS="-m32 -O2".
On snow leopard 10.6.7 (Darwin 10.7.0), the following worked: export CFLAGS="-m32" && ./autogen.sh && ./configure && make clean && make
On snow leopard 10.6.7, and the previous comment worked well. Thanks nbigaouette!
The above step to build from source and use CFLAGS does not work on yosemite. Please help
@bansalgagan works for me on OS X 10.11.2 Beta 4
Build runs fine, but alas
htop
does not.