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: PNG_set_font への未定義参照gdFontGetGiant ' term.o(.text+0x21fca): In function': ../term/gd.trm:1840: gdFontGetGian への未定義参照gdFontGetTiny' term.o(.text+0x21fd9):../term/gd.trm:1838: undefined reference to' 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]: Leaving directory /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-recursive] ] エラー 2

現在、マシンには gnuplot 3.7 が搭載されています。マシンのアーキテクチャと何か関係がありますか?

cat /proc/cpuinfo の出力は次のとおりです。 cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Celeron(R) CPU 2.00GHz stepping : 7 cpu MHz : 1999.412 cacheサイズ: 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 に答える