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
错误二:
configure:error:
Youmusthavelibxml2>=2.6.0developmentheadersinstalledtobuild.
解决:
sudoapt-getinstalllibxml2-dev
错误三:
configure:error:
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
configure:error:
YoumusthavetheGLib2.0developmentheadersinstalledtobuild.
根据错误提示,用新得立搜索GLib2.0或者用命令
#sudoapt-cachesearchGLib2.0
发现有个包libglib2.0-dev-DevelopmentfilesfortheGLiblibrary。
选择安装;
#sudoapt-getinstalllibglib2.0-dev
这里原文为libglib2.0-0-dev,似乎有误。
#./configure#又出现错误
checkingforX...no
checkingforGTK...no
no
configure:error:
YoumusthavetheGTK+2.0developmentheadersinstalledtocompilePidgin.
IfyouonlywanttobuildFinchthenspecify--disable-gtkuiwhenrunningconfigure.
用如上同样的方法查找到缺少的包并安装
sudoapt-getinstalllibgtkmm2.0-dev
./configure出现错误
checkingforLIBXML...no
no
configure:error:
Youmusthavelibxml2>=2.6.0developmentheadersinstalledtobuild.
于是安装
sudoapt-getinstalllibxml2-dev
经过上面包的安装,在次./configure没有再出现错误,这次成功的生成了makefile文件。
然后执行:
#make
#makeinstall
成功安装软件。
如果在./configure中还出现问题,那么要找到问题所在,安装缺失的包即可。
在配置过程中,config.log文件是很有帮助的。我们可以在这里面找出错误的根源,从而寻找应对措施