Chinaunix首页 | 论坛 | 博客
  • 博客访问: 773923
  • 博文数量: 112
  • 博客积分: 2581
  • 博客等级: 少校
  • 技术积分: 1229
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-18 13:05
个人简介

你撒下一粒善良的种_子, 会在暗中蔓延出一片灿烂的花海

文章分类

全部博文(112)

文章存档

2019年(4)

2018年(2)

2017年(1)

2016年(1)

2015年(3)

2014年(6)

2013年(6)

2012年(2)

2011年(20)

2010年(16)

2009年(28)

2008年(23)

分类: LINUX

2008-08-06 11:21:33

I did install gsview on Ubuntu:

I downloaded package called:
gsview-4.8-2.lvn6.i386.rpm
from this website:

and applied to it the command:
sudo alien gsview-4.8-2.lvn6.i386.rpm
This command created the Debian package:
gsview_4.8-3_i386.deb
Then:
sudo dpkg -i gsview_4.8-3_i386.deb

But this is not the end of the story, because I also have to
configure ghostscript. I find that gsview-4.8 gives the best quality
of font display (crisp fonts) when used with ghostscript 8.15.4.
Installed on Ubuntu is ghostscript 8.61, which apears inferior in
terms of font quality. Therefore I decided to compile the shared object
ghostscript 8.15.4 for the local installation in my home folder:

./configure --prefix=/home/andrei/usr/

I needed to install the following additional packages, for it to
compile:

build-essential libjpeg62-dev zlib1g-dev libpng libpng12-dev libgtk1.2-dev libgtk2.0-dev

(not sure about libgtk2.0-dev, if it is needed...)

(not sure is I need libpng, perhaps libpng12-dev would be enough...)
Then I executed:
make so
make soinstall

Now I have to think about fonts. I just copied from the system:

mkdir /home/andrei/usr/share/ghostscript/fonts
cp -a /usr/share/fonts/type1 /home/andrei/usr/share/ghostscript/fonts/

Then I installed it, and run it. In Options -> Advanced Configure
selected Ghostscript Shared Object:
/home/andrei/usr/lib/libgs.so.8
and included the path:
/home/andrei/usr/share/ghostscript/fonts/type1/gsfonts/
Then it worked, except for resizing lead to a crush complaining about
the unknown paper size a4. I corrected this by going
to Options -> Advanced Configure and entering into Ghostscript Options:
-sPAPERSIZE=letter
This apparently solved the problem...

Andrei.
andrei_m is offline   Reply With Quote
阅读(1390) | 评论(0) | 转发(0) |
0

上一篇:delphi面板多行显示

下一篇:screen用法

给主人留下些什么吧!~~