Linux下./configure錯誤詳解
說明:
sudoapt-getinstallpackage-name更新你指定的軟體包
sudoapt-getupdate擷取更新清單
sudoapt-getdist-upgrade開始更新
./configure的問題
錯誤:Ccompilercannotcreateexecutables
原因:
解決:sudoapt-getgcclibc6-dev
錯誤:checkingforCcompilerdefaultoutput...configure:error:Ccompilercannotcreateexecutables
解決:sudoapt-getinstalllibc6-dev
錯誤:configure:error:C++preprocessor"/lib/cpp"failssanitycheck
原因:gcc的元件沒裝全
解決:apt-getinstallbuild-essential
錯誤:Can'tfindXincludes.Pleasecheckyourinstallationandaddthecorrectpaths!
原因:沒有X的包含檔案
解決:安裝xlibs-dev即可
錯誤:Qt(>=Qt3.0)(headersandlibraries)notfound.Pleasecheckyourinstallation!
原因:查找提供qt的lib&&headers的軟體包,并安裝之
解決:apt-getinstalllibqt3-headerslibqt3-mt-dev
錯誤:intheprefix,you'vechosen,arenoKDEheadersinstalled.Thiswillfail.
So,checkthispleaseanduseanotherprefix!
原因:installaKDEapplicationinaGnomeenvironment。
解決:whichbasicallymeansitsgoingtowanttoinstallalotofKDEspecificpackagestowork.This'configure:error'
isduetoitexpectingyoutoberunningKDEandagainreferstosome'headers'.
sudoapt-getupdate
sudoapt-getinstallkdelibs4-devkdelibs4c2a
錯誤:./admin/cvs.sh:585:autoconf:notfound
解決:apt-getinstallautoconf
錯誤:***GTK>=2.4.0notinstalled!***
原因:沒裝GTK
解決:apt-getbuild-depgedit
錯誤:hechingforgtk-config...no
checkingforGTK-version=1.2.0...no
***Thegtk-configscriptinstalledbyGTKcouldnotbefound
***IfGTKwasinstalledinPREFIX,makesurePREFIX/binisin
***yourpath,orsettheGTK_CONFIGenviromentvariabletothe
***fullpathtogtk-config.
configure:error:CannotfindGTK:Isgtk-configinpath?
解決:sudoapt-getinstalllibgtk1.2-dev
問題:eclipse中encoding不支援中文
解決:編輯/var/lib/locales/supported.d/local,加一行zh_CN.GBKGBK,執行sudolocale-gen
錯誤:gnome.h:Nosuchfileordirectory
錯誤:Nopackage'libpanelapplet-2.0'found
解決:sudoapt-getinstallgnome-panel
問題:eva不彈出輸入法
解決:sudoapt-getinstallscim-qtimm
問題:Nopackage'gtk+-2.0'found
Nopackage'gtksourceview-1.0'found
Nopackage'libgnomeui-2.0'found
Nopackage'libglade-2.0'found
Nopackage'libgnomeprintui-2.2'found
解決:sudoapt-getinstalllibgtk2.0-devlibgtksourceview-devlibgnomeui-devlibglade2-devlibgnomeprint2.2-dev
問題:Nopackage'libpanelapplet-2.0'found
解決:sudoapt-getinstalllibpanelappletmm-2.6-dev
編譯安裝Pidgin的步驟
1.下載下傳Pidgin的源代碼包pidgin-2.1.1.tar.bz2(官方最新的版本)。
wgethttp://jaist.dl.sourceforge.net/sourceforge/pidgin/pidgin-2.1.1.tar.bz2
2.安裝編譯Pidgin所需的依賴:
sudoapt-getinstalllibgtk2.0-devlibxml2-devgettextlibnss-devlibnspr-dev
3.解壓源代碼包
tarjxvfpidgin-2.1.1.tar.bz2
cdpidgin-2.1.1
4.編譯
./configure(建議使用–help查詢需要用到的參數)
make
sudomakeinstall
如果在./configure這一步出現錯誤
錯誤一:
configure:error:
YoumusthavetheGTK+2.0developmentheadersinstalledtocompilePidgin.
IfyouonlywanttobuildFinchthenspecify–disable-gtkuiwhenrunningconfigure.
解決:
sudoapt-getinstalllibgtk2.0-dev
錯誤二:
Youmusthavelibxml2>=2.6.0developmentheadersinstalledtobuild.
sudoapt-getinstalllibxml2-dev
錯誤三:
Themsgfmtcommandisrequiredtobuildlibpurple.Ifitisinstalledonyoursystem,ensurethatitisinyourpath.Ifitisnot,installGNUgettexttocontinue.
sudoapt-getinstallgettext
如果在使用GTalk或MSN時出現錯誤
錯誤:
SSLLibrary/Libraries………:None(MSNandGoogleTalkwillnotwork
withoutSSL!)
sudoapt-getinstalllibnss-devlibnspr-dev
Ubuntu編譯時找不到Makefile的解決辦法ZDNet軟體頻道更新時間:2007-09-26作者:korn來源:賽迪網
本文關鍵詞:UbuntuProftp
如果是需要編譯的環境,推薦安裝"buildessential"包,
#sudoapt-getinstall"build-essential"
在用./configure,make,makeinstall,方法安裝軟體是,經常會發生發生各種錯誤,而導緻無法生成makefile檔案。現在我把我安裝過程中遇到的問題以及解決辦法寫下來,希望對大家有點幫助。
以我安裝pidgin-2.0.0為例
#./configure出現錯誤:
configure:error:Ccompilercannotcreateexecutables
按照錯誤提示安裝缺少的包
#sudoapt-getinstalllibc6-dev
再次
#./configure
出現錯誤
checkingforGLIB...no
no
YoumusthavetheGLib2.0developmentheadersinstalledtobuild.
根據錯誤提示,用新得立搜尋GLib2.0或者用指令
#sudoapt-cachesearchGLib2.0
發現有個包libglib2.0-dev-DevelopmentfilesfortheGLiblibrary。
選擇安裝;
#sudoapt-getinstalllibglib2.0-dev
這裡原文為libglib2.0-0-dev,似乎有誤。
#./configure#又出現錯誤
checkingforX...no
checkingforGTK...no
IfyouonlywanttobuildFinchthenspecify--disable-gtkuiwhenrunningconfigure.
用如上同樣的方法查找到缺少的包并安裝
sudoapt-getinstalllibgtkmm2.0-dev
./configure出現錯誤
checkingforLIBXML...no
于是安裝
經過上面包的安裝,在次./configure沒有再出現錯誤,這次成功的生成了makefile檔案。
然後執行:
#make
#makeinstall
成功安裝軟體。
如果在./configure中還出現問題,那麼要找到問題所在,安裝缺失的包即可。
在配置過程中,config.log檔案是很有幫助的。我們可以在這裡面找出錯誤的根源,進而尋找應對措施