Software-Installation

從原始碼安裝 GS 時遇到問題

  • May 5, 2022

我正在嘗試從原始碼安裝 Ghostscript 9.23,但遇到了一些我不熟悉的錯誤。我正在使用 CentOS。

$ cat /proc/version
Linux version 2.6.9-67.ELsmp (brewbuilder@ls20-bc1-14.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)) #1 SMP Wed Nov 7 13:58:04 EST 2007

./configure我執行make並收到以下錯誤後…

./lcms2art/include/lcms2art.h:146:10: warning: "ULLONG_MAX" is not defined
./lcms2art/include/lcms2art.h:153:10: warning: "LLONG_MAX" is not defined
./lcms2art/src/cmsplugin.c: In function `_cmsReadFloat32Number':
./lcms2art/src/cmsplugin.c:195: warning: implicit declaration of function `fpclassify'
./lcms2art/src/cmsplugin.c:195: error: `FP_ZERO' undeclared (first use in this function)
./lcms2art/src/cmsplugin.c:195: error: (Each undeclared identifier is reported only once
./lcms2art/src/cmsplugin.c:195: error: for each function it appears in.)
./lcms2art/src/cmsplugin.c:195: error: `FP_NORMAL' undeclared (first use in this function)
make: *** [obj/cmsplugin.o] Error 1

這意味著什麼?我如何解決它?

為了讓編譯器啟動math.h,我在完成後添加到-std=c99mainLCMS2_CFLAGS中:Makefile``configure

LCMS2_CFLAGS=-DSHARE_LCMS=$(SHARE_LCMS) -std=c99

引用自:https://unix.stackexchange.com/questions/461646