编译安装libXpm在configure时找不到XPM支持,去哪里下载?
本帖最后由 jaryyy2000 于 2015-09-10 16:12 编辑我在Ubuntu中编译安装libXpm源码,在configure时提示错误,找不到Xpm,错误提示如下:
./configure: line 17558: --print-errors: command not found
checking whether make supports nested variables... (cached) yes
checking for strlcat... no
checking for XPM... configure: error: in `/root/libxpm/libXpm-3.5.11':
configure: error: The pkg-config script could not be found or is too old.Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables XPM_CFLAGS
and XPM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <>.
See `config.log' for more details
去哪里找XPM和SXPM的软件包下载? 回复 1# jaryyy2000
为啥不用包管理器,而要自己编译? 回复 2# MMMIX
恩,我在学习这方面的内容
回复 3# jaryyy2000
那先学会搜索吧 回复 4# MMMIX
我在尝试搜,但搜来搜去都不知道怎么弄,能给点提示或者什么的吗?拜托了
回复 5# jaryyy2000
我猜你根本就没有认真看 configure 给出的错误信息。那么,先从这个开始吧。 回复 6# MMMIX
我看了啊:cry: 它让我把 XPM_CFLAGS XPM_LIBS添加到环境变量里,但现在我系统里没有xpm相关的lib和.h文件
前面出错在checking for XPM... ,然后就no了 回复 7# jaryyy2000
configure 关于 pkg-config 的报错你是直接就无视了。这也叫仔细看了错误信息? 回复 8# MMMIX
你冤枉我了:cry: 当然看到了,上面说pkg-config找不到xpm的相关定义,我没有安装xpm的包,肯定没有 某某某.pc 文件,pkg-config就找不到了 回复 8# MMMIX
libXpm的configure --help里面有两个依赖的参数,一个是xpm的include和lib,还有一个sxpm的include和lib。
我现在的系统是很干净的,没有安装过着两个包,我用apt-get install xpm安装,apt-get也找不到xpm的相关包信息。
我搜来搜去搜不到那两个包到底是什么,只好问了