首页 > 代码库 > (转)Linux安装SwfTools-0.9.2安装事,在执行make install时报错
(转)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”字符串文件名
- 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个文件, 将-o -L去掉;
然后在执行make install 成功!
摘自:http://blog.csdn.net/zhizaibide1987/article/details/28902229
(转)Linux安装SwfTools-0.9.2安装事,在执行make install时报错
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。