1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
|
---|
3 | <task id="Linuxsetup" platform="linux osx">
|
---|
4 | <title>Installing the minimal or standard package on Linux or Mac OSX</title>
|
---|
5 | <shortdesc conref="conref-installing.dita#conref-installing/installing"/>
|
---|
6 | <taskbody>
|
---|
7 | <prereq
|
---|
8 | conref="conref-installing.dita#conref-installing/installing-minimal-standard-package"/>
|
---|
9 | <steps>
|
---|
10 | <step>
|
---|
11 | <cmd conref="conref-installing.dita#conref-installing/download-minimal-standard"/>
|
---|
12 | <choicetable relcolwidth="1.0* 4.0*">
|
---|
13 | <chhead>
|
---|
14 | <choptionhd>Package</choptionhd>
|
---|
15 | <chdeschd>File name</chdeschd>
|
---|
16 | </chhead>
|
---|
17 | <chrow>
|
---|
18 | <choption>Minimal</choption>
|
---|
19 | <chdesc><filepath>DITA-OT<keyword keyref="release.version"
|
---|
20 | />_minimal_bin.tar.gz</filepath></chdesc>
|
---|
21 | </chrow>
|
---|
22 | <chrow>
|
---|
23 | <choption>Standard</choption>
|
---|
24 | <chdesc><filepath>DITA-OT<keyword keyref="release.version"
|
---|
25 | />_standard_bin.tar.gz</filepath></chdesc>
|
---|
26 | </chrow>
|
---|
27 | </choicetable>
|
---|
28 | <info>For production use, we recommend that you use the latest stable
|
---|
29 | release.</info>
|
---|
30 | </step>
|
---|
31 | <step>
|
---|
32 | <cmd>Extract the contents of the package into an installation directory.</cmd>
|
---|
33 | <info>
|
---|
34 | <note>You can extract the files either to your private home directory for your
|
---|
35 | exclusive use or to the <filepath>/usr/local/share/</filepath> directory, if
|
---|
36 | you want to share the DITA-OT with other users.</note>
|
---|
37 | </info>
|
---|
38 | </step>
|
---|
39 | <step>
|
---|
40 | <cmd>Verify that the <varname>JAVA_HOME</varname> environment variable is set. </cmd>
|
---|
41 | <stepxmp>
|
---|
42 | <codeblock>export JAVA_HOME=<JRE_dir></codeblock>
|
---|
43 | </stepxmp>
|
---|
44 | </step>
|
---|
45 | <step>
|
---|
46 | <cmd>Verify that the <varname>ANT_HOME</varname> environment variable is been set. </cmd>
|
---|
47 | <stepxmp>
|
---|
48 | <codeblock>export ANT_HOME=<Ant_dir></codeblock>
|
---|
49 | </stepxmp>
|
---|
50 | </step>
|
---|
51 | <step>
|
---|
52 | <cmd>Verify that the <varname>PATH</varname> environment variable includes the Java
|
---|
53 | and Ant executable files.</cmd>
|
---|
54 | <stepxmp>
|
---|
55 | <codeblock>export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH</codeblock>
|
---|
56 | </stepxmp>
|
---|
57 | </step>
|
---|
58 | <step>
|
---|
59 | <cmd>Set the <varname>DITA_HOME</varname> environment variable to point to the
|
---|
60 | DITA-OT installation directory.</cmd>
|
---|
61 | <stepxmp>
|
---|
62 | <codeblock>export DITA_HOME=<DITA-OT_dir></codeblock>
|
---|
63 | </stepxmp>
|
---|
64 | </step>
|
---|
65 | <step>
|
---|
66 | <cmd>Set up the <varname>CLASSPATH</varname> environment variable.</cmd>
|
---|
67 | <stepxmp>
|
---|
68 | <codeblock>export CLASSPATH=$DITA_HOME/lib/dost.jar:$CLASSPATH
|
---|
69 | export CLASSPATH=$DITA_HOME/lib:$CLASSPATH
|
---|
70 | export CLASSPATH=$DITA_HOME/lib/resolver.jar:$CLASSPATH
|
---|
71 | export CLASSPATH=$DITA_HOME/lib/commons-codec-<keyword keyref="tool.codec.version"/>.jar:$CLASSPATH</codeblock>
|
---|
72 | </stepxmp>
|
---|
73 | </step>
|
---|
74 | <step importance="optional">
|
---|
75 | <cmd>If you use Ant, version 1.8 or later, set up the <varname>CLASSPATH</varname>
|
---|
76 | environment variable to include Apache Xerces.</cmd>
|
---|
77 | <stepxmp>
|
---|
78 | <codeblock>export CLASSPATH=<xerces_dir>/xercesImpl.jar:<xerces_dir>/xml-apis.jar:$CLASSPATH</codeblock>
|
---|
79 | </stepxmp>
|
---|
80 | </step>
|
---|
81 | <step>
|
---|
82 | <cmd>Set up the XSLT processor:</cmd>
|
---|
83 | <choicetable relcolwidth="1.0* 4.0*">
|
---|
84 | <chhead>
|
---|
85 | <choptionhd>Processor</choptionhd>
|
---|
86 | <chdeschd>Action</chdeschd>
|
---|
87 | </chhead>
|
---|
88 | <chrow>
|
---|
89 | <choption>Saxon</choption>
|
---|
90 | <chdesc>
|
---|
91 | <p>Set up the <varname>CLASSPATH</varname> environment variable to
|
---|
92 | include the Saxon JAR files, for
|
---|
93 | example:<codeblock>export CLASSPATH=<saxon_dir>/saxon9.jar:<saxon_dir>/saxon9-dom.jar:$CLASSPATH</codeblock></p>
|
---|
94 | <p>Set up the <codeph>ANT_OPTS</codeph> environment variable, for
|
---|
95 | example:
|
---|
96 | <codeblock>export ANT_OPTS=$ANT_OPTS -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl</codeblock></p>
|
---|
97 | </chdesc>
|
---|
98 | </chrow>
|
---|
99 | <chrow>
|
---|
100 | <choption>Xalan</choption>
|
---|
101 | <chdesc>Set up the <varname>CLASSPATH</varname> environment variable to
|
---|
102 | include the Xalan JAR files, for example:
|
---|
103 | <codeblock>export CLASSPATH=<xalan_dir>/xalan.jar:$CLASSPATH</codeblock></chdesc>
|
---|
104 | </chrow>
|
---|
105 | </choicetable>
|
---|
106 | </step>
|
---|
107 | <step importance="optional">
|
---|
108 | <cmd>For index processing, set up ICU for Java.</cmd>
|
---|
109 | <stepxmp>
|
---|
110 | <codeblock>export CLASSPATH=<icu4j_dir>/icu4j.jar:$CLASSPATH</codeblock>
|
---|
111 | </stepxmp>
|
---|
112 | </step>
|
---|
113 | <step importance="optional">
|
---|
114 | <cmd>For JavaHelp, set the <varname>JHHOME</varname> environment variable.</cmd>
|
---|
115 | <stepxmp>
|
---|
116 | <codeblock>export JHHOME=<javahelp_dir></codeblock>
|
---|
117 | </stepxmp>
|
---|
118 | </step>
|
---|
119 | <step importance="optional">
|
---|
120 | <cmd>For PDF output, set up the XSL-FO processor:</cmd>
|
---|
121 | <choicetable relcolwidth="1.0* 4.0*">
|
---|
122 | <chhead>
|
---|
123 | <choptionhd>Processor</choptionhd>
|
---|
124 | <chdeschd>Action</chdeschd>
|
---|
125 | </chhead>
|
---|
126 | <chrow>
|
---|
127 | <choption>FOP</choption>
|
---|
128 | <chdesc>
|
---|
129 | <p>Add the FOP installation directory to the
|
---|
130 | <filepath>local.properties</filepath> file as the
|
---|
131 | <option>fop.home</option> property, for
|
---|
132 | example:<codeblock>fop.home=/usr/share/java/fop</codeblock></p>
|
---|
133 | </chdesc>
|
---|
134 | </chrow>
|
---|
135 | <chrow>
|
---|
136 | <choption>RenderX</choption>
|
---|
137 | <chdesc>Add the RenderX installation directory to the
|
---|
138 | <filepath>local.properties</filepath> file as the
|
---|
139 | <option>xep.dir</option> property, for
|
---|
140 | example:<codeblock>xep.dir=/usr/share/java/xep</codeblock></chdesc>
|
---|
141 | </chrow>
|
---|
142 | <chrow>
|
---|
143 | <choption>Antenna House</choption>
|
---|
144 | <chdesc>Add the AH Formatter installation directory to the
|
---|
145 | <filepath>local.properties</filepath> file as the
|
---|
146 | <option>axf.path</option> property, for
|
---|
147 | example:<codeblock>axf.path=/usr/share/java/AHFormatterV6</codeblock></chdesc>
|
---|
148 | </chrow>
|
---|
149 | </choicetable>
|
---|
150 | </step>
|
---|
151 | <step>
|
---|
152 | <cmd>Test the DITA-OT installation by transforming the sample files.</cmd>
|
---|
153 | <info>The <filepath>samples\ant_sample directory</filepath> contains Ant scripts
|
---|
154 | designed to build various output formats.</info>
|
---|
155 | <stepxmp>
|
---|
156 | <codeblock>/usr/local/share/DITA-OT<keyword keyref="release.version"/>$ ant -f samples/ant_sample/sample_all.xml</codeblock>
|
---|
157 | </stepxmp>
|
---|
158 | <stepresult>The generated output is written to the
|
---|
159 | <filepath><varname>DITA-dir</varname>\out\samples directory</filepath>.
|
---|
160 | The following output formats are generated:<ul>
|
---|
161 | <li>Docbook</li>
|
---|
162 | <li>Eclipse help</li>
|
---|
163 | <li>HTML Help</li>
|
---|
164 | <li>ODT</li>
|
---|
165 | <li>JavaHelp</li>
|
---|
166 | <li>PDF</li>
|
---|
167 | <li>TocJS</li>
|
---|
168 | <li>TROFF</li>
|
---|
169 | <li>XHTML</li>
|
---|
170 | </ul></stepresult>
|
---|
171 | </step>
|
---|
172 | </steps>
|
---|
173 | </taskbody>
|
---|
174 | </task>
|
---|