如何安装build-essential:i386在64位系统上编译32位可执行文件?

Modified on: Sat, 09 Jun 2018 15:23:23 +0800

apt-get install build-essential:i386根本不起作用:

The following packages have unmet dependencies:
 build-essential:i386 : Depends: gcc:i386 (>= 4:4.4.3) but it is not going to be installed
                        Depends: g++:i386 (>= 4:4.4.3) but it is not going to be installed

请注意标签。答案
在64位上编译32位二进制文​​件时遇到问题机
 已经过时了。
此外,没有./configure脚本可以使用编译64位系统上的32位回答。

更多详情

我正在努力将DFHack与quietust分支联系起来:https://github.com/quietust/dfhack /

apt-get install gcc-multilib g++-multilib删除了

CMake Error at depends/protobuf/CMakeLists.txt:60 (MESSAGE):
  Could not find a working hash map implementation.  Please install GCC >=
  4.4, and all necessary 32-bit C++ development libraries.

消息,但

-- Could NOT find Threads (missing:  Threads_FOUND) 
Can't locate XML/LibXML.pm in @INC (you may need to install the XML::LibXML module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at xml/list.pl line 6.
BEGIN failed--compilation aborted at xml/list.pl line 6.

仍在那里。我是否必须手动寻找所有i386 build-essential依赖项?

作者:Community,int_ua

最佳答案

是的,对于尚未在Ubuntu中打包的任何内容,或者在您添加的PPA中,您必须手动安装编译它所需的所有依赖项。对于已经打包在Ubuntu中的任何内容,您可以运行apt-get build-dep $package,它将安装该包的构建依赖项,但是,如果存在任何其他或更改的依赖项在Ubuntu中构建的版本中,您仍然需要手动安装这些附加或更改的依赖项。


相关问答

添加新评论