2008년 02월 01일
busybox compile시 에러문제....(sh 문제)
busybox 1.4.2를 컴파일하면 아래와 같은 메시지가 나온다.
LINK busybox_unstripped
/home/brion/busybox-1.4.1/scripts/trylink: 5: function: not found
/home/brion/busybox-1.4.1/scripts/trylink: 11: Syntax error: "}" unexpected
make: *** [busybox_unstripped] Error 2
이것은 우분투에서만 일어나는 일이다. 우분투에서는 기본 shell을 dash를 사용하고 있는데, 이 스크립트는 bash shell에서 작동하도록 되어 있기 때문에 sh명령어를 bash로 바꿔주면 정상컴파일된다.
cd /bin
rm sh
ln -s bash sh
LINK busybox_unstripped
/home/brion/busybox-1.4.1/scripts/trylink: 5: function: not found
/home/brion/busybox-1.4.1/scripts/trylink: 11: Syntax error: "}" unexpected
make: *** [busybox_unstripped] Error 2
이것은 우분투에서만 일어나는 일이다. 우분투에서는 기본 shell을 dash를 사용하고 있는데, 이 스크립트는 bash shell에서 작동하도록 되어 있기 때문에 sh명령어를 bash로 바꿔주면 정상컴파일된다.
cd /bin
rm sh
ln -s bash sh
# by | 2008/02/01 13:49 | Ubuntu | 트랙백
※ 로그인 사용자만 덧글을 남길 수 있습니다.




