우분투 12.04에 다중 언어 설치

우분투 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: 치명적인 오류: bit/predefs.h: 해당 파일이나 디렉터리가 없습니다.

이는 주로 64비트 시스템에서 32비트를 구축하여 이를 해결한다는 것을 나타냅니다.

패키지를 설치해 보세요gcc-multilib

sudo apt-get install gcc-multilib

이미 갖고 있거나 작동하지 않는다면 설치해 보세요.

sudo apt-get install libc6-dev-i386

관련 정보