|
2 | 2 | <body>
|
3 | 3 |
|
4 | 4 | <!-- FOOTER RIGHT "1-$CHAPTERPAGE" -->
|
5 |
| -<h1><a name='INSTALL'>Chapter 1 - Installing HTMLDOC</a></h1> |
| 5 | +<h1 align='right'><a name='INSTALL'>Chapter 1 - Installing |
| 6 | +HTMLDOC</a></h1> |
6 | 7 |
|
7 |
| -<p>This chapter describes the steps needed to install the |
8 |
| -commercial version of HTMLDOC on your system. If you are |
9 |
| -installing HTMLDOC from source code, please see <a |
10 |
| -href='#COMPILE'>Appendix D, Compiling HTMLDOC from |
11 |
| -Source</a>.</p> |
| 8 | +<p>This chapter describes the steps needed to install HTMLDOC on |
| 9 | +your system from the source distributions.</p> |
12 | 10 |
|
13 | 11 | <h2>Requirements</h2>
|
14 | 12 |
|
15 |
| -<p>HTMLDOC requires approximately 4MB of disk space and one of |
16 |
| -the following environments:</p> |
| 13 | +<p>HTMLDOC requires C and C++ compilers - recent versions of GCC/LLVM work fine. To build the GUI you'll also need:</p> |
17 | 14 |
|
18 | 15 | <ul>
|
19 | 16 |
|
20 |
| - <li>Microsoft Windows<sup>®</sup> 2000 or higher</li> |
| 17 | + <li><a href='http://www.fltk.org'>Fast Light Tool Kit ("FLTK")</a>, |
| 18 | + version 1.1.x or 1.3.x. |
21 | 19 |
|
22 |
| - <li>MacOS<sup>®</sup> X 10.2 or higher</li> |
23 |
| - |
24 |
| - <li>Linux<sup>®</sup> 2.4 or higher</li> |
25 |
| - |
26 |
| - <li>Solaris<sup>®</sup> 7 or higher</li> |
| 20 | + <li><a href='ftp://ftp.x.org'>X11 libraries</a>, R5 or higher (needed |
| 21 | + to build under UNIX/Linux only.) |
27 | 22 |
|
28 | 23 | </ul>
|
29 | 24 |
|
30 |
| -<p>HTMLDOC may run on other platforms, however we do not provide |
31 |
| -packages for platforms other than those listed.</p> |
32 |
| - |
33 |
| - |
34 |
| -<h2>Installing HTMLDOC</h2> |
35 |
| - |
36 |
| -<p>The following instructions describe how to install the |
37 |
| -HTMLDOC software on your system.</p> |
38 |
| - |
39 |
| -<h3>Installing HTMLDOC on Microsoft Windows</h3> |
40 |
| - |
41 |
| -<p>HTMLDOC is provided as a Microsoft installer file under |
42 |
| -Windows. Insert the CD or double-click on the <var>htmldoc</var> |
43 |
| -icon in the <var>Explorer</var> window to install HTMLDOC under |
44 |
| -Windows using the Microsoft software installation wizard (Figure |
45 |
| -1-1).</p> |
46 |
| - |
47 |
| -<p align='center'><img src='htmldoc-fig11.png' alt='The software installation wizard'/><br /> |
48 |
| -<i>Figure 1-1: The Microsoft software installation wizard</i></p> |
49 |
| - |
50 |
| - |
51 |
| -<h3>Installing HTMLDOC on MacOS X</h3> |
52 |
| - |
53 |
| -<p>Double-click on the <var>Install</var> icon in the |
54 |
| -<var>Finder</var> window to start the software |
55 |
| -installation wizard (Figure 1-2) and follow the installer |
56 |
| -prompts.</p> |
| 25 | +<p>Secure (https) URL support can be enabled via the <A |
| 26 | +HREF='http://www.openssl.org/'>OpenSSL</a> or <A HREF="http://www.gnutls.org/">GNU TLS</a> libraries, among others.</p> |
57 | 27 |
|
58 |
| -<p align='center'><img src='htmldoc-fig12.png' alt='The software installation wizard'/><br /> |
59 |
| -<i>Figure 1-2: The software installation wizard</i></p> |
| 28 | +<h2>Compiling under UNIX/Linux</h2> |
60 | 29 |
|
| 30 | +<p>HTMLDOC uses a configuration script produced by GNU autoconf |
| 31 | +to configure itself for your system. If your C compiler is |
| 32 | +not called <var>cc</var> or <var>gcc</var>, set the |
| 33 | +<code>CC</code> environment variable to the name and path of |
| 34 | +your C compiler:</p> |
61 | 35 |
|
62 |
| -<h3>Installing HTMLDOC on Linux</h3> |
63 |
| - |
64 |
| -<p>Double-click on the |
65 |
| -<var>htmldoc-linux-intel.rpm</var> icon or run the |
66 |
| -following command to install HTMLDOC on Linux:</p> |
67 |
| - |
68 |
| -<pre class='command'> |
69 |
| -rpm -i htmldoc-linux-intel.rpm |
| 36 | +<pre> |
| 37 | + % <kbd>setenv CC /path/to/compiler ENTER</kbd> [C Shell] |
| 38 | + % <kbd>CC=/path/to/compiler; export CC ENTER</kbd> [Bourne/Korn Shell] |
70 | 39 | </pre>
|
71 | 40 |
|
| 41 | +<p>Similarly, if your C++ compiler is not called <var>CC</var>, |
| 42 | +<var>gcc</var>, <var>c++</var>, or <var>g++</var>, set the |
| 43 | +<code>CXX</code> environment variable to the name and path of |
| 44 | +your C++ compiler:</p> |
72 | 45 |
|
73 |
| -<h3>Installing HTMLDOC on Solaris</h3> |
74 |
| - |
75 |
| -<p>Run the following command to install HTMLDOC on Solaris SPARC:</p> |
76 |
| - |
77 |
| -<pre class='command'> |
78 |
| -pkgadd -d htmldoc-solaris-sparc.pkg |
| 46 | +<pre> |
| 47 | + % <kbd>setenv CXX /path/to/compiler ENTER</kbd> [C Shell] |
| 48 | + % <kbd>CXX=/path/to/compiler; export CXX ENTER</kbd> [Bourne/Korn Shell] |
79 | 49 | </pre>
|
80 | 50 |
|
81 |
| -<p>Run the following command to install HTMLDOC on Solaris Intel:</p> |
| 51 | +<p>Then run the following command to configure HTMLDOC for |
| 52 | +installation in the default directories:</p> |
82 | 53 |
|
83 |
| -<pre class='command'> |
84 |
| -pkgadd -d htmldoc-solaris-intel.pkg |
| 54 | +<pre> |
| 55 | + % <kbd>./configure ENTER</kbd> |
85 | 56 | </pre>
|
86 | 57 |
|
| 58 | +<p>The default configuration will install HTMLDOC in the |
| 59 | +<var>/usr/bin</var> directory with the data files under |
| 60 | +<var>/usr/share/htmldoc</var> and the documentation and on-line |
| 61 | +help under <var>/usr/share/doc/htmldoc</var>. Use the |
| 62 | +<code>--prefix</code> option to change the installation prefix |
| 63 | +to a different directory such as <var>/usr/local</var>: |
87 | 64 |
|
88 |
| -<h2>Licensing HTMLDOC</h2> |
| 65 | +<pre> |
| 66 | + % <kbd>./configure --prefix=/usr/local ENTER</kbd> |
| 67 | +</pre> |
89 | 68 |
|
90 |
| -<p>Before you can use HTMLDOC, you must license it. When you first run |
91 |
| -HTMLDOC, the license dialog (Figure 1-3) will appear.</p> |
| 69 | +<p>If the OpenSSL library is not installed in a standard |
| 70 | +location for your compilers, use the |
| 71 | +<code>--with-openssl-includes</code> and |
| 72 | +<code>--with-openssl-libs</code> options to point to the OpenSSL |
| 73 | +library: |
92 | 74 |
|
93 |
| -<p align='center'><img src='htmldoc-fig13.png'><br /> |
94 |
| -<i>Figure 1-3 - The HTMLDOC License Dialog</i></p> |
| 75 | +<pre> |
| 76 | + % <kbd>./configure --with-openssl-libs=/path/to/openssl/lib \ |
| 77 | + --with-openssl-includes=/path/to/openssl ENTER</kbd> |
| 78 | +</pre> |
95 | 79 |
|
96 |
| -<p>Click on the <var>Update License</var> button to show the |
97 |
| -license manager window (Figure 1-4).</p> |
| 80 | +<p>HTMLDOC is built from a Makefile in the distribution's main |
| 81 | +directory. Simply run the "make" command to build HTMLDOC: |
98 | 82 |
|
99 |
| -<p align='center'><img src='htmldoc-fig14.png'><br /> |
100 |
| -<i>Figure 1-4 - The HTMLDOC License Dialog</i></p> |
| 83 | +<pre> |
| 84 | + % <kbd>make ENTER</kbd> |
| 85 | +</pre> |
101 | 86 |
|
102 |
| -<p>Enter the license key that was emailed to you or came on the |
103 |
| -inside of the HTMLDOC CD-ROM case and click on the <var>OK</var> |
104 |
| -button. Click on the <var>Close</var> button to start using the |
105 |
| -software.</p> |
| 87 | +<p>If you get any fatal errors, please report them on the |
| 88 | +<code>htmldoc</code> mailing list referenced on the <a href="http://www.htmldoc.org/">htmldoc.org</a> web site.</p> |
106 | 89 |
|
| 90 | +<p>Please note the version of HTMLDOC that you are using as well |
| 91 | +as any pertinent system information such as the operating |
| 92 | +system, OS version, compiler, and so forth. Omitting this |
| 93 | +information may delay or prevent a solution to your problem.</p> |
107 | 94 |
|
108 |
| -<h2>Uninstalling HTMLDOC</h2> |
| 95 | +<p>Once you have compiled the software successfully, you may |
| 96 | +install HTMLDOC by running the following command:</p> |
109 | 97 |
|
110 |
| -<p>The following instructions describe how to remove the HTMLDOC |
111 |
| -software from your system.</p> |
| 98 | +<pre> |
| 99 | + % <kbd>make install ENTER</kbd> |
| 100 | +</pre> |
112 | 101 |
|
113 |
| -<h3>Uninstalling HTMLDOC on Microsoft Windows</h3> |
| 102 | +<p>If you are installing in a restricted directory like |
| 103 | +<var>/usr</var> then you'll need to be logged in as root.</p> |
114 | 104 |
|
115 |
| -<p>Open the Control Panel window and double-click on the |
116 |
| -<var>Add/Remove Software</var> icon. When the available software |
117 |
| -list is displayed, select HTMLDOC and click on the |
118 |
| -<var>Remove</var> button.</p> |
119 | 105 |
|
| 106 | +<h2>Compiling on Windows Using Visual C++</h2> |
120 | 107 |
|
121 |
| -<h3>Uninstalling HTMLDOC on MacOS X</h3> |
| 108 | +<p>A Visual C++ 2008 workspace file and associated project files are |
| 109 | +included in the source distribution under the "visualc" directory. Open |
| 110 | +the workspace file "htmldoc.dsw", adjust the FLTK include and project |
| 111 | +file locations, and then build the HTMLDOC target. |
122 | 112 |
|
123 |
| -<p>Double-click on the <var>Uninstall</var> icon in the |
124 |
| -<var>Finder</var> and follow the prompts.</p> |
| 113 | +<center><table width='80%' border='1' cellpadding='5' cellspacing='0' bgcolor='#cccccc'> |
| 114 | +<tr> |
| 115 | + <td><b>Note:</b> |
125 | 116 |
|
| 117 | + <p>You also need to download the FLTK library in order to compile HTMLDOC with Visual C++.</p> |
126 | 118 |
|
127 |
| -<h3>Uninstalling HTMLDOC on Linux</h3> |
| 119 | + </td> |
| 120 | +</tr> |
| 121 | +</table></center> |
128 | 122 |
|
129 |
| -<p>Run the following command to remove HTMLDOC from your Linux |
130 |
| -system:</p> |
| 123 | +<h2>Installing with Visual C++</h2> |
131 | 124 |
|
132 |
| -<pre class='command'> |
133 |
| -rpm -e htmldoc |
134 |
| -</pre> |
| 125 | +<p>To install HTMLDOC with Visual C++, open the MSI file that is created by |
| 126 | +the Visual C++ solution file. That will populate the necessary registry entries:</p> |
135 | 127 |
|
| 128 | +<dl> |
136 | 129 |
|
137 |
| -<h3>Uninstalling HTMLDOC on Solaris</h3> |
| 130 | + <dt><code>HKEY_LOCAL_MACHINE\Software\HTMLDOC\data</code> |
| 131 | + <dd>C:\installation\directory |
138 | 132 |
|
139 |
| -<p>Run the following command to remove HTMLDOC from Solaris:</p> |
| 133 | + <dt><code>HKEY_LOCAL_MACHINE\Software\HTMLDOC\doc</code> |
| 134 | + <dd>C:\installation\directory\doc |
140 | 135 |
|
141 |
| -<pre class='command'> |
142 |
| -pkgrm htmldoc |
143 |
| -</pre> |
| 136 | +</dl> |
144 | 137 |
|
145 | 138 | </body>
|
146 | 139 | </html>
|
0 commit comments