Go Linux Install SwfTools-0.9.2 installation thing, in executing make install times wrong

Source: Internet
Author: User
Tags sprintf symlink

System: CentOS6.5

When installing SwfTools-0.9.2, when executing the make install times error,

Rm-f/usr/local/share/swftools/swfs/default_viewer.swf-o-l/usr/local/share/swftools/swfs/default_viewer.swf
RM: Invalid option--O
Please try "rm--help" for more information.
MAKE[1]: * * [Install] Error 1
MAKE[1]: Leaving directory '/root/swftools-0.9.2/swfs '
Make: * * [Install] Error 2

From the error point of view is the RM command to give the option has a problem, there is no-o and-l option, so error, troubleshooting, is to find out the statement of the error in which file, modify the statement

Find the filename containing the "Default_viewer" string in the Swftools directory

    1. Find/|xargs Grep-r-i "Default_viewer"



The following file can be found through the above command

  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 BES used is determined by a symlink named "default_viewer.swf" in
  10. Match to a binary file./src/pdf2swf.o
  11. Match to a binary file./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 BES used is determined by a symlink named "default_viewer.swf" in
  26. Match to a binary file./src/pdf2swf.o
  27. Match to a binary file./src/pdf2swf
  28. ./src/pdf2swf.c:sprintf (buf, "%s/default_viewer.swf", Swfdir);
  29. ./src/pdf2swf.1:the Viewer swf to BES used is determined by a symlink named "default_viewer.swf" in
  30. Match to a binary file./src/pdf2swf.o
  31. Match to a binary file./src/pdf2swf
  32. [Email protected] swftools-0.9.2]# VI swfs/makefile.in


Modify the above 2 files in red, respectively, and remove the-o-l;

Then perform the Make install successfully!

Excerpt from: http://blog.csdn.net/zhizaibide1987/article/details/28902229

Go Linux Install SwfTools-0.9.2 installation thing, in executing make install times wrong

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.