INSTALL.pkg 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. This file explains how to install the GNU plotutils (plotting utilities)
  2. package. The file README summarizes the contents of the package. Please
  3. send bug reports to <bug-plotutils@gnu.org>, and suggestions for
  4. longer-range improvements to both <bug-plotutils@gnu.org> and the principal
  5. author and current maintainer, Robert S. Maier <rsm@math.arizona.edu>.
  6. These are package-specific installation instructions: PLEASE READ THEM.
  7. Before reading them, you should glance through the generic installation
  8. instructions in the file INSTALL. The instructions in that file may be
  9. summed up as follows. You build a GNU package by typing `./configure' and
  10. then `make'. After building, you may run validation tests on the package
  11. by typing `make check'. To install the package, you type `make install'.
  12. A documentation file, in `info' format, is installed as part of this
  13. process. You may produce a copy of the documentation for the package, in
  14. dvi format, by typing `make dvi'. This assumes that you have the TeX
  15. document formatter installed.
  16. The most important points not mentioned in the file INSTALL are these.
  17. **********************************************************************
  18. If you have a working C++ compiler and would like to build the
  19. `libplotter' class library and the pic2plot utility, both of which are
  20. written in C++, you should add the `--enable-libplotter' option to the
  21. `./configure' command.
  22. **********************************************************************
  23. **********************************************************************
  24. By default, if the `libpng' library and its header file are found at
  25. installation time, then support for PNG graphics will be included in
  26. libplot and all command-line utilities. If for any reason you wish to
  27. omit PNG support despite libpng being present, you should add the
  28. `--without-libpng' option to the `./configure' command.
  29. **********************************************************************
  30. **********************************************************************
  31. It is not unknown for one or more of the validation tests that are run
  32. by doing `make check' to fail for harmless reasons. See B.6, below.
  33. **********************************************************************
  34. **********************************************************************
  35. If you would like to build and a standalone version of the `libxmi'
  36. 2D rasterization library, and install the library and its documentation,
  37. you should add the `--enable-libxmi' option to the `./configure'
  38. command. This is not done by default because libxmi is also distributed
  39. as a separate package.
  40. **********************************************************************
  41. The rest of this file discusses possible installation problems. There are
  42. some additional options that you can add to the `./configure' command.
  43. They are mentioned too, in passing.
  44. ----------------------------------------------------------------------
  45. Possible problems not mentioned in the INSTALL file are summarized in the
  46. following three sections. They cover:
  47. (A) Problems related to building the GNU libplot graphics library.
  48. (B) Miscellaneous problems.
  49. (C) Problems related to support for the X Window System.
  50. ----------------------------------------------------------------------
  51. A. This section covers problems related to building both the unshared
  52. version and the shared version of the GNU libplot graphics library. Except
  53. on older systems, GNU libplot will normally be built as both an unshared
  54. library and a shared library. A script called `libtool' is used for this.
  55. By default, the application programs `graph', `plot', `tek2plot', and
  56. `plotfont' will be configured to use the shared library.
  57. If for any reason you wish to disable support for the shared version of
  58. libplot, you may begin by doing `./configure --disable-shared' instead of
  59. `./configure'.
  60. ----------------------------------------------------------------------
  61. B. This section covers miscellaneous installation problems.
  62. B.1. On some systems, there are potential minor problems having to do with
  63. installing (rather than building) the shared version of libplot. By
  64. default, it is installed in `/usr/local/lib'. On some systems you may need
  65. to run a command (such as `ldconfig'), or even reboot, to let your system
  66. know that a new shared library has been installed. On some systems you may
  67. need to add `/usr/local/lib' to your LD_LIBRARY_PATH environment variable
  68. in order to use the `graph', `plot', `tek2plot', `plotfont', and `pic2plot'
  69. programs after they have been installed. You will be cautioned about
  70. problems of this sort, if any, at installation time.
  71. B.2. If you have a recent laser printer that can use the 35 standard
  72. Postscript fonts even when in PCL 5 or HP-GL/2 mode, such as a 2100-series,
  73. 4000-series, or 8000-series HP LaserJet, you may wish to add the
  74. `--enable-ps-fonts-in-pcl' option to `./configure'. No additional actions
  75. on your part, such as installing fonts, are required, since the Postscript
  76. fonts, if present, are internal to the printer.
  77. *** It is recommended that you add this option, since it is innocuous. ***
  78. B.3. By default, the standard 45 `HP LaserJet' fonts, such as Arial,
  79. Univers, etc., which are built into recent HP LaserJets, are available to
  80. the plotting utilities when you produce PCL 5 or HP-GL/2 output, e.g., when
  81. you do `graph -T pcl' or `graph -T hpgl'.
  82. But there are many Postscript viewers that can display these fonts; and
  83. also, in modern LaserJets, which understand both Postscript and PCL, the
  84. fonts are available on the Postscript side as well as the PCL side. Hence,
  85. you may wish to have these 45 fonts available when you produce Postscript
  86. output. To arrange this, you would add the `--enable-lj-fonts-in-ps'
  87. option to `./configure'.
  88. *** It is recommended that you add this option, since it is innocuous. ***
  89. Of course you may well need to acquire the 45 fonts and install them, so
  90. that your Postscript previewer will be able to use them. This is fairly
  91. easy. Instructions are in the file INSTALL.fonts.
  92. You may also wish to add these 45 fonts to your X Window System display, so
  93. that, e.g., when you use `graph -T X', you will be able to use them. This
  94. is possible (instructions are in the file INSTALL.fonts). To make these
  95. fonts available when producing X output, e.g., by `graph -T X', you would
  96. add the `--enable-lj-fonts-in-x' option to `./configure'.
  97. *** It is recommended that you add this option, since it is innocuous. ***
  98. B.4. As part of the installation process, the header file ./include/plot.h
  99. will be installed in a place on your system where the gcc C compiler will
  100. find it. If you wish to use cc as well as (or instead of) gcc, you should
  101. copy plot.h manually to the directory `/usr/include', where cc will find
  102. it. plot.h is not installed in `/usr/include' by default, since many
  103. administrators prefer not to add files to that directory.
  104. B.5. If you are installing this package with DJGPP under MS-DOS, the very
  105. first thing you should do is rename the file `install-sh' in this directory
  106. to `install.sh'. That is on account of filename length limitations in
  107. MS-DOS. If `./configure' reports that it is unable to find certain
  108. executable programs that it should in fact find, you may also need to
  109. replace many of the occurrences of `test -f' in `./configure' and
  110. `./ltmain' by `test -x' (to compensate for the ".exe" extension that MS-DOS
  111. uses). These potential problems are reported by Michel de Ruiter
  112. <mdruiter@cs.vu.nl>. Please contact him for additional information on
  113. MS-DOS installations.
  114. B.6. It is not at all unusual for one or more of the validation tests
  115. performed by doing `make check' to fail on account of innocuous differences
  116. in formatting floating-point numbers, or differences in the rounding of
  117. floating-point numbers. In particular, the `plot2fig' validation test may
  118. fail if you are installing with DJGPP under MS-DOS, or if you are
  119. installing the package on an old NeXT machine.
  120. To emphasize: the failure of two or three of the validation tests, in
  121. particular the `plot2fig' test, is almost certainly quite harmless. But if
  122. a large number of the validation tests should fail, please report it to
  123. <bug-plotutils@gnu.org>. For some additional remarks on the validation
  124. tests, see the file ./test/README.
  125. ----------------------------------------------------------------------
  126. C. This section covers installation problems related to the X Window
  127. System. If for any reason you wish to omit the X Window System support,
  128. you may begin by doing `./configure --without-x' instead of `./configure'.
  129. C.1. To make maximum use of the X support in this package, you will need to
  130. have the 35 standard Postscript fonts installed on your X server. For
  131. instructions on installing Type 1 versions of these fonts, clones of which
  132. are included in the package, see the file ./INSTALL.fonts.
  133. C.2. There is a possible installation problem having to do with X widget
  134. sets. By default, this package uses the free Athena widgets, which are
  135. provided on most but not all machines. Some machines provide Motif widgets
  136. instead of Athena widgets. On such machines (e.g. Hewlett-Packard systems
  137. running HP/UX, and some IBM systems) you should normally begin by doing
  138. `./configure --with-motif' instead of just `./configure', to ensure that
  139. the software is configured correctly.
  140. The only advantage of using Motif widgets, which are not free, is that you
  141. may be able to use Motif's drag-and-drop facility to drag graphics out of
  142. popped-up X Windows, e.g., the window popped up by `graph -T X'.
  143. C.3 On a few machines, the auto-configuration process may not be able to
  144. find the library files containing the X widgets (whether Athena or Motif),
  145. or the corresponding header files. If this problem occurs, you can specify
  146. their location manually at configure time, as follows.
  147. C.3a. If you have the Athena widgets and wish to use them, even though the
  148. auto-configuration process does not find them, you may specify their
  149. location by doing `./configure --with-athena=DIR' instead of just
  150. `./configure'. Here DIR should be a directory whose subdirectory `lib'
  151. contains the Athena widget library files libXaw and libXmu, and whose
  152. subdirectory `include' contains the Athena header files, such as
  153. X11/Xaw/Label.h.
  154. An example would be old Hewlett-Packard systems running HP/UX 10.xx. If
  155. you are installing the package on such a system, you should check whether
  156. the directories /usr/contrib/X11R6/{lib,include} exist. If so, you can use
  157. the Athena widgets. To use them, you would do
  158. ./configure --with-athena=/usr/contrib/X11R6
  159. instead of just `./configure'. If these directories do not exist on your
  160. system, you do not have the Athena widgets: you must use `--with-motif'
  161. instead.
  162. Extremely old HP/UX 10.xx systems may have X11R5 instead of X11R6, in which
  163. case you should modify the directory name appropriately.
  164. C.3.b. It is also possible that you have only Motif widgets, but the
  165. autoconfigure process is unable to find the Motif files. In such a
  166. situation, you may specify the location of the Motif files by doing
  167. `./configure --with-motif=DIR' instead of just `./configure'. Here DIR
  168. should be a directory whose subdirectory `lib' contains the Motif widget
  169. library file libXm, and whose subdirectory `include' contains the Motif
  170. header files, such as X11/Xm/Label.h.
  171. C.3.c. There are a very few systems where the widget files must be
  172. specified manually by an even more complicated procedure. An example would
  173. be truly ancient Hewlett-Packard systems that are running HP/UX 9.xx or
  174. earlier. They have Motif widgets, but the Motif files are stored in
  175. unusual places. If you have an HP/UX 9.xx system that X11R6 was installed
  176. on, besides doing `./configure' (or possibly `./configure --with-motif'),
  177. you may need to do
  178. make CFLAGS="-O -I/usr/include/Motif1.2 -L/usr/lib/Motif1.2"
  179. rather than just `make'.
  180. You should note, however, that for HP/UX 9.xx systems, X11R6, presumably
  181. including the Athena widgets and not the Motif widgets, was available as a
  182. patch. If you have an HP/UX 9.xx system that the X11R6 patch was installed
  183. on, you can probably do `./configure --with-athena=/usr/contrib/X11R6'.
  184. C.4. Some version of Motif require that executables that are linked with
  185. Motif be linked, also, with the `libXpm' library. `configure' knows about
  186. this. But if for some reason it is unable to find libXpm and the
  187. corresponding header file, you can specify their location manually at
  188. configuration time, by doing not just `./configure --with-motif', but
  189. rather `./configure --with-motif --with-libxpm=DIR'. Here DIR should be a
  190. directory whose subdirectory `lib' contains libXpm, and whose subdirectory
  191. `include' contains the corresponding header file, X11/xpm.h.