我在 Debian Stretch 上并且需要谷歌性能工具来分析我的一些程序。我的机器是64位的;我为 64 位和 32 位构建了程序(使用gcc -m32
)。我希望能够对两者进行分析。我已经libgoogle-perftools-dev
安装了。当我现在尝试添加 x86 变体时,apt
想要删除 x64 变体(见下文)。是否可以将这两个变体并排安装?
$ sudo apt install libgoogle-perftools-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libboost-chrono1.62.0 libboost-program-options1.62.0 libboost-regex1.62.0 libboost-thread1.62.0 libstemmer0d
libunwind-dev libunwind8 libunwind8-dev libyaml-cpp0.5v5 mongo-tools
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libgoogle-perftools4:i386 libstdc++6:i386 libtcmalloc-minimal4:i386
The following packages will be REMOVED:
google-perftools libgoogle-perftools-dev libgoogle-perftools4 libtcmalloc-minimal4 mongodb mongodb-clients
mongodb-server
The following NEW packages will be installed:
libgoogle-perftools-dev:i386 libgoogle-perftools4:i386 libstdc++6:i386 libtcmalloc-minimal4:i386
0 upgraded, 4 newly installed, 7 to remove and 0 not upgraded.
Need to get 1,247 kB of archives.
After this operation, 115 MB disk space will be freed.
Do you want to continue? [Y/n]
答案1
各种包中google-perftools
没有必要的声明Multi-Arch:
他们的控制文件,所以不,不可能并行安装i386
和amd64
软件包(除非强制安装它们,这会导致apt
很多抱怨并阻止安装或升级任何其他软件包)。
您可能想要提交一个错误,要求启用此功能。为此,请运行reportbug libgoogle-perftools-dev
并按照提示操作。
看如何在 64 位 Debian/Ubuntu 上运行 32 位程序?有关在 64 位系统上运行 32 位程序的其他方法(如吉尔斯)。