source: INSTALL@ 266a7bd

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 266a7bd was 266a7bd, checked in by Matthew Burgess <matthew@…>, 19 years ago
  • (INSTALL) Document how to install the latest known good version of the docbook-xsl package
  • (stylesheets/*.xsl) reference the latest known good version of the stylesheets

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4343 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.6 KB
Line 
1LFS Book Conversion Tools Installation Instructions
2
3After downloading the SVN source, there are some things that need to be set up
4on your computer if you want to convert the XML source into something easier to
5read (e.g. HTML, TXT, PS or PDF). If you are interested in this, then keep
6reading. If you are only interested in editing the XML source for re-
7submission to the lfs-book or lfs-dev mailing lists, then you do not need this
8document. Instead, you need to read the LFS Editor's Manual. See the LFS
9website at http://www.linuxfromscratch.org for more information.
10
11-------------------------------------------------------------------------------
12If all you want to do is convert XML to HTML perform the following:
13
14* libxml2
15 - http://www.linuxfromscratch.org/blfs/view/svn/general/libxml2.html
16
17* libxslt
18 - http://www.linuxfromscratch.org/blfs/view/svn/general/libxslt.html
19
20* DocBook DTD
21 - http://www.linuxfromscratch.org/blfs/view/svn/pst/xml.html
22
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) \
39 /usr/share/xml/docbook/xsl-stylesheets-current
40
41* HTMLTidy
42 - http://www.linuxfromscratch.org/blfs/view/svn/general/tidy.html
43 - you'll also need the patch at http://linuxfromscratch.org/~matthew/tidy-041026-prevent_PRE_newlines-1.patch as well.
44
45-------------------------------------------------------------------------------
46If you want to be able to convert the book into PDF as well, then you will need
47the FOP package. This takes an XSL-FO file (created with libxslt which you
48already installed) and converts it to PDF. FOP is dependent on ANT
49(Another Neat Tool) and the Java Advanced Imaging (JAI) API.
50
51First we need the Java SDK installed. See
52http://www.linuxfromscratch.org/blfs/view/svn/general/j2sdk.html.
53
54Now 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
60
61Next 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
72
73And 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 TracBrowser for help on using the repository browser.