Building the liboath-devel Package
This section applies only to openEuler 20.03. Skip this section for CentOS 7.6.
The openEuler software repository does not include the liboath-devel package. You need to build one.
- Download related code and patches.
1 2 3 4
cd /home/oath wget --no-check-certificate https://gitee.com/src-openeuler/oath-toolkit/repository/archive/openEuler-21.03-20210330.zip unzip openEuler-21.03-20210330.zip cd oath-toolkit
- Install related dependencies.
1 2
yum install gtk-doc pam-devel rpmdevtools rpmdev-setuptree
- Save related files to the /root/rpmbuild/SOURCES directory.
1mv /home/oath-toolkit/0001-oath-toolkit-2.6.5-lockfile.patch oath-toolkit-2.6.5.tar.gz /root/rpmbuild/SOURCES/
- Build an RPM package.
1 2
cd /root/oath-toolkit rpmbuild -bb oath-toolkit.spec
- Use the RPM package as the local Yum repository.
1 2 3 4 5
mkdir -p /home/rpm/oath cp -r /root/rpmbuild/RPMS/* /home/rpm/oath/ yum install -y createrepo cd /home/rpm/oath createrepo ./
- Configure the Repo file.
- Open the local.repo file.
1vi /etc/yum.repos.d/local.repo - Press i to enter the insert mode and add the following content to the file:
1 2 3 4 5 6
[local-oath] name=local-oath baseurl=file:///home/rpm/oath enabled=1 gpgcheck=0 priority=1
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the local.repo file.
- Install liboath dependencies.
1yum install liboath liboath-devel -y
Parent topic: Environment Preparations