系統(tǒng)之家 - 系統(tǒng)光盤(pán)下載網(wǎng)站!

當(dāng)前位置:系統(tǒng)之家 > 系統(tǒng)教程 > Ubuntu安裝libgdiplus報(bào)錯(cuò)

Ubuntu安裝libgdiplus報(bào)錯(cuò)怎么辦?

時(shí)間:2015-01-13 16:07:12 作者:qipeng 來(lái)源:系統(tǒng)之家 1. 掃描二維碼隨時(shí)看資訊 2. 請(qǐng)使用手機(jī)瀏覽器訪(fǎng)問(wèn): https://m.xitongzhijia.net/xtjc/20150113/34707.html 手機(jī)查看 評(píng)論

  Linux下libgdiplus是一個(gè)Mone庫(kù),可用于顯示web頁(yè)面的顏色,可是不少人在Ubuntu系統(tǒng)中安裝libgdiplus的時(shí)候提示錯(cuò)誤,導(dǎo)致安裝無(wú)法完成,遇到這個(gè)問(wèn)題該怎么辦么?下面小編就給大家介紹下Ubuntu安裝libgdiplus失敗的解決方法。

 Ubuntu安裝libgdiplus報(bào)錯(cuò)怎么辦?

  在Ubuntu 14.04 LTS 64位系統(tǒng)中安裝libgdiplus2.10.9的時(shí)候出現(xiàn)了錯(cuò)誤。

  首先下載libgdiplus2.10.9安裝包

  進(jìn)入目錄開(kāi)始configure編譯

  。/configure --prefix=/usrmake

  將libgdiplus安裝在/usr目錄下

  發(fā)現(xiàn)在該操作系統(tǒng)報(bào)錯(cuò)了:如下

  gdiplus-private.h:33:31: fatal error: freetype/tttables.h: No such file or directory #include ^compilation terminated.make[2]: *** [adjustablearrowcap.lo] Error 1make[2]: Leaving directory `/root/libgdiplus-2.10/src‘make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/libgdiplus-2.10’make: *** [all] Error 2root@ubuntu:~/libgdiplus-2.10# sudo ln -s /usr/X11/include/freetype2/freetype/ /usr/X11/include/freetypeln: failed to create symbolic link ‘/usr/X11/include/freetype’: No such file or directory

  這個(gè)錯(cuò)誤就是說(shuō)創(chuàng)建/usr/X11/include/freetype鏈接失敗了,因?yàn)檎也坏絝reetype

  我們打開(kāi)/usr/include看有沒(méi)有freetype這個(gè)目錄,沒(méi)有吧,但是我們找到了freetype2,這樣我們做個(gè)鏈接吧

  ln -s /usr/include/freetype2 /usr/include/freetype

  然后繼續(xù)make發(fā)現(xiàn)錯(cuò)誤如下:

  /usr/lib64/libglib-2.0.so.0: could not read symbols: Invalid operationcollect2: error: ld returned 1 exit statusmake[2]: *** [testgdi] Error 1make[2]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/tests‘make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/local/src/libgdiplus-2.10.9’make: *** [all] Error 2

  解決方法:

  先執(zhí)行 。/configure 命令, 然后編輯 test/Makefile 文件;將 130 行的 LIBS = -lpthread -lfontconfig 改為 LIBS = -lpthread -lfontconfig -lglib-2.0 -lX11;再次執(zhí)行 make 命令即可。

  再次make,是不是很快成功了,ok,make install吧

  上面就是Ubuntu安裝libgdiplus時(shí)出錯(cuò)的解決方法,如果你在安裝的時(shí)候系統(tǒng)報(bào)錯(cuò)了,可以嘗試本文介紹的方法進(jìn)行解決。

標(biāo)簽 Ubuntu

發(fā)表評(píng)論

0

沒(méi)有更多評(píng)論了

評(píng)論就這些咯,讓大家也知道你的獨(dú)特見(jiàn)解

立即評(píng)論

以上留言?xún)H代表用戶(hù)個(gè)人觀(guān)點(diǎn),不代表系統(tǒng)之家立場(chǎng)

其他版本軟件

熱門(mén)教程

人氣教程排行

Linux系統(tǒng)推薦

官方交流群 軟件收錄