ghostscript-9.52

Ghostscript の概要

Ghostscript は、PostScrit データに対する万能なプロセッサーであり、PostScript をさまざまに異なる書式に変換する機能を提供します。 これは cups の印刷機能の一部として必須のものです。

本パッケージは LFS-9.1 において正しくビルドでき動作することが確認されています。

パッケージ情報

追加のダウンロード

If you wish, you can download additional fonts.

共有フォント

その他のフォント

Ghostscript の依存パッケージ

推奨

任意

Cairo-1.17.2+f93fc72c03e, GTK+-3.24.21, libidn-1.35, libpaper-1.1.24+nmu5, X ウィンドウシステム

ユーザー情報: http://wiki.linuxfromscratch.org/blfs/wiki/gs

Ghostscript のインストール

[注記]

注記

The Ghostscript build system is not user-friendly. In order to use system copies of various graphics libraries, you must do it using unconventional methods.

Ghostscript includes (old) copies of several libraries. Some of these seem to have been patched to fix known vulnerabilities, but others of these copies are less-well maintained. To ensure that any future fixes are applied throughout the whole system, it is recommended that you first install the released versions of these libraries and then configure Ghostscript to link to them.

If you have installed the recommended dependencies on your system, remove the copies of freetype, lcms2, libjpeg, libpng, and openjpeg:

rm -rf freetype lcms2mt jpeg libpng openjpeg

Compile Ghostscript:

rm -rf zlib &&

./configure --prefix=/usr           \
            --disable-compile-inits \
            --enable-dynamic        \
            --with-system-libtiff   &&
make
[注記]

注記

The shared library depends on GTK+-3.24.21. It is only used by external programs like asymptote-2.65, dvisvgm-2.9.1, ImageMagick-7.0.9-23, and texlive-20200406.

To compile the shared library libgs.so, run the following additional command as an unprivileged user:

make so

This package does not come with a test suite. A set of example files may be used for testing, but it is only possible after installation of the package.

root ユーザーになって以下を実行します。

make install

If you want the shared library too:

make soinstall &&
install -v -m644 base/*.h /usr/include/ghostscript &&
ln -sfvn ghostscript /usr/include/ps

Now make the documentation accessible from the normal place:

mv -v /usr/share/doc/ghostscript/9.52 /usr/share/doc/ghostscript-9.52  &&
rm -rfv /usr/share/doc/ghostscript &&
cp -r examples/ /usr/share/ghostscript/9.52/

If you have downloaded the fonts, unpack them to /usr/share/ghostscript and ensure the ownerships of the files are root: root.

tar -xvf ../ghostscript-fonts-std-8.11.tar.gz -C /usr/share/ghostscript --no-same-owner &&
tar -xvf ../gnu-gs-fonts-other-6.0.tar.gz     -C /usr/share/ghostscript --no-same-owner &&
fc-cache -v /usr/share/ghostscript/fonts/

You can now test the rendering of various postscript and pdf files from the /usr/share/ghostscript/9.52/examples , for example (you need an X window system display):

gs -q -dBATCH /usr/share/ghostscript/9.52/examples/tiger.eps

コマンド説明

rm -rf zlib : zlib was installed as part of LFS.

--disable-compile-inits: This option makes gs and libgs.so slightly smaller.

--with-system-libtiff: Remove this option if you've not installed LibTIFF-4.1.0.

install -v -m644 base/*.h... : Some packages (ImageMagick is one) need the Ghostscript interface headers in place to link to the shared library. These commands install the headers.

ln -sfvn ghostscript /usr/include/ps: Some packages expect to find the interface headers in an alternate location.

mv -v /usr/share/doc/ghostscript/9.52 /usr/share/doc/ghostscript-9.52: This moves the documentation where it is expected to be found.

--disable-cups: this option will save a tiny amount of space by not linking gs and libgs.so to the Cups-2.3.3 libraries if you have installed those.

パッケージ構成

インストールプログラム: dvipdf, eps2eps, gs, gsbj, gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx (from soinstall), lprsetup.sh, pdf2dsc, pdf2ps, pf2afm, pfbtopfa, pphs, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, unix-lpr.sh
インストールライブラリ: libgs.so, /usr/lib/ghostscript/9.52/X11.so
インストールディレクトリ: /usr/include/ghostscript, /usr/lib/ghostscript, /usr/share/ghostscript, /usr/share/doc/ghostscript-9.52

概略説明

gs

is an interpreter for Adobe Systems' PostScript(tm) and Portable Document Format (PDF).

libgs.so

provides Ghostscript functionality to other programs, such as GSView, ImageMagick, and libspectre.

Ghostscript provides many different scripts used to convert PostScript, PDF, and other formats. Please refer to the HTML documentation or the man pages for information about the capabilities provided.

最終更新日: 2020-04-14 14:31:25 +0900