INSTALL 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. LFS Book Conversion Tools Installation Instructions
  2. After downloading the CVS source, there are some things that need to be set up
  3. on your computer if you want to convert the XML source into something easier to
  4. read (e.g. HTML, TXT, PS or PDF). If you are interested in this, then keep
  5. reading. If you are only interested in editing the XML source for re-
  6. submission to the lfs-book or lfs-dev mailing lists, then you do not need this
  7. document. Instead, you need to read the LFS Editor's Manual. See the LFS
  8. website at http://www.linuxfromscratch.org for more information.
  9. -------------------------------------------------------------------------------
  10. If all you want to do is convert XML to HTML perform the following:
  11. * libxml2
  12. - http://www.linuxfromscratch.org/blfs/view/cvs/general/libxml2.html
  13. * libxslt
  14. - http://www.linuxfromscratch.org/blfs/view/cvs/general/libxslt.html
  15. * DocBook DTD
  16. - http://www.linuxfromscratch.org/blfs/view/cvs/pst/xml.html
  17. * DocBook XSL Stylesheets
  18. - http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html
  19. * HTMLTidy
  20. - http://tidy.sourceforge.net/
  21. Installation of HTMLTidy is a simple `./configure --prefix=/usr && \
  22. make && make install`
  23. -------------------------------------------------------------------------------
  24. If you want to be able to convert the book into PDF as well, then you will need
  25. the FOP package. This takes an XSL-FO file (created with libxslt which you
  26. already installed) and converts it to PDF:
  27. - http://www.apache.org/dist/xml/fop/fop-0.20.5-bin.tar.gz
  28. Install FOP by running:
  29. cd /opt &&
  30. tar -xzvf /usr/src/fop-0.20.5-bin.tar.gz &&
  31. mv fop-0.20.5 fop
  32. Now set JAVA_HOME, FOP_HOME and PATH to values appropriate to your system.