Installing KUAF
Install KAE first, and then install KUAF as follows. After the installation is complete, run the specified script to build the zlib library. During this process, the source code is downloaded from GitHub. Ensure that the network connection is normal.
Procedure
- Install KAE by referring to Kunpeng Accelerator Engine User Guide.
- Obtain the KUAF software package by referring to Obtaining the Software Package and decompress it to obtain the binary RPM package, patch file, and installation script.
- Install KUAF as the root user.
1rpm -ivh boostkit-kuaf-xxxx.aarch64.rpm
After the installation, the system automatically adds the path to the lib folder, that is, /usr/local/kuaf/lib, to the environment variable LD_LIBRARY_PATH.
In the preceding command, xxxx indicates the version number.
- After KUAF is installed, run the installation script in the same path to build the zlib library.
sh setup.sh
Verifying the Installation
- Import the environment variable.
1export LD_LIBRARY_PATH=/usr/local/kuaf/lib:$LD_LIBRARY_PATH
- Check .so files in the /usr/local/kuaf/lib directory.
1ll /usr/local/kuaf/libIf libkuaf.so, libz_sw.so, and libkaezip.so are displayed in the command output, the installation is successful.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
lrwxrwxrwx 1 root root 18 May 19 16:27 libkaezip.so -> libkaezip.so.2.0.4 lrwxrwxrwx 1 root root 18 May 19 16:27 libkaezip.so.0 -> libkaezip.so.2.0.4 -rwxr-xr-x 1 root root 214680 May 19 16:27 libkaezip.so.2.0.4 -rw-r--r-- 1 root root 238778 May 19 16:27 libkuaf.a -rwxr-xr-x 1 root root 1016 May 19 16:27 libkuaf.la lrwxrwxrwx 1 root root 16 May 19 16:27 libkuaf.so -> libkuaf.so.1.0.0 lrwxrwxrwx 1 root root 16 May 19 16:27 libkuaf.so.1 -> libkuaf.so.1.0.0 -rwxr-xr-x 1 root root 147232 May 19 16:27 libkuaf.so.1.0.0 lrwxrwxrwx 1 root root 34 May 19 16:27 libz.so -> /usr/local/kuaf/lib/libz.so.1.2.11 lrwxrwxrwx 1 root root 34 May 19 16:27 libz.so.1 -> /usr/local/kuaf/lib/libz.so.1.2.11 -rwxr-xr-x 1 root root 71896 May 19 16:27 libz.so.1.2.11 -rw-r--r-- 1 root root 139514 May 19 16:27 libz_sw.a lrwxrwxrwx 1 root root 17 May 19 16:27 libz_sw.so -> libz_sw.so.1.2.11 lrwxrwxrwx 1 root root 17 May 19 16:27 libz_sw.so.1 -> libz_sw.so.1.2.11 -rwxr-xr-x 1 root root 143304 May 19 16:27 libz_sw.so.1.2.11 drwxr-xr-x 2 root root 4096 May 19 16:54 pkgconfig
Related files are generated in the installation path (/usr/local/kuaf by default). The include folder contains the header files of KUAF, and the lib folder contains the dynamic library files of KUAF.