求解,交叉编译问题

gaoshanzhishui 2011-09-23 08:15:16
../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=$? //出错的一行
if test "$my_status" -eq 0; then :; else
eval "(exit $my_status); $my_fail_exp"
fi
fi
}
...全文
182 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
二狗蹲坑 2011-09-28
  • 打赏
  • 举报
回复
确保你所有用户的PATH环境变量都有/opt/buildroot-gcc342/bin
gaoshanzhishui 2011-09-27
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 zmlovelx 的回复:]
mipsel-linux-gcc: command not found

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

export PATH=$PATH:xxx/bin
[/Quote]
恩,我echo $PATH 看到了/bin这个路径,不过还是没有用。
不过别人指导,把sudo make install 换成sudo env PATH=$PATH make install
就好了,这是为啥米
帅得不敢出门 2011-09-24
  • 打赏
  • 举报
回复
mipsel-linux-gcc: command not found

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

export PATH=$PATH:xxx/bin

23,223

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