configure: error: cannot run C compiled programs

来源:互联网 发布:淘宝修改差评链接 编辑:程序博客网 时间:2024/06/01 13:25

在configure配置编译选项是有时会遇到如下的错误

checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


解决方法:

1.确定交叉编译器安装(或者编译器已安装)

2.用root用户登录进行编译


这个问题在之前移植mdaplay时出现,后来用root用户登录后,在编译就可以解决


0 0
原创粉丝点击