[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