Error on Kylin V10

Symptom

AscendFaiss cannot be installed on Kylin V10.

Possible Cause

Dependencies are not correctly installed.

Solution

Install dependencies as follows:

# Upgrade swig.
tar -xzvf swig-4.0.2.tar.gz
cd swig-4.0.2
./configure --prefix=/usr/local/share
make && make install
# Install Python 3.10 or Python 3.11. The following uses Python 3.10.14 as an example.
# Download Python 3.10.14 from the official website and install it.
tar zxvf Python-3.10.14.tgz
cd Python-3.10.14
./configure --prefix=/usr/local
make && make install
echo 'export PATH=/usr/local/python3.10.14/bin:$PATH' >> /etc/profile
source /etc/profile
# Install OpenBLAS.
git clone https://github.com/xianyi/OpenBLAS.git
cd OpenBLAS && make -j8 && make install
export LD_LIBRARY_PATH=/opt/OpenBLAS/lib:$LD_LIBRARY_PATH