2014-01-19 27 views
0
[email protected]:/home/chandrasekar/gftp# ./autogen.sh --prefix=$(pwd) 
gettextize -c --intl -f 
gettextize: warning: the option '--intl' is deprecated and will be removed 

configure.in:89: warning: macro `AM_PATH_GLIB' not found in library 
configure.in:205: warning: macro `AM_PATH_GTK' not found in library 

autoconf 
configure.in:89: error: possibly undefined macro: AM_PATH_GLIB 
     If this token and others are legitimate, please use m4_pattern_allow. 
     See the Autoconf documentation. 
configure.in:205: error: possibly undefined macro: AM_PATH_GTK 

./configure: line 7229: syntax error near unexpected token `1.2.3,' 
./configure: line 7229: ` AM_PATH_GLIB(1.2.3, , as_fn_error $? "gFTP needs GLIB 1.2.3 or higher" "$LINENO" 5)' 

谷歌搜索後發現需要安裝glibc和gtk包。所以試圖安裝,但已經安裝了軟件包。因此運行aclocal來生成* .m4,但仍然無法構建從GIT存儲庫下載的GNOME gftp應用程序。請幫助解決該問題,以便我可以構建並開始貢獻GNOME gftp。無法從GNOME gftp應用程序中的構建錯誤中恢復

回答

0

Gftp當想要編譯時,它正在尋找兩個宏AM_PATH_GLIBAM_PATH_GTK。不幸的是,這些都不可用。在我的系統(Debian測試)中,我發現在/usr/share/aclocal中存在兩個宏AM_PATH_GLIB_2_0AM_PATH_GTK_2_0。現在

,與AM_PATH_GLIB_2_0AM_PATH_GTKAM_PATH_GTK_2_0configure.ingftp源更換AM_PATH_GLIB使其闖過這些問題。

我也收到一個錯誤,表示支持自動de-ANSI-fication支持已被刪除。我通過在configure.in中註釋掉AM_C_PROTOTYPES來解決這個問題。隨着這些變化gftp爲我成功編譯。