+ -
当前位置:首页 → 问答吧 → 求解,交叉编译问题

求解,交叉编译问题

时间:2011-09-23

来源:互联网

../libtool: line 976: mipsel-linux-gcc: command not found
make[3]: *** [mdct.lo] Error 1
这个是什么错误,网上找,差不多是编译路径有问题,但是我echo了一下
usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/buildroot-gcc342/bin
我的交叉编译环境就是在:/opt/buildroot-gcc342这里面,而且./bin里面也有mipsel-linux-gcc
另一个源码包,sudo make install
../libtool: line 1090: mipsel-linux-ranlib: command not found
而且我./bin里面也有mipsel-linux-ranlib这个呀
请问这个是为什么呢
func_show_eval ()
{
  my_cmd="$1"
  my_fail_exp="${2-:}"

  ${opt_silent-false} || {
  func_quote_for_expand "$my_cmd"
  eval "func_echo $func_quote_for_expand_result"
  }

  if ${opt_dry_run-false}; then :; else
  eval "$my_cmd"
  my_status=$? //[color=#FF6600][/color]出错的一行
  if test "$my_status" -eq 0; then :; else
eval "(exit $my_status); $my_fail_exp"
  fi
  fi
}

作者: gaoshanzhishui   发布时间: 2011-09-23

mipsel-linux-gcc: command not found

在./bin里,但是这个./bin不在 PATH环境变量中.
就无法找到了.

export PATH=$PATH:xxx/bin

作者: zmlovelx   发布时间: 2011-09-24