File: INSTALL.pkg

package info (click to toggle)
plotutils 2.3-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 10,364 kB
  • ctags: 6,789
  • sloc: ansic: 73,255; cpp: 12,142; sh: 7,526; yacc: 2,599; makefile: 955; lex: 144
file content (277 lines) | stat: -rw-r--r-- 14,113 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
This file explains how to install the GNU plotutils (plotting utilities)
package.  The file README summarizes the contents of the package.  Please
send bug reports to <bug-gnu-utils@gnu.org>, and suggestions for
longer-range improvements to both <bug-gnu-utils@gnu.org> and the principal
author and current maintainer, Robert S. Maier <rsm@math.arizona.edu>.

These are package-specific installation instructions: PLEASE READ THEM.

Before reading them, you should glance through the generic installation
instructions in the file INSTALL.  The instructions in that file may be
summed up as follows.  You build a GNU package by typing `./configure' and
then `make'.  After building, you may run validation tests on the package
by typing `make check'.  To install the package, you type `make install'.
A documentation file, in `info' format, is installed as part of this
process.  You may produce a copy of the documentation for the package, in
dvi format, by typing `make dvi'.  This assumes that you have the TeX
document formatter installed.

The most important points not mentioned in the file INSTALL are these.

    **********************************************************************
    If you have a working C++ compiler and would like to build the
    `libplotter' class library and the pic2plot utility, both of which are
    written in C++, you should add the `--enable-libplotter' option to the
    `./configure' command.
    **********************************************************************

    **********************************************************************
    If you would like to build and a standalone version of the `libxmi'
    2D rasterization library, and install the library and its documentation,
    you should add the `--enable-libxmi' option to the `./configure'
    command.  The only reason this is not done by default is that libxmi is
    also distributed as a separate package.
    **********************************************************************

    **********************************************************************
    It is not unknown for one or more of the validation tests that are run
    by doing `make check' to fail for harmless reasons.  See B.7, below.
    **********************************************************************

The rest of this file discusses possible installation problems.  There are
some additional options that you can add to the `./configure' command.
They are mentioned too, in passing.

----------------------------------------------------------------------

Possible problems not mentioned in the INSTALL file are summarized in the
following three sections.  They cover:

(A) Problems related to building the GNU libplot graphics library.

(B) Miscellaneous problems.

(C) Problems related to support for the X Window System.

----------------------------------------------------------------------

A. This section covers problems related to building both the unshared
version and the shared version of the GNU libplot graphics library.  Except
on older systems, GNU libplot will normally be built as both an unshared
library and a shared library.  A script called `libtool' is used for this.
By default, the application programs `graph', `plot', `tek2plot', and
`plotfont' will be configured to use the shared library.

If for any reason you wish to disable support for the shared version of
libplot, you may begin by doing `./configure --disable-shared' instead of
`./configure'.


A.1. On Silicon Graphics systems running IRIX 6.x, you may get error
messages about `GP overflow'.  If so, you should do `make distclean' and
start over, this time doing two things differently.  
(1) After running `./configure', modify, by hand, the file `./libtool'.
In that file, change the line "archive_cmds=..." and/or the line
"archive_expsym_cmds=...", which will be located at about line #175, to
include the options `-multigot -shared', rather than just `-shared'.
(2) Do `make CFLAGS="-O -multigot"' instead of just `make'.

A.2. On some HP-UX systems, the `sed' program is broken.  This may cause
unusual problems for libtool, the script that prepares the libplot library.
If mysterious problems occur during the compilation and linking of libplot
on an HP-UX system, you should install a working version of `sed', such as
GNU sed, and try again.  There are also problems on HP-UX systems related
to the X Window System (see below).

----------------------------------------------------------------------

B. This section covers miscellaneous installation problems.


B.1. On some systems, there are potential minor problems having to do with
installing (rather than building) the shared version of libplot.  By
default, it is installed in `/usr/local/lib'.  On some systems you may need
to run a command (such as `ldconfig'), or even reboot, to let your system
know that a new shared library has been installed.  On some systems you may
need to add `/usr/local/lib' to your LD_LIBRARY_PATH environment variable
in order to use the `graph', `plot', `tek2plot', `plotfont', and `pic2plot'
programs after they have been installed.  You will be cautioned about
problems of this sort, if any, at installation time.

