安装SWFTOOLS-0.9.2的时候,在执行make install时报错,
rm -f /usr/local/share/swftools/swfs/default_viewer.swf -o -L /usr/local/share/swftools/swfs/default_viewer.swf
rm:无效选项 -- o
请尝试执行"rm --help"来获取更多信息。
make[1]: *** [install] 错误 1
make[1]: Leaving directory `/root/swftools-0.9.2/swfs'
make: *** [install] 错误 2
从错误提示来看是rm命令给的选项有问题,没有-o和-L选项,所以报错,排查办法,就是找出这个报错的语句在哪个文件中,修改其中的语句
在swftools的目录中查找包含“default_viewer”字符串文件名
- find ./ |xargs grep -r -i "default_viewer"
通过上面的命令可以找到下面的文件
- [root@localhost swftools-0.9.2]# find ./ |xargs grep -r -i default_viewer
- ./swfs/Makefile: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile.in: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile.in: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile.in: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
- ./src/pdf2swf.c: sprintf(buf, "%s/default_viewer.swf", SWFDIR);
- ./src/pdf2swf.1: The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
- 匹配到二进制文件 ./src/pdf2swf.o
- 匹配到二进制文件 ./src/pdf2swf
- ./swfs/Makefile: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile.in: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile.in: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile.in: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile.in: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile.in: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
- ./swfs/Makefile.in: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
- ./src/pdf2swf.c: sprintf(buf, "%s/default_viewer.swf", SWFDIR);
- ./src/pdf2swf.1: The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
- 匹配到二进制文件 ./src/pdf2swf.o
- 匹配到二进制文件 ./src/pdf2swf
- ./src/pdf2swf.c: sprintf(buf, "%s/default_viewer.swf", SWFDIR);
- ./src/pdf2swf.1: The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
- 匹配到二进制文件 ./src/pdf2swf.o
- 匹配到二进制文件 ./src/pdf2swf
- [root@localhost swftools-0.9.2]# vi swfs/Makefile.in
分别修改上面红色标注的2个文件。
然后在执行make install 成功!
阅读(5069) | 评论(1) | 转发(0) |