我正在尝试在 ubuntu 13.10 中构建和安装 MESA 库。
在 make 命令中,我遇到以下错误..
sathish@ubuntu:~/Desktop/layer_management-1_2/work/mesa/src/loader$ make -j 4
cd ../.. && /bin/bash ./config.status src/loader/Makefile depfiles
config.status: creating src/loader/Makefile
config.status: executing depfiles commands
CC libloader_la-loader.lo
../../libtool: line 444: $'\r': command not found
../../libtool: line 447: $'\r': command not found
../../libtool: line 452: $'\r': command not found
../../libtool: line 473: $'\r': command not found
../../libtool: line 523: $'\r': command not found
../../libtool: line 529: $'\r': command not found
../../libtool: line 539: syntax error near unexpected token `newline'
'./../libtool: line 539: ` case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
make: *** [libloader_la-loader.lo] Error 2
有人能指出这个错误的原因吗?
答案1
你只能看到这个:http://hc0510.blog.51cto.com/537035/116070 这是unix中'\r'的问题,只需删除它们即可。