(转)Linux安装SwfTools-0.9.2安装事,在执行make install时报错

Posted antyi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了(转)Linux安装SwfTools-0.9.2安装事,在执行make install时报错相关的知识,希望对你有一定的参考价值。

系统:CentOS6.5

安装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”字符串文件名

 

 

  1. find ./ |xargs grep -r -i "default_viewer"



通过上面的命令可以找到下面的文件

  1. [[email protected] swftools-0.9.2]# find ./ |xargs grep -r -i default_viewer
  2. ./swfs/Makefile: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
  3. ./swfs/Makefile: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
  4. ./swfs/Makefile: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
  5. ./swfs/Makefile.in: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
  6. ./swfs/Makefile.in: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
  7. ./swfs/Makefile.in: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
  8. ./src/pdf2swf.c: sprintf(buf, "%s/default_viewer.swf", SWFDIR);
  9. ./src/pdf2swf.1: The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
  10. 匹配到二进制文件 ./src/pdf2swf.o
  11. 匹配到二进制文件 ./src/pdf2swf
  12. ./swfs/Makefile: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
  13. ./swfs/Makefile: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
  14. ./swfs/Makefile: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
  15. ./swfs/Makefile.in: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
  16. ./swfs/Makefile.in: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
  17. ./swfs/Makefile.in: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
  18. ./swfs/Makefile: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
  19. ./swfs/Makefile: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
  20. ./swfs/Makefile: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
  21. ./swfs/Makefile.in: rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
  22. ./swfs/Makefile.in: $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
  23. ./swfs/Makefile.in: $(UNINSTALL_DATA) $(pkgdatadir)/swfs/default_viewer.swf
  24. ./src/pdf2swf.c: sprintf(buf, "%s/default_viewer.swf", SWFDIR);
  25. ./src/pdf2swf.1: The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
  26. 匹配到二进制文件 ./src/pdf2swf.o
  27. 匹配到二进制文件 ./src/pdf2swf
  28. ./src/pdf2swf.c: sprintf(buf, "%s/default_viewer.swf", SWFDIR);
  29. ./src/pdf2swf.1: The viewer swf to be used is determined by a symlink named "default_viewer.swf" in
  30. 匹配到二进制文件 ./src/pdf2swf.o
  31. 匹配到二进制文件 ./src/pdf2swf
  32. [[email protected] swftools-0.9.2]# vi swfs/Makefile.in


分别修改上面红色标注的2个文件, 将-o -L去掉;

然后在执行make install 成功!

 

 

摘自:http://blog.csdn.net/zhizaibide1987/article/details/28902229

以上是关于(转)Linux安装SwfTools-0.9.2安装事,在执行make install时报错的主要内容,如果未能解决你的问题,请参考以下文章

centos7 安装swftools Apache_OpenOffice

Linux mount/unmount命令(转)

Linux 实现自动安装服务组件以及优化内核参数 (转)

[转] Anaconda使用总结

linux 安装中文字体解决Aspose word转PDF乱码

Linux mount/unmount命令(转)