![Ubuntu 12.04 でのポリグロットのインストール](https://rvso.com/image/1126800/Ubuntu%2012.04%20%E3%81%A7%E3%81%AE%E3%83%9D%E3%83%AA%E3%82%B0%E3%83%AD%E3%83%83%E3%83%88%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB.png)
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