Debian
安裝 32 位和 64 位版本的 libgoogle-perftools-dev
我在 Debian Stretch 上,需要google-perftools來分析我的一些程序。我的機器是 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]
各種包在它們的控製文件
google-perftools
中沒有必要的Multi-Arch:
聲明,所以不,不可能並行安裝和包(沒有強制安裝它們,這會引起很多抱怨並阻止安裝或升級任何其他包)。i386``amd64``apt
您可能想要送出一個錯誤,要求啟用此功能。為此,請執行
reportbug libgoogle-perftools-dev
並按照提示操作。請參閱如何在 64 位 Debian/Ubuntu 上執行 32 位程序?有關在 64 位系統上執行 32 位程序的其他方法(如Gilles所建議的)。