Computer/linux

gsview on Ubuntu Hardy (8.04.02)

citadel 2009. 3. 13. 22:43
Compilation

To compile the sources of gsview-4.9, gtk-config is necessary.

apt-get install libgtk1.2-dev
wget -c http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsv49src.zip

  unzip -aa gsv49src.zip
  unzip -o gsv49src.zip "gsview-4.9/binary/*"
  cd gsview-4.9
  cp srcunx/unx.mak Makefile
  make

cd gsview-4.9/bin/
gsview*  gvxct.htm  gvxde.htm  gvxen.htm  gvxes.htm  gvxfr.htm  gvxgr.htm  gvxit.htm  gvxnl.htm  gvxru.htm  gvxse.htm  gvxsk.htm

check your gs version
~$ gs -version
GPL Ghostscript 8.61 (2007-11-21)
Copyright (C) 2007 Artifex Software, Inc.  All rights reserved

Options -> Advanced Configure.. ->

Ghostscript Version -> 861
Ghostscript Shared Object : libgs.so.8

-> OK

Options -> Save Settings Now

The more detailed configuration will be found in the old posts.

2007/08/24 - [computer/linux] - gsview on ubuntu linux (6.10)
2008/01/01 - [computer/linux] - Gtk-WARNING **: Unable to locate loadable module in module_path


Installation

make install



Modification

emacs /usr/local/bin/gsview-help &

#!/bin/sh
# This script runs the GSview help
# $1 is the help file name
# $2 is the topic name

if [ -z "$1" ]
then
  echo "Usage: $0 URL [TAG]"
  echo "  URL: The URL to open"
  echo "  TAG: The anchor at that url"
  exit 1
fi

if [ -z "$2" ]
then
  TAG=''
else
  TAG="#$2"
fi

if mozilla -remote openFile\(file://$1$TAG\) ; then
    exit 0
else
    mozilla file://$1$TAG
fi
exit 0

you should change mozilla to firefox .