Brew install ht 报错Last 15 lines from /Users/BenjaminLEE/Library/Logs/Homebrew/ht/02.make: inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}

小弟通过Homebrew 安装ht,结果报错,详细信息如下:

Banning-MAC:~ BenjaminLEE$ brew install ht
==> Downloading https://downloads.sourceforge.net/project/hte/ht-source/ht-2.1.0
Already downloaded: /Users/BenjaminLEE/Library/Caches/Homebrew/ht-2.1.0.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/ht/2.1.0 --disable-x11-textmode
==> make install
Last 15 lines from /Users/BenjaminLEE/Library/Logs/Homebrew/ht/02.make:
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:693:1: note: candidate function
abs(float __lcpp_x) _NOEXCEPT {return ::fabsf(__lcpp_x);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:697:1: note: candidate function
abs(double __lcpp_x) _NOEXCEPT {return ::fabs(__lcpp_x);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:701:1: note: candidate function
abs(long double __lcpp_x) _NOEXCEPT {return ::fabsl(__lcpp_x);}
^
1 error generated.
make[1]: *** [htapp.o] Error 1
make[1]: *** Waiting for unfinished jobs…
make: *** [install-recursive] Error 1

READ THIS: https://docs.brew.sh/Troubleshooting.html

求大神们给个提示,不胜感激

https://github.com/feicong/macbook_issues

修改
./configure --disable-x11-text-mode
为
./configure --disable-x11-textmode (textmode之间没有-)
	

还是源码装吧

还是不行 大神

解决办法:
将 ht editor源代码里的htapp.cc中的第3026行的abs,改成fabs

1 个赞