NETCONF协议之netopeer软件安装(2)

2019-08-29 20:15

【参考】

一、./configure -build,-host,-target设置

build:执行代码编译的主机,正常的话就是你的主机系统。这个参数一般由config.guess来猜就可以。当然自己指定也可以。

host:编译出来的二进制程序所执行的主机,因为绝大多数是如果本机编译,本机执行。所以这个值就等于build。只有交叉编译的时候(也就是本机编译,其他系统机器执行)才会build和host不同。用host指定运行主机。

target:这个选项只有在建立交叉编译环境的时候用到,正常编译和交叉编译都不会用到。他用build主机上的编译器,编译一个新的编译器(binutils, gcc,gdb等),这个新的编译器将来编译出来的其他程序将运行在target指定的系统上。

让我们以编译binutils为例:

1. `./configure --build=mipsel-linux --host=mipsel-linux --target=mipsel-linux'

说明我们利用mipsel-linux的编译器对binutils进行编译,编译出来的binutils运行在mipsel-linux,这个binutils用来编译能够在mipsel-linux运行的代码。“当然没有人会用这个选项来编译binutils” 2. `./configure --build=i386-linux --host=mipsel-linux

--target=mipsel-linux' will cross-build native mipsel-linux binutils oni386-linux.

说明我们利用i386-linux的编译器对binutils进行编译,编译出来的binutils运行在mipsel-linux,这个binutils用来编译能够在mipsel-linux运行的代码。“这个选项可以用来为其他的机器编译它的编译器”。 3. `./configure --build=i386-linux --host=i386-linux

--target=mipsel-linux' will build mipsel-linux cross-binutils on i386-linux.

说明我们利用i386-linux的编译器对binutils进行编译,编译出来的binutils运行在i386-linux,这个binutils用来编译能够在mipsel-linux运行的代码。“这个选项用来在i386主机上建立一个mipsel-linux的交叉编译环境”。

4. `./configure --build=mipsel-linux --host=i386-linux

--target=mipsel-linux' will cross-build mipsel-linux cross-binutils for i386-linux on mipsel-linux.

说明我们利用mipsel-linux的编译器对binutils进行编译,编译出来的binutils运行在i386-linux,这个binutils用来编译能够在mipsel-linux运行的代码。“这个选项可以用来在i386主机上建立一个mipsel-linux的交叉编译环境,但是交叉编译环境在mipsel-linux 编译出来,安装到i386-linux主机上,估计没有多少人会这么用吧”

总的来说,只有host !=build的时候编译才是交叉编译。否则就是正常编译。

二、Set up Netopeer Server to use with NETCONFc

http://www.seguesoft.com/how-to-set-up-netopeer-server-to-use-with-netconfc#nopackage

三、相应网页资源

网易网易开源镜像站(如linux系统环境未能成功连接网络使用yum方式进行资源包下载安装,可以基于windows系统在镜像站中进行相应安装包下载后传至linux中进行安装): http://mirrors.163.com/

Libnetconf文档网站:https://rawgit.com/CESNET/libnetconf/master/doc/doxygen/html/index.html Netopeer项目 :https://github.com/CESNET/Netopeer Libnetconf项目:https://github.com/CESNET/libnetconf Pyang项目:https://github.com/mbj4668/pyang Libssh项目:https://git.libssh.org/projects/libssh.git NETCONF相关:http://www.seguesoft.com/index.php


NETCONF协议之netopeer软件安装(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2018年天津市宁河区中考化学一模试卷

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: