歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Ubuntu系統sh命令引起編譯問題

主機系統:Ubuntu 10.10

交叉編譯iptables-1.4.10時,出現以下錯誤:

eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found

解決方法:cd /bin; rm sh; ln -s bash sh

在ubuntu發行版下,查看sh命令。
$ cd /bin
$ ls -l
lrwxrwxrwx 1 root root      4  sh -> dash
實際上,sh命令鏈接的是dash(Debian-shell)。

Copyright © Linux教程網 All Rights Reserved