Installing Dependencies
- Download an OS image file.OS image download links:
- CentOS 7.6 image: https://mirrors.huaweicloud.com/centos-vault/altarch/7.6.1810/isos/aarch64/CentOS-7-aarch64-Everything-1810.iso
- CentOS 8.1 image: https://mirrors.huaweicloud.com/centos-vault/8.1.1911/isos/aarch64/CentOS-8.1.1911-aarch64-dvd1.iso
- openEuler 20.03 LTS SP1 image: https://repo.huaweicloud.com/openeuler/openEuler-20.03-LTS-SP1/ISO/aarch64/openEuler-20.03-LTS-SP1-everything-aarch64-dvd.iso
- openEuler 22.03 LTS SP1 image: https://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP1/ISO/aarch64/openEuler-22.03-LTS-SP1-everything-aarch64-dvd.iso
- Mount the OS image.
Mount the OS image using either of the following methods:
- Method 1: Upload the OS image to the /home directory and mount the image to the /mnt/ directory.
1mount /home/CentOS-7-aarch64-Everything-1810.iso /mnt/
Change the ISO file name based on your OS type. Mounting of the image file is temporary and becomes invalid after the OS is restarted.
- Method 2: Use the KVM to mount the image to the /mnt/ directory. If the system displays a message indicating that no image is available after you run the command, mount the image again and then run the command.
1mount /dev/sr0 /mnt/
- Method 1: Upload the OS image to the /home directory and mount the image to the /mnt/ directory.
- Configure the local Yum source.
Configure the local source if the server cannot obtain dependencies from the Internet using yum commands.
- Back up the system Yum source configuration file.
1mv /etc/yum.repos.d /etc/yum.repos.d.bak
- Create a Yum source configuration directory.
1mkdir /etc/yum.repos.d - Go to the Yum source configuration directory.
1cd /etc/yum.repos.d
- Open the local.repo file.
1vim local.repo - Press i to enter the insert mode and add the following content to the local.repo file:
[local] name=local.repo baseurl=file:///mnt enabled=1 gpgcheck=0
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Back up the system Yum source configuration file.
- Make the local source take effect.
1 2
yum clean all yum makecache
- Install the dependencies. Install the required dependency packages according to the OS type.
- Install the CentOS dependency packages.
1yum -y install automake libtool* mysql-devel
- Install the openEuler dependency packages.
1yum -y install automake libtool* mariadb-devel
- Install the CentOS dependency packages.
Parent topic: Sysbench 0.5 & 1.0 Test Guide