当我尝试安装 pidgin-screenshot 时sudo ./configure --prefix=/usr
出现此错误:
checking whether libcurl is usable... no
configure: error:
To compile this plugin *with* upload support, you must have :
- libcurl >= 7.19.1 (no) and glib>=2.14.0 (not checked).
但我都有, libcurl >= 7.19.1
而且glib>=2.14.0
可用
[msingh@centos pidgin-sendscreenshot-0.8]$ sudo yum list installed libcurl glib2
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* elrepo: mirrors.coreix.net
* epel: epel.mirror.angkasa.id
* extras: centos.excellmedia.net
* ius: syd.mirror.rackspace.com
* nux-dextop: mirror.li.nux.ro
* updates: centos.excellmedia.net
Installed Packages
glib2.i686 2.54.2-2.el7 @base
glib2.x86_64 2.54.2-2.el7 @anaconda
libcurl.x86_64 7.29.0-46.el7
[msingh@centos pidgin-sendscreenshot-0.8]$ rpm -ql libcurl | grep /usr/lib64
/usr/lib64/libcurl.so.4
/usr/lib64/libcurl.so.4.3.0
[msingh@centos pidgin-sendscreenshot-0.8]$ rpm -ql glib2 | grep /usr/lib64
/usr/lib64/gio
/usr/lib64/gio/modules
/usr/lib64/gio/modules/giomodule.cache
/usr/lib64/libgio-2.0.so.0
/usr/lib64/libgio-2.0.so.0.5400.2
/usr/lib64/libglib-2.0.so.0
/usr/lib64/libglib-2.0.so.0.5400.2
/usr/lib64/libgmodule-2.0.so.0
/usr/lib64/libgmodule-2.0.so.0.5400.2
/usr/lib64/libgobject-2.0.so.0
/usr/lib64/libgobject-2.0.so.0.5400.2
/usr/lib64/libgthread-2.0.so.0
/usr/lib64/libgthread-2.0.so.0.5400.2
[msingh@centos pidgin-sendscreenshot-0.8]$
我相信它是在寻找内部/usr/lib
而不是内部/usr/lib64
。如何确保安装命令在目录中查找/usr/lib64
所需的库而不是/usr/lib
答案1
问题是您没有安装相应的devel
软件包,其中包含编译软件所需的头文件和其他文件。
您应该安装这些软件包,例如libcurl-devel
和glib2-devel
。您可能还会发现您还需要其他软件包。