空格的危害

http://blog.csdn.net/e01528/article/details/79532462

上面这个博客的命令行不可能成功的

./congigure --prefix = /home/yourname/local_install/

会出现如下错误:

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /dev
configure: error: expected an absolute directory name for --prefix: =

linux beginner可能查五天资料都不知道问题在哪,可能还会质疑自己连绝对路径都不能理解,其实就是多了个空格。就是这么简单。

在linux上,读取路径是会把你的空格算进去的,space count!!

所以,不论做什么都不要带空格

ps:善用help,因为那里面的命令是绝对正确的,你可以找不同,然后就解决了

posted @ 2018-03-22 16:30  甜豆儿  阅读(352)  评论(0编辑  收藏  举报