在 Ubuntu 12.04 中安装多语言环境

在 Ubuntu 12.04 中安装多语言环境

我正在尝试安装工具 Polyglot。安装文件运行时出现错误。我安装了所有必需的软件包。错误是:

Running pycld2-0.31/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mZGHbc/pycld2-0.31/egg-dist-tmp-TKDn8z
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
In file included from /usr/include/stdio.h:28:0,
                 from cld2/internal/scoreonescriptspan.h:76,
                 from cld2/internal/cldutil.h:25,
                 from cld2/internal/cldutil.cc:20:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

答案1

错误是;

/usr/include/features.h:324:26:致命错误:bits/predefs.h:没有此文件或目录

这主要表明您正在 64 位机器上构建 32 位,因此要解决这个问题

尝试安装该包gcc-multilib

sudo apt-get install gcc-multilib

如果你已经拥有它或者这不起作用然后尝试安装

sudo apt-get install libc6-dev-i386

相关内容