2012-06-20 47 views
0

我想在fedora2機器上安裝gnuplot4.6.tar.gz。我做了以下內容: 焦油-xvzf gnuplot4.6.tar.gz CD的gnuplot 4.6.0 的./configure 使 使安裝gnuplot安裝錯誤undefined參考

但是,運行 '使' 提供了以下錯誤: ./ term.o(.text + 0x200ae):../ term/gd.trm:731:undefined reference to gdFontGetMediu mBold' term.o(.text+0x200b5):../term/gd.trm:738: undefined reference to gdFontGetLarge' term.o(.text + term)/ gd.trm:717:undefined reference to gdFontGetTiny' term.o(.text+0x200a7):../term/gd.trm:724: undefined reference to gdFontGetSmall' term.o 0x200bc):../ term/gd.trm:745:undefined reference to gdFontGetGiant ' term.o(.text+0x21fca): In function PNG_set_font': ../term/gd.trm:1840:undefined reference to gdFontGetTiny' term.o(.text+0x21fd9):../term/gd.trm:1838: undefined reference to gdFontGetGian t' term.o(.t ext + 0x21fe0):../ term/gd.trm:1836:undefined reference to gdFontGetLarg e' term.o(.text+0x21fe7):../term/gd.trm:1834: undefined reference to gdFontGetMedi umBold' term.o(.text + 0x21fee):../ term/gd.trm:1832:undefined reference to 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 「 化妝:* [全部]錯誤2

目前,該機已經GNUPLOT 3.7 有它任何與機器的架構?

執行cat/proc內/ cpuinfo給出以下輸出: 執行cat/proc內/ cpuinfo 處理器:0 VENDOR_ID:GenuineIntel CPU家族:15 模型:2 模型名稱:Intel(R)賽揚(R)CPU 2.00GHz 步進:7 CPU兆赫:1999.412 緩存大小:128 KB fdiv_bug:無 hlt_bug:無 f00f_bug:無 coma_bug:無 FPU:是 fpu_exception:是 CPUID級別:2 WP:是 標誌:FPU VME德PSE TSC MSR,PAE MCE CX8 APIC MTRR PGE MCA CMOV拍拍PSE36 CLFLUSH DTS ACPI MMX FXSR SSE SSE2 SS HT TM PBE CID bogomips:3956.73

+0

我不能肯定地說,但它看起來像你可能有一個過時的版本庫gnuplot依賴。你安裝了什麼版本的libgd? – andyras

+0

是的,這裏的問題肯定是libgd。如果你不關心這些終端,你可以沒有它。 ('gd'提供''gif','png'和'jpg'終端),但也有一個'pngcairo'終端,在我看來,終端優於'png'終端,這使得終端的gd終端不太重要... – mgilson

回答

0

我評論src中的以下行/term.h。這解決了這個問題,並安裝了gnuplot 4.6。

#if defined(HAVE_GD_PNG) || defined(HAVE_GD_JPEG) || defined(HAVE_GD_GIF) 
#include "gd.trm" 
#endif