首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pkg-config --版本始终为0.26

pkg-config --版本始终为0.26
EN

Stack Overflow用户
提问于 2013-04-22 14:37:00
回答 1查看 726关注 0票数 1

所以,我读到了pkg-config (我想Debian默认包含了它,我正在使用它)。但每次我尝试查找某个版本时,结果都是0.26。

代码语言:javascript
复制
santeyio@Amadeus:/$ pkg-config --version python
0.26
santeyio@Amadeus:/$ pkg-config --version libre-office
0.26
santeyio@Amadeus:/$ pkg-config --version alsdkfj
0.26
santeyio@Amadeus:/$ pkg-config --version firefox
0.26
santeyio@Amadeus:/$ 

因此,我尝试了sudo apt-get删除它,然后再次安装它。但我得到的结果是一样的。我知道我漏掉了一些愚蠢的东西。有谁能给我指个方向吗?

这是我重新安装的输出,如果有用的话...

代码语言:javascript
复制
santeyio@Amadeus:/$ sudo apt-get install pkg-config
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
calligra-l10n-engb cdparanoia comerr-dev k3b k3b-data k3b-i18n kdevelop-php-docs-l10n
kdevelop-php-l10n krb5-multidev language-pack-kde-en libasprintf0c2:i386 libcroco3:i386
libgcrypt11-dev libgnutls-dev libgnutls-openssl27 libgnutlsxx27 libgomp1:i386 libgpg-error-dev
libgssrpc4 libk3b6 libkadm5clnt-mit8 libkadm5srv-mit8 libkcddb4 libkdb5-6 libkrb5-dev libldap2-dev
libp11-kit-dev librtmp-dev libtasn1-3-dev linux-headers-3.5.0-17 postgresql-client-9.2
postgresql-common python-xkit screen-resolution-extra
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
pkg-config
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.3 kB of archives.
After this operation, 136 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ quantal/main pkg-config amd64 0.26-1ubuntu2 [41.3 kB]
Fetched 41.3 kB in 0s (66.2 kB/s)   
Selecting previously unselected package pkg-config.
(Reading database ... 247983 files and directories currently installed.)
Unpacking pkg-config (from .../pkg-config_0.26-1ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Setting up pkg-config (0.26-1ubuntu2) ...
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-04-22 14:54:16

使用--modversion

代码语言:javascript
复制
$ pkg-config --modversion python
2.7

pkg-config是在针对库进行编译时使用的--如果您试图检查包的版本,请使用dpkg -s

代码语言:javascript
复制
$ dpkg -s firefox
Package: firefox
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 48531
Maintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>
Architecture: amd64
Version: 17.0.1+build1-0ubuntu0.12.04.1

apt-cache policy

代码语言:javascript
复制
$ apt-cache policy firefox
firefox:
  Installed: 17.0.1+build1-0ubuntu0.12.04.1
  Candidate: 20.0+build1-0ubuntu0.12.04.3
...
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16140847

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档