码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2017-02-23 10:47:07      阅读:310      评论:0      收藏:0      [点我收藏+]

标签:linux安装   ide   包含   字符   linux   错误   centos6.5   swf   pkg   

系统: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. [root@localhost 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. [root@localhost 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时报错

标签:linux安装   ide   包含   字符   linux   错误   centos6.5   swf   pkg   

原文地址:http://www.cnblogs.com/antyi/p/6431921.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!