next up previous contents
Next: Installing a Java Run-time Up: Installing GraphViz on Solaris Previous: Sources for GraphViz for   Contents

Detailed Installation Instructions

Unfortunately, the installation instructions from AT&T are rather sparse and the tarball doesn't contains any instructions. Below is a summary of the installation procedure for installing GraphViz into a user's normal file space (in $\sim$/bin):

  1. Download the gzipped tar of GraphViz from :

    http://www.bell-labs.com/cgi-user/wwexptools/gensnapshot/sparc-sun-solaris/graphviz.tar.gz [local copy here]

  2. Make the installation directory, decompress and untar the GraphViz:

    	mkdir -p ~/bin/GraphViz/ ; 
    	gzip -dc ~/graphviz.tar.gz | tar xf - -C ~/bin/GraphViz/
    

  3. Create a csh script to source on login (sets up paths etc): (assume csh or tcsh login shell)

    Copy/paste or enter the following into a file somewhere (e.g. $\sim$/bin/GraphViz.csh). Change the setting for setenv GraphViz if you are install to a directory other than $\sim$/bin/GraphViz.

    #!/bin/csh
    setenv GraphViz ~/bin/GraphViz
    
    setenv PATH ${PATH}:${GraphViz}/bin
    
    if ($?LD_LIBRARY_PATH) then
        setenv LD_LIBRARY_PATH ${GraphViz}/lib/graphviz/lib/graphviz:${LD_LIBRARY_PATH}
    else
        setenv LD_LIBRARY_PATH ${GraphViz}/lib/graphviz/lib/graphviz
    endif
    
    if ($?MANPATH) then
        setenv MANPATH ${MANPATH}:${GraphViz}/man:$GraphViz/lib/graphviz/man/
    else
        setenv MANPATH ${GraphViz}/man:${GraphViz}/lib/graphviz/man/
    endif
    
    setenv LEFTYPATH ${GraphViz}/lib/graphviz/share/graphviz/lefty/
    

  4. Add the following to $\sim$/.cshrc:

    Add a call to the script that sets the paths. E.g. add the following to .cshrc or .login:

    source ~/bin/GraphViz.csh
    



2004-06-29