Building gv on RHEL4

These are the steps necessary to compile the gv postscript viewer on Redhat Enterprise Linux 4 (RHEL4).

The home page for this package can be found at the following URL.

http://www.cs.wisc.edu/~ghost/gv/gv.htm

Download the Source

Visit the main page for gv.

http://www.cs.wisc.edu/~ghost/gv/gv.htm

Download the package in the Availablity section.

wget ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/gv-3.5.8.tar.gz

Prepare the Source

First extract the main source.

tar -xvzf gv-3.5.8.tar.gz

Change paths.h

If you don’t apply the following change, the following errors appear immediately when building.

In file included from Aaa.c:49:
Aaa_intern.h:44:1: pasting "/" and "Xlib" does not give a valid preprocessing token
Aaa_intern.h:44:1: pasting "h" and ">" does not give a valid preprocessing token
Aaa_intern.h:45:1: pasting "/" and "Xresource" does not give a valid preprocessing token
Aaa_intern.h:45:1: pasting "h" and ">" does not give a valid preprocessing token
etc.

Modify source/paths.h and replace,

#else
#   define INC_X11(aaa) <X11/###aaa###>
#   define INC_XMU(aaa) <X11/Xmu/###aaa###>
#   define INC_XAW(aaa) <X11/Xaw3d/###aaa###>
#endif

with this:

#else
#   define INC_X11(aaa) <X11/aaa>
#   define INC_XMU(aaa) <X11/Xmu/aaa>
#   define INC_XAW(aaa) <X11/Xaw3d/aaa>
#endif

Copy gv.man

If you don’t copy gv.man, you will get the following error at the end of the build.

make[1]: *** No rule to make target `gv.man', needed by `gv._man'.  Stop.
make[1]: Leaving directory `/benutzer/theorie/dpotter/pkg/gv/gv-3.5.8/source'
make: *** [all] Error 2

To fix it, just copy in the file.

cp doc/gv.man source/

Build

Run the following commands (see INSTALL.Unix).

xmkmf
make Makefiles
make

Installation

If you have root access and want everything installed to /usr/local, just run (as root),

make install
 
howto/gv.txt · Last modified: 2006/06/22 00:09 by dpotter