以下为摘录:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
在生成Makefile时,运行automake --add-missing命令出现以下错误:
configure.in: installing './install-sh': error while making link: 不允许的操作
configure.in: installing './mkinstalldirs': error while making link: 不允许的操作
configure.in: installing './missing': error while making link: 不允许的操作
configure.in: installing './depcomp': error while making link: 不允许的操作
经过在网上查找,发现有一篇文章也出现了类似的情况,以下为这篇文章的内容:
//===========================================================================
Linux下的GTK等等。
menphix 发表于 2008-06-03 21:09:14
fedora 9自带的Glade是2.xx版的,而且Anjuta根本就没有。删掉换成新的Glade 3.xx和Anjuta,准备试试在linux下写gtk+.
结果运行autogen.sh总也过不去。要不是Anjuta的输出高亮还真发现不了这样的错误:
configure.ac:6: installing `./install-sh'; error while making link: 不允许的操作
configure.ac:6: installing `./missing'; error while making link: 不允许的操作
src/Makefile.am: installing `./depcomp'; error while making link: 不允许的操作
Makefile.am: installing `./INSTALL'; error while making link: 不允许的操作
仔细分析才知道原来是因为把工程放在FAT32分区上了,而它不支持link!
挪到ext3上就解决了。呵呵。
//==========================================================================
分析一下自己的原因,才知道原来是因为自己的代码文件放在linux和windows的共享目录下,也就是FAT32分区,最后把这些代码文件移到ext3上就解决了,呵呵,太谢谢这位哥们你了!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
之前猜测是在虚拟机linux和主机win下共享文件的原因,看了下我的是NTFS的,看来同样不支持link。
另外关于automake,感兴趣的可以看下这里:
http://www.gnu.org/software/automake/manual/automake.html
参考:
http://hi.baidu.com/huaan031/blog/item/11849039056fc6c4d5622595.html