B.2. If you have a recent laser printer that can use the 35 standard
Postscript fonts even when in PCL 5 or HP-GL/2 mode, such as a 4000-series
HP LaserJet, you may wish to add the `--enable-ps-fonts-in-pcl' option to
`./configure'.  No additional actions on your part, such as installing
fonts, are required, since the Postscript fonts are internal to the printer.

B.3. By default, the 45 fonts that are built into recent HP LaserJets are
available to the plotting utilities when you produce PCL 5 or HP-GL/2
output, e.g., when you do `graph -T pcl' or `graph -T hpgl'.  You may wish
to have these 45 fonts available when you produce X or Postscript output,
also.  To arrange this, you would add the `--enable-lj-fonts-in-x' option
and/or the `--enable-lj-fonts-in-ps' option to `./configure'.  Of course
you would also need to acquire the fonts and install them.  This is fairly
easy.  Instructions are in the file INSTALL.fonts.

B.4. If the installation process has any problem preparing or installing
the documentation files (in `info' format), you should install the current
release of the GNU texinfo package, which contains the current version of
the GNU `makeinfo' and `install-info' programs.  That should fix the
problem.

B.5. As part of the installation process, the header file ./include/plot.h
is installed in a place on your system where the gcc C compiler will find
it.  If you wish to use cc as well as (or instead of) gcc, you should copy
plot.h manually to the directory `/usr/include', where cc will find it.
plot.h is not installed in `/usr/include' by default, since many
administrators prefer not to add files to that directory.

B.6. If you are installing this package with DJGPP under MS-DOS, the very
first thing you should do is rename the file `install-sh' in this directory
to `install.sh'.  That is on account of filename length limitations in
MS-DOS.  If `./configure' reports that it is unable to find certain
executable programs that it should in fact find, you may also need to
replace many of the occurrences of `test -f' in `./configure' and
`./ltmain' by `test -x' (to compensate for the ".exe" extension that MS-DOS
uses).  These potential problems are reported by Michel de Ruiter
<mdruiter@cs.vu.nl>.  Please contact him for additional information on
MS-DOS installations.

B.7.  It is not unusual for one or more of the validation tests performed
by doing `make check' to fail on account of minor differences in formatting
floating-point numbers, or differences in the rounding of floating-point
numbers.  In particular, the `plot2fig' validation test may fail if you are
installing with DJGPP under MS-DOS, or if you are installing the package on
an old NeXT machine.

To emphasize: the failure of one or two of the validation tests, in
particular the `plot2fig' test, is probably quite harmless.  But if any
validation test other than the `plot2fig' test should fail, please report
it to <bug-gnu-utils@gnu.org>.  For some additional remarks on the
validation tests, see the file ./test/README.

----------------------------------------------------------------------

C. This section covers installation problems related to the X Window
System.  If for any reason you wish to omit the X Window System support,
you may begin by doing `./configure --without-x' instead of `./configure'.


C.1. To make maximum use of the X support in this package, you will need to
have the 35 standard Postscript fonts installed on your X server.  For
instructions on installing Type 1 versions of these fonts, clones of which
are included in the package, see the file ./INSTALL.fonts.

C.2. Also, to make maximum use of the support for the `xfig' drawing
editor, you will need to make a small change to the source for `xfig', and
recompile it.  (The change makes it use the full set of 35 standard
Postscript fonts.)  For this too, see the file ./INSTALL.fonts.

C.3. There is a possible installation problem having to do with X widget
sets.  By default this package uses the free Athena widgets, which are
supported on most but not all machines.  Some machines provide Motif
widgets instead of Athena widgets.  On such machines (e.g. Hewlett-Packard
systems running HP/UX, and some IBM systems) you should normally begin by
doing `./configure --with-motif' instead of just `./configure' to ensure
that the software is configured correctly.

The only advantage of using Motif widgets, which are not free, is that you
may be able to use Motif's drag-and-drop facility to drag graphics out of
popped-up X Windows, e.g., the window popped up by `graph -T X'.

C.4. On some Hewlett-Packard systems running HP/UX 10.xx, it is possible to
use the free Athena widgets rather than the Motif widgets.  If you have an
HP/UX 10.xx system, you should check whether the directories
/usr/contrib/X11R6/{include,lib} exist.  If so, you can use the Athena
widgets.  To use them, you would do `./configure' and then

    make CFLAGS="-O -L/usr/contrib/X11R6/lib -I/usr/contrib/X11R6/include"

rather than just `make'.

Older HP/UX 10.xx systems have X11R5 instead of X11R6, in which case you
should modify the directory names appropriately.  Also, you may need to
include "-L/usr/local/X11R5/lib" in CFLAGS.  It is not clear why.

C.5. Old Hewlett-Packard systems that are running HP/UX 9.xx or earlier
have Motif widgets, but the Motif files are stored in unusual places.  On
such systems, besides doing `./configure --with-motif' you may need to do

	make CFLAGS="-O -I/usr/include/Motif1.2 -L/usr/lib/Motif1.2"

rather than just `make'.

For HP/UX 9.xx systems, X11R6, presumably including the Athena widgets and
not the Motif widgets, was available as a patch.  If you have an HP/UX 9.xx
system that X11R6 was installed on, besides doing `./configure' (or
possibly `./configure --with-motif'), you should do

    make CFLAGS="-O -L/usr/contrib/X11R6/lib -I/usr/contrib/X11R6/include"

rather than just `make'.  This is because on HP/UX 9.xx systems, the X11R6
patch was installed in the /usr/contrib directory.

C.6. On Suns that are running SunOS 4.1.x with the ancient OpenWindows 3.0
version of the X Window System, the Xmu and Xt libraries may not link
correctly.  If so, you will get error messages dealing with "undefined
symbols" when linking any of the five programs `graph', `plot', `tek2plot',
`plotfont', and `pic2plot'.  To solve this problem, please contact your
local Sun office and request the following patches:

  Patch i.d.      Description
  100512-05       4.1.x OpenWindows 3.0: libXt Jumbo patch
  100573-03       4.1.x OpenWindows 3.0: undefined symbols when using
                          shared libXmu

You may be able to retrive these patches, or more recent versions of them,
from the patch archive at ftp://metalab.unc.edu/pub/sun-info/sun-patches/ .

If you are using Sun's cc as your compiler, you may be able to work around
this problem not by installing patches to your system, but rather by
modifying the Makefiles in the five directories `graph', `plot',
`tek2plot', `plotfont', and `pic2plot' by hand.  Here is how you can do
this.

The following explanation applies to graph/Makefile; the four other
Makefiles are treated similarly.  In graph/Makefile, locate the line
beginning

graph$(EXEEXT):

The second line after that should begin with a tab character.  After the
tab, it should read:

$(LINK) $(graph_LDFLAGS) $(graph_OBJECTS) $(graph_LDADD) $(LIBS)

Replace this line by:

LD_LIBRARY_PATH="../libplot/.libs:$LD_LIBRARY_PATH" cc -O -o .libs/graph \
graph.o ../lib/libcommon.a ../lib/libfontlist.a -lplot -L/usr/lib/X11 \
-lXaw -Bstatic -lXmu -lXt -Bdynamic -lXext -lX11 -lm

(as before, preceded by a tab character).  You would modify the four other
Makefiles similarly, except that the two occurrences of `graph' on the
above line would be replaced by `plot', `tek2plot', `plotfont', and
`pic2plot', in turn.

If you are using gcc rather than cc as your compiler, this approach will
not work; but it may be possible to work around the problem by extracting
the two files named `sharedlib.o' from libXmu.a and libXt.a and adding them
to the list of objects to be linked.  This is tricky, and obtaining the two
system patches from Sun or elsewhere, instead, is recommended.

A much better workaround is to obtain and install the X11R6 version of the
X Window System.  Unlike the version that came with SunOS 4.1.x, it
supports rotated and affinely transformed (`sheared') fonts.

C.7. A problem similar to #C.6 (i.e., error messages about "unresolved
symbols") may occur on Suns running SunOS 4.1.x that are equipped with much
more recent versions of the X Window System libraries.  The problem may
occur if the package is compiled with cc rather than gcc.  The workaround
is similar, except that the modified lines should end with

-lXaw -lXmu -Bstatic -lXt -Bdynamic -lXext -lX11 -lm

instead of

-lXaw -Bstatic -lXmu -lXt -Bdynamic -lXext -lX11 -lm