您尚未登录。

楼主 #1 2018-01-22 19:02:54

zhen8838
会员
注册时间: 2018-01-19
已发帖子: 32
积分: 32

交叉编译ssh到v3s上,configure openssh时出错,求助

我按照网上交叉编译的教程,到了

交叉编译openssh
/***以下为教程*****/
编译openssh会引用上面编译的zlib和openssl的安装目录,如下。

$ cd  ../openssh-6.6p1
$ ./configure --host=arm-none-linux-gnueabi --with-libs --with-zlib=/home/veryarm/ssh/zlib.install --with-ssl-dir=/home/veryarm/ssh/openssl.install --disable-etc-default-login CC=arm-none-linux-gnueabi-gcc AR=arm-none-linux-gnueabi-ar
$ make

/***以下我的命令****/

./configure --host=arm-linux-gnueabihf --with-libs --with-zlib=/home/zqh/ssh/zlib.install --with-ssl-dir=/home/zqh/ssh/openssl.install --disable-etc-default-login CC=arm-linux-gnueabihf-gcc AR=arm-linux-gnueabihf-ar

报错为

configure: warning: CC=arm-linux-gnueabihf-gcc: invalid host type
configure: warning: AR=arm-linux-gnueabihf-ar./configure: invalid host type
configure: error: can only configure for one host and one target at a time

这个错误该如何解决,本人刚接触linux,求助.....

离线

#2 2018-01-22 19:12:56

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: 交叉编译ssh到v3s上,configure openssh时出错,求助

参考链接: 荔枝派Zero V3s开发板入坑记录

用这个懒人办法就可以, 可以指定用任何符合条件的gcc工具链,
1. 去当前 .config 里面找到 openssl手动修改文件开启
2. make menuconfig 找到openssl开启。





离线

楼主 #3 2018-01-22 23:10:39

zhen8838
会员
注册时间: 2018-01-19
已发帖子: 32
积分: 32

Re: 交叉编译ssh到v3s上,configure openssh时出错,求助

谢谢……我重新编译了根文件,成功开起ssh了

离线

#4 2018-01-23 08:42:53

goodgoodstudy
会员
注册时间: 2017-09-15
已发帖子: 61
积分: 61

Re: 交叉编译ssh到v3s上,configure openssh时出错,求助

zhen8838 说:

谢谢……我重新编译了根文件,成功开起ssh了

你是用dropbear,还是其他的sshd?

离线

楼主 #5 2018-01-23 10:31:49

zhen8838
会员
注册时间: 2018-01-19
已发帖子: 32
积分: 32

Re: 交叉编译ssh到v3s上,configure openssh时出错,求助

goodgoodstudy 说:

你是用dropbear,还是其他的sshd?

我现在就是直接在buildroot中选择openssh然后重新编译了,应该不是dropbear吧。。,我对这方面了解的还不够

离线

#6 2018-01-23 10:38:42

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: 交叉编译ssh到v3s上,configure openssh时出错,求助

zhen8838 说:
goodgoodstudy 说:

你是用dropbear,还是其他的sshd?

我现在就是直接在buildroot中选择openssh然后重新编译了,应该不是dropbear吧。。,我对这方面了解的还不够

不好意思,我看错了,你是运行ssh客户端。我以为你运行ssh服务器端,我说的dropbear是ssh服务器。





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn