安装vpp

 

 

 

[root@localhost vpp-stable-2001]# make install-dep
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * centos-sclo-rh: mirror-hk.koddos.net
Package centos-release-scl-rh-2-3.el7.centos.noarch already installed and latest version
Package epel-release-7-12.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * centos-sclo-rh: mirror-hk.koddos.net
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

 

 

Loading mirror speeds from cached hostfile
 * centos-sclo-rh: mirror-hk.koddos.net
http://debuginfo.centos.org/centos/7/sclo/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

failure: repodata/repomd.xml from centos-sclo-rh-debuginfo: [Errno 256] No more mirrors to try.
http://debuginfo.centos.org/centos/7/sclo/aarch64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
make: *** [install-dep] Error 1
[root@localhost vpp-stable-2001]# cd -
/etc/yum.repos.d
[root@localhost yum.repos.d]# grep  centos-sclo-rh-debuginfo -rn *
CentOS-SCLo-scl-rh.repo:28:[centos-sclo-rh-debuginfo]
[root@localhost yum.repos.d]# mv CentOS-SCLo-scl-rh.repo CentOS-SCLo-scl-rh.repo.bak
git config commit.template .git_commit_template.txt
error: could not lock config file .git/config: No such file or directory
make: *** [install-dep] Error 255

 

 

 

 

enabling base-debuginfo
Loading mirror speeds from cached hostfile
Package glibc-debuginfo-2.17-292.el7.aarch64 already installed and latest version
Package nss-softokn-debuginfo-3.36.0-5.el7_5.aarch64 already installed and latest version
Package 1:openssl-debuginfo-1.0.2k-19.el7.aarch64 already installed and latest version
Package e2fsprogs-debuginfo-1.42.9-16.el7.aarch64 already installed and latest version
Package krb5-debuginfo-1.15.1-37.el7_7.2.aarch64 already installed and latest version
Package zlib-debuginfo-1.2.7-18.el7.aarch64 already installed and latest version
Package mbedtls-debuginfo-2.7.11-1.el7.aarch64 already installed and latest version
Package mbedtls-debuginfo-2.7.11-1.el7.aarch64 already installed and latest version
No debuginfo packages available to install

 

 

 

 

 

ternal/rpm/BUILDROOT/vpp-ext-deps-%{_version}-0.aarch64/opt/vpp/external/aarch64' config
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
make[3]: Entering directory `/root/vpp-stable-2001/build/external'
通过git下载
git clone -b stable/2001 https://github.com/FDio/vpp.git

 

一、VPP构建安装
首先附上官方文档

https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code

https://docs.fd.io/vpp/19.08/

第一次安装首先运行./extras/vagrant/build.sh

然后根据版本运行如下命令。因为不同版本编译方式会有细微改变,可以通过vpp源码目录中运行make查看命令帮助。例如18.07版本集成dpdk,需要执行make dpdk-install-dev来安装运行DPDK来辅助VPP。

# if vpp<08.10
make install-dep
make bootstrap
make build        # or `make build-release`
 
# vpp 08.10+ (cmake)
make install-dep
make install-ext-deps
make build        # or `make build-release`
本文采用19.08版本VPP编译,最后一步make build安装好DEBUG版本后,可以在/root/vpp/build-root下面看到生成目录install-vpp_debug-native/vpp以及build-vpp_debug-native/vpp目录,其中第一个目录为运行安装文件目录,所有编译好的运行及配置等文件已准备好;第二个目录为编译时运行目录,里面很多编译过程中采用的文件。(如果读者采用git克隆master版本,最好切换到稳定发布版本再进行编译,如下图,然后git checkout XXX)。

也可以直接克隆稳定分支,采用SSH协议  git clone -b stable/1908 "ssh://XXX@gerrit.fd.io:29418/vpp",XXX表示用户登录账号。
 

 

 

Building without virtualization
From the VPP repository root you can use the Makefile.

# if vpp<08.10
make install-dep
make bootstrap
make build        # or `make build-release`

# vpp 08.10+ (cmake)
make install-dep
make install-ext-deps
make build        # or `make build-release`

 

 

 


448 cd build-root/
449 make distclean
450 cd -

make vpp_uses_external_dpdk=yes vpp_dpdk_inc_dir=/usr/include/dpdk vpp_dpdk_lib_dir=/lib/modules/4.14.0-115.el7a.0.1.aarch64/extra/dpdk vpp_dpdk_shared_lib=yes build -j48

make -C build-root \
PLATFORM=vpp \
TAG=vpp \
vpp_uses_external_dpdk=yes \
vpp_dpdk_inc_dir=/usr/include/dpdk \
vpp_dpdk_lib_dir=/lib/modules/4.14.0-115.el7a.0.1.aarch64/extra/dpdk \
vpp_dpdk_shared_lib=yes buil -j48

 

 /root/vpp/vpp/build/external

 

 

 yum install -y git cpp gcc rpm-build openssl-devel libmnl-devel numactl-devel epel-release net-tools rdma-core-devel nasm

 

 

 

make install T=arm64-armv8a-linuxapp-gcc  DESTDIR=/usr/src/dpdk_vpp -j 64  EXTRA_CFLAGS='-fPIC -pie'

 

 build/external/packages/dpdk.mk

 

posted on 2020-04-20 13:39  tycoon3  阅读(1296)  评论(0编辑  收藏  举报

导航