这段时间make总是出现问题:
/usr/bin/ld:.libs/libixml.ver:2: ignoring invalid character `\033' in script
/usr/bin/ld:.libs/libixml.ver:2: ignoring invalid character `3' in script
/usr/bin/ld:.libs/libixml.ver:2: ignoring invalid character `1' in script
/usr/bin/ld:.libs/libixml.ver:2: ignoring invalid character `\033' in script
/usr/bin/ld:.libs/libixml.ver:2: syntax error in VERSION script
collect2: error: ld returned 1 exit status
/usr/bin/ld:.libs/libixml.ver:2: ignoring invalid character `3' in script
/usr/bin/ld:.libs/libixml.ver:2: ignoring invalid character `1' in script
/usr/bin/ld:.libs/libixml.ver:2: ignoring invalid character `\033' in script
/usr/bin/ld:.libs/libixml.ver:2: syntax error in VERSION script
collect2: error: ld returned 1 exit status
今天可算找到原因了,是因为在.zshrc中设置了GREP_OPTIONS为“--color=always"会出现make问题,去掉就好了。
Grep默认可能是--color=auto,检测到输出为终端时,会高亮匹配的字符串,当输出为pipe时关闭高亮。这样输出pipe到less中就不会高亮显示。
既然设置EREP_OPTIONS会出现编译问题,根据需要添加alias吧。
本文链接地址: GREP_OPTIONS导致无法make
发表评论