0

我正在尝试在 fedora2 机器上安装 gnuplot4.6.tar.gz。我正在执行以下操作: tar -xvzf gnuplot4.6.tar.gz cd gnuplot 4.6.0 ./configure make make install

但是,运行 'make' 会出现以下错误: ./term/gd.trm:717: undefined reference to gdFontGetTiny' term.o(.text+0x200a7):../term/gd.trm:724: undefined reference togdFontGetSmall ' term.o(.text+0x200ae):../term/gd.trm:731: undefined reference to gdFontGetMediu mBold' term.o(.text+0x200b5):../term/gd.trm:738: undefined reference togdFontGetLarge ' term.o(.text+0x200bc):../term/gd.trm:745: undefined reference to gdFontGetGiant ' term.o(.text+0x21fca): In functionPNG_set_font': ../term/gd.trm:1840: undefined reference to gdFontGetTiny' term.o(.text+0x21fd9):../term/gd.trm:1838: undefined reference togdFontGetGian t' term.o( .text+0x21fe0):../term/gd.trm:1836: 未定义引用gdFontGetLarg e' term.o(.text+0x21fe7):../term/gd.trm:1834: undefined reference togdFontGetMedi umBold' term.o(.text+0x21fee):../term/gd.trm:1832: 未定义引用gdFontGetSmal l' collect2: ld returned 1 exit status make[3]: *** [gnuplot] Error 1 make[3]: Leaving directory/home/ sayantika/gnuplot/gnuplot-4.6.0/src' make[2]: * [all-recursive] 错误 1 ​​make[2]: 离开目录/home/sayantika/gnuplot/gnuplot-4.6.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/sayantika/gnuplot/gnuplot-4.6.0' make: * [all ] 错误 2

目前机器有gnuplot 3.7 和机器的架构有关系吗?

cat /proc/cpuinfo 给出以下输出: cat /proc/cpuinfo 处理器:0 vendor_id:GenuineIntel cpu 系列:15 型号:2 型号名称:Intel(R) Celeron(R) CPU 2.00GHz 步进:7 cpu MHz:1999.412 缓存大小:128 KB fdiv_bug:没有 hlt_bug:没有 f00f_bug:没有 coma_bug:没有 fpu:是 fpu_exception:是 cpuid 级别:2 wp:是 标志:fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid bogomips : 3956.73

4

1 回答 1

0

我在 src/term.h 中注释了以下几行。这解决了问题并安装了 gnuplot 4.6。

 #if defined(HAVE_GD_PNG) || defined(HAVE_GD_JPEG) || defined(HAVE_GD_GIF)
 #include "gd.trm"
 #endif
于 2012-06-21T14:46:50.060 回答