Mountain Lion MacOSX sed: RE error: illegal byte sequence'


转载:http://lfstar.blog.163.com/blog/static/5637898720134365651965/

http://stackoverflow.com/questions/19242275/re-error-illegal-byte-sequence-on-mac-os-x/19770395#19770395

如果在MacOSX (Mountain Lion),必须先执行两条export,否则在编译阶段会报错:'sed: RE error: illegal byte sequence'


先执行这两句。


export LC_COLLATE='C'
export LC_CTYPE='C'


至于为什么,我暂时还不知道。

你可能感兴趣的:(mac,sed)