系統(tǒng)之家 - 系統(tǒng)光盤下載網站!

當前位置:系統(tǒng)之家 > 系統(tǒng)教程 > Ubuntu安裝libgdiplus報錯

Ubuntu安裝libgdiplus報錯怎么辦?

時間:2015-01-13 16:07:12 作者:qipeng 來源:系統(tǒng)之家 1. 掃描二維碼隨時看資訊 2. 請使用手機瀏覽器訪問: https://m.xitongzhijia.net/xtjc/20150113/34707.html 手機查看 評論

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

 Ubuntu安裝libgdiplus報錯怎么辦?

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

  首先下載libgdiplus2.10.9安裝包

  進入目錄開始configure編譯

  。/configure --prefix=/usrmake

  將libgdiplus安裝在/usr目錄下

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

  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

  這個錯誤就是說創(chuàng)建/usr/X11/include/freetype鏈接失敗了,因為找不到freetype

  我們打開/usr/include看有沒有freetype這個目錄,沒有吧,但是我們找到了freetype2,這樣我們做個鏈接吧

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

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

  /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時出錯的解決方法,如果你在安裝的時候系統(tǒng)報錯了,可以嘗試本文介紹的方法進行解決。

標簽 Ubuntu

發(fā)表評論

0

沒有更多評論了

評論就這些咯,讓大家也知道你的獨特見解

立即評論

以上留言僅代表用戶個人觀點,不代表系統(tǒng)之家立場

其他版本軟件

熱門教程

人氣教程排行

Linux系統(tǒng)推薦

掃碼關注
掃碼關注

掃碼關注 官方交流群 軟件收錄