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

関連情報