2013-07-23 53 views
0

我試圖將pango-1.4.1包安裝到我的Linux機器上(gtk + -2.0 lib的先決條件)。使用的發行版是:構建pango-1.4.1時失敗

CentOS release 5.9 (Final) 
Linux 2.6.18-274.18.1.el5 #1 SMP Thu Feb 9 12:45:52 EST 2012 i686 i686 i386 GNU/Linux 

我沒有root權限在這臺機器上我只是一個簡單的用戶。我試圖從tar.gz和./configure --prefix來安裝這個軟件包,我定義了所需的目標文件夾(所以我對這個目錄具有寫權限),並且在./configure命令之後我嘗試用make來構建pango,但是我收到以下錯誤和警告:

ftxopen.c:23:10: error: #include expects "FILENAME" or <FILENAME> 
ftxopen.c:24:10: error: #include expects "FILENAME" or <FILENAME> 
ftxopen.c:25:10: error: #include expects "FILENAME" or <FILENAME> 
ftxopen.c: In function 'Load_LangSys': 
ftxopen.c:44: warning: implicit declaration of function 'FT_FRAME_ENTER' 
ftxopen.c:47: warning: implicit declaration of function 'FT_GET_USHORT' 
ftxopen.c:51: warning: implicit declaration of function 'FT_FRAME_EXIT' 
ftxopen.c:55: warning: implicit declaration of function 'FT_SET_ERROR' 
ftxopen.c:55: warning: implicit declaration of function 'FT_MEM_ALLOC_ARRAY' 
ftxopen.c:55: error: expected expression before 'FT_UShort' 
ftxopen.c:60: warning: implicit declaration of function 'FT_FREE' 
ftxopen.c:39: warning: unused variable 'memory' 
ftxopen.c: In function 'Load_Script': 
ftxopen.c:95: warning: implicit declaration of function 'FT_STREAM_POS' 
ftxopen.c:107: warning: implicit declaration of function 'FT_STREAM_SEEK' 
ftxopen.c:141: error: expected expression before 'TTO_LangSysRecord' 
ftxopen.c:151: warning: implicit declaration of function 'FT_GET_ULONG' 
ftxopen.c: In function 'Load_ScriptList': 
ftxopen.c:225: error: expected expression before 'TTO_ScriptRecord' 
ftxopen.c: In function 'Load_Feature': 
ftxopen.c:322: error: expected expression before 'FT_UShort' 
ftxopen.c:305: warning: unused variable 'memory' 
ftxopen.c: In function 'Load_FeatureList': 
ftxopen.c:374: error: expected expression before 'TTO_FeatureRecord' 
ftxopen.c:376: error: expected expression before 'FT_UShort' 
ftxopen.c: In function 'Load_Lookup': 
ftxopen.c:611: error: expected expression before 'TTO_SubTable' 
ftxopen.c: In function 'Load_LookupList': 
ftxopen.c:709: error: expected expression before 'TTO_Lookup' 
ftxopen.c:711: error: expected expression before 'FT_UShort' 
ftxopen.c: In function 'Load_Coverage1': 
ftxopen.c:798: error: expected expression before 'FT_UShort' 
ftxopen.c:782: warning: unused variable 'memory' 
ftxopen.c: In function 'Load_Coverage2': 
ftxopen.c:847: error: expected expression before 'TTO_RangeRecord' 
ftxopen.c:831: warning: unused variable 'memory' 
ftxopen.c: In function 'Load_ClassDef1': 
ftxopen.c:1086: error: expected expression before 'FT_UShort' 
ftxopen.c:1059: warning: unused variable 'memory' 
ftxopen.c: In function 'Load_ClassDef2': 
ftxopen.c:1152: error: expected expression before 'TTO_ClassRangeRecord' 
ftxopen.c:1131: warning: unused variable 'memory' 
ftxopen.c: In function 'Load_ClassDefinition': 
ftxopen.c:1206: error: expected expression before 'FT_Bool' 
ftxopen.c:1203: warning: unused variable 'memory' 
ftxopen.c: In function 'Load_EmptyClassDefinition': 
ftxopen.c:1251: error: expected expression before 'FT_Bool' 
ftxopen.c:1257: error: expected expression before 'FT_UShort' 
ftxopen.c:1248: warning: unused variable 'memory' 
ftxopen.c: In function 'Load_Device': 
ftxopen.c:1433: error: expected expression before 'FT_UShort' 
ftxopen.c:1408: warning: unused variable 'memory' 

我覺得我沒有留下任何依賴關係,這裏是與版本號安裝的先決條件:

glib-2.13.3 
atk-1.0.3 
freetype2-9.16.3 (aka freetype-2.5.3) 

這將非常重要的是能夠安裝攀高。任何人都可以幫忙嗎?

回答

0

它看起來像我在ftxopen.c中列出的行中有不正確格式的#includes。修復那些可能大部分或所有其他報告的編譯錯誤將消失。

+0

在#include指令後面有一個宏,該值在freetype的internal.h文件中定義。此文件未安裝,它只存在於freetype的安裝文件夾下。不過,我試圖從這裏包括這個標題,但我收到相同的消息... – zsidanyi

+0

好吧。使用yum/rpm安裝你的依賴關係嗎?如果是這樣,是否安裝了依賴關係的開發文件?嘗試'百勝搜索freetype-devel'。你可能會發現pango依賴的其他庫也是如此。你必須要求你的系統管理員安裝這些。 –