Changeset e858efa
Legend:
- Unmodified
- Added
- Removed
-
INSTALL
r10de47b re858efa 1 1 LFS Book Conversion Tools Installation Instructions 2 2 3 After downloading the CVSsource, there are some things that need to be set up3 After downloading the SVN source, there are some things that need to be set up 4 4 on your computer if you want to convert the XML source into something easier to 5 5 read (e.g. HTML, TXT, PS or PDF). If you are interested in this, then keep … … 21 21 - http://www.linuxfromscratch.org/blfs/view/svn/pst/xml.html 22 22 23 * DocBook XSL Stylesheets 24 - http://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html 25 - additionally create a link from 26 /usr/share/xml/docbook/xsl-stylesheets-1.65.1 to 23 * DocBook XSL Stylesheets (1.67.2) 24 install -d /usr/share/xml/docbook/xsl-stylesheets-1.67.2 25 chown -R root:root . 26 cp -af INSTALL VERSION common eclipse extensions fo html htmlhelp images \ 27 javahelp lib manpages params profiling template xhtml \ 28 /usr/share/xml/docbook/xsl-stylesheets-1.67.2 29 install -d /usr/share/doc/xml 30 cp -af doc/* /usr/share/doc/xml 31 cd /usr/share/xml/docbook/xsl-stylesheets-1.67.2 && \ 32 sed -i -e 's@current/@1.67.2/@' INSTALL && \ 33 sh INSTALL 34 xmlcatalog --noout --add "delegateURI" \ 35 "http://docbook.sourceforge.net/release/xsl/1.67.2/" \ 36 "file:///usr/share/xml/docbook/xsl-stylesheets-1.67.2/catalog.xml" \ 37 /etc/xml/catalog 38 ln -sf xsl-stylesheets-$(VERSION) \ 27 39 /usr/share/xml/docbook/xsl-stylesheets-current 28 29 cd /usr/share/xml/docbook/ &&30 ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current31 40 32 41 * HTMLTidy 33 42 - http://www.linuxfromscratch.org/blfs/view/svn/general/tidy.html 34 Patch to fix an issue with <pre> tags when the pages are served 35 like application/xhtml+xml (not needed to see the pages locally) 36 - http://www.macana-es.com/tidy-041005-fix-pre-tags-for-xhtml-1.patch 43 - you'll also need the patch at http://linuxfromscratch.org/~matthew/tidy-041026-prevent_PRE_newlines-1.patch as well. 37 44 38 45 ------------------------------------------------------------------------------- 39 46 If you want to be able to convert the book into PDF as well, then you will need 40 47 the FOP package. This takes an XSL-FO file (created with libxslt which you 41 already installed) and converts it to PDF: 48 already installed) and converts it to PDF. FOP is dependent on ANT 49 (Another Neat Tool) and the Java Advanced Imaging (JAI) API. 42 50 43 - http://www.apache.org/dist/xml/fop/fop-0.20.5-bin.tar.gz 51 First we need the Java SDK installed. See 52 http://www.linuxfromscratch.org/blfs/view/svn/general/j2sdk.html. 44 53 45 Install FOP by running: 54 Now install JAI: 55 - Download jai-1_1_2_01-lib-linux-i586-jdk.bin from 56 http://java.sun.com/products/java-media/jai/downloads/download-1_1_2_01.html 57 (download the version for the JDK Install). 58 - chmod +x jai-1_1_2_01-lib-linux-i586-jdk.bin 59 - cd /opt/j2sdk && /path/to/jai-1_1_2_01-lib-linux-i586-jdk.bin 46 60 47 cd /opt && 48 tar -xzvf /usr/src/fop-0.20.5-bin.tar.gz && 49 mv fop-0.20.5 fop 61 Next install ANT: 62 - download http://www.apache.org/dist/ant/source/apache-ant-1.6.2-src.tar.bz2 63 - tar -xjvf apache-ant-1.6.2-src.tar.bz2 64 (recent versions of tar will warn about "A lone zero block at 33476" but 65 this can be safely ignored) 66 - cd apache-ant-1.6.2 && \ 67 ./boostrap.sh && \ 68 ./build && \ 69 install -d /opt/ant && \ 70 cp -r dist/* /opt/ant 71 - edit your bash profile to set ANT_HOME=/opt/ant and PATH=$PATH:/opt/ant/bin 50 72 51 Now set JAVA_HOME, FOP_HOME and PATH to values appropriate to your system. 73 And finally install FOP: 74 - download http://www.apache.org/dist/xml/fop/fop-0.20.5-src.tar.gz 75 - tar -xzvf fop-0.20.5-src.tar.gz 76 (recent versions of tar will warn about "A lone zero block at 33476" but 77 this can be safely ignored) 78 - cd fop-0.20.5 && 79 ./build.sh && 80 install -d /opt/fop/{bin,lib} && 81 cp lib/{avalon-framework-cvs-20020806.jar,batik.jar} build/fop.jar \ 82 /opt/fop/lib && 83 cp fop.sh /opt/fop/bin 84 - edit your bash profile to set FOP_HOME=/opt/fop and PATH=$PATH:/opt/fop/bin
Note:
See TracChangeset
for help on using the changeset viewer.