안드로이드(Android) 1.6 NDK 의 리눅스(Linux) 설치 스크립트 오류
Cygwin 으로 작업하는데 한계를 느껴서, 오늘 NDK 개발 환경을 리눅스로 옮기려고 한다. VMWare 위에 올린 Ubuntu 에 리눅스용 Android 1.6 NDK 를 설치하려고 하니 오류 메시지를 인쇄하고는 실패하고 만다. 최종 단계인 build/host-setup.sh 을 실행하는 도중에 일어나는 일인데, 출력되는 메시지는 이렇다.
Checking host development environment.
NDK Root : /home/flowdas/android-ndk-1.6_r1
GNU Make : make (version 3.81)
[: 205: Pass: unexpected operator
[: 205: Pass: unexpected operator
[: 205: Pass: unexpected operator
ERROR: Could not find a valid Nawk or Gawk executable.
Please ensure that either one of them is installed.
Use the --no-awk-check option to ignore this message.
살펴보니 스크립트에 사소한 오류가 숨어있다. host-setup.sh 의 119 번째 줄을 보면
if [ "$result" == "Pass" ] ; then
인데, 등호 기호를 하나 지워야 한다. 즉
if [ "$result" = "Pass" ] ; then
과 같이 고쳐주면 된다. 왜 이런 버그가 아직 남아있을까? 영 NDK 는 뒷전인가보다. 그나마 리눅스 환경은 더 신경 쓰지 않는 것일까?