zhyiwww
          用平實的筆,記錄編程路上的點點滴滴………
          posts - 536,comments - 394,trackbacks - 0
          [1]下載 GD
          ???? wget http://www.libgd.org/releases/gd-2.0.35.tar.gz
          [2]解壓
          ???? tar vxfz gd-2.0.35
          [3]./configure --prefix=/opt/gd
          [4]make
          [5]make install

          第[4]步出現的問題:
          ?/bin/sh ./libtool --mode=link gcc -g -O2 -o gdparttopng gdparttopng.o
          ?./libgd.la -lm
          ?gcc -g -O2 -o .libs/gdparttopng gdparttopng.o ./.libs/libgd.so -lm
          ?-Wl,--rpath -Wl,/usr/local/lib
          ?gdparttopng.o(.text+0xac): In function `main':
          ?/root/gd-2.0.21/gdparttopng.c:42: undefined reference to? `gdImageCreateFromGd2Part'
          ?collect2: ld returned 1 exit status
          ?make[2]: *** [gdparttopng] Error 1
          ?make[2]: Leaving directory `/root/gd-2.0.21'
          ?make[1]: *** [all-recursive] Error 1
          ?make[1]: Leaving directory `/root/gd-2.0.21'
          ?make: *** [all] Error 2
          ?解決的方法:
          ???? aptitude install libgd2-xpm libgd2-xpm-dev
          ?安裝后再編譯,就可以了。




          |----------------------------------------------------------------------------------------|
                                     版權聲明  版權所有 @zhyiwww
                      引用請注明來源 http://www.aygfsteel.com/zhyiwww   
          |----------------------------------------------------------------------------------------|
          posted on 2009-04-03 13:38 zhyiwww 閱讀(1225) 評論(0)  編輯  收藏 所屬分類: linuxgisdebian
          主站蜘蛛池模板: 松阳县| 新营市| 洛隆县| 额济纳旗| 思南县| 修武县| 紫阳县| 台南县| 霸州市| 南川市| 洛川县| 望城县| 安顺市| 马关县| 柳州市| 黑水县| 河南省| 城口县| 邵东县| 资溪县| 孟连| 温泉县| 信宜市| 镇江市| 疏勒县| 兰溪市| 任丘市| 潜江市| 盘山县| 项城市| 维西| 江都市| 社旗县| 大竹县| 军事| 南开区| 洮南市| 五大连池市| 和龙市| 南城县| 鞍山市|