安装之前准备好源码包,如果电脑可以联网,直接输入指令网上下载安装,多省事。在安装源码包时提示错误:
No package 'xproto' found
Consider adjusting the PKG_CONFIG_PATH environmevariable if you installed software in a non-standardprefix.
Alternatively, you may set the environmentvariables X_CFLAGS and X_LIBS to avoid the need to callpkg-config.
See the pkg-config man page for moredetails.
系统提示你没有发现xproto这个包,最快最直接解决问题的办法就是系统提示缺什么你补什么。网上下载一个安装包,百度就有xproto-7.0.13.tar.gz
下面就是安装过程了,Linux下tar.gz的安装跟其他类型文件安装有点区别,比如rmp,deb,tar.bz2,apt及bin文件的安装,这里只说tar.gz类型。找到xproto-7.0.13.tar.gz,进入终端,
sudo su 切换超级用户免得麻烦,
cd /mnt/hgfs/share 进入share文件夹
<