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
- Find/|xargs Grep-r-i "Default_viewer"
The following file can be found through the above command
- [Email protected] 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 BES used is determined by a symlink named "default_viewer.swf" in
- Match to a binary file./src/pdf2swf.o
- Match to a binary file./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 BES used is determined by a symlink named "default_viewer.swf" in
- Match to a binary file./src/pdf2swf.o
- Match to a binary file./src/pdf2swf
- ./src/pdf2swf.c:sprintf (buf, "%s/default_viewer.swf", Swfdir);
- ./src/pdf2swf.1:the Viewer swf to BES used is determined by a symlink named "default_viewer.swf" in
- Match to a binary file./src/pdf2swf.o
- Match to a binary file./src/pdf2swf
- [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