如题
按照VPP官方的文档
1、yum安装,无法找到对应rpm包
2、源码安装,报错,修改makefile内容后也是无法安装很多依赖的库
试了多种方法,无法安装VPP
查了下,EPOL源里确实没有。有没有试过vpp官网yum源?
按照官网的yum操作
Error:
Problem: cannot install the best candidate for the job
- nothing provides libcrypto.so.10()(64bit) needed by vpp-20.01-release.x86_64
- nothing provides libssl.so.10()(64bit) needed by vpp-20.01-release.x86_64
- nothing provides python36 needed by vpp-20.01-release.x86_64
(try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)
提示上面的错误,然后很多rpm包安装不上
编译安装时,vpp makefile脚本只支持rhel centos fedora debian发行版
我把其他删掉,只留下centos7的,安装过程也是报错。。。
装两天没装上
可以改vpp项目的Makefile,在349行,是fedora系统的相关安装步骤
else ifeq ($(OS_ID),fedora)
@sudo -E dnf groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
@sudo -E dnf install $(CONFIRM) $(RPM_DEPENDS)
@sudo -E debuginfo-install $(CONFIRM) glibc openssl-libs zlib
endif
把fedora改成openEuler,然后第128行开始
ifeq ($(OS_ID),fedora)
RPM_DEPENDS += dnf-utils
RPM_DEPENDS += subunit subunit-devel
RPM_DEPENDS += compat-openssl10-devel
RPM_DEPENDS += python3-devel # needed for python3 -m pip install psutil
RPM_DEPENDS += python3-ply # for vppapigen
RPM_DEPENDS += python3-virtualenv python3-jsonschema
RPM_DEPENDS += cmake
RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'
把fedora改成openEuler,C Development Tools and Libraries改成Development Tools
然后按vpp仓库的readme来,运行
./extras/vagrant/build.sh
1 Like
1 Like
谢谢
编译装上了,还改几处
1、compat-openssl10-devel 无法安装上,需要注释掉,(22.10 还要注释掉redhat-lsb)
2、github替换成镜像源,有可能无法下载成功
yum update 不知道是否必须
如果提示找不到clang 还需要yum install clang llvm
./extras/vagrant/build.sh成功后
make build 按官网的来
1 Like
github替换镜像源,赞
我这边还是硬下的,好几次都是github仓库拉不下来,硬拉
不过,未来需要openssl-devel的话,可以添加oepkgs仓库( OEPKGS-SEARCH),我是在这里面下的