RPC-Chat / install_ngt.sh
pedrocas15's picture
Create install_ngt.sh
3e90f8a verified
raw
history blame contribute delete
457 Bytes
#!/bin/bash
set -e
echo "Installing dependencies..."
apt-get update && apt-get install -y libblas-dev liblapack-dev cmake build-essential
echo "Cloning NGT repository..."
git clone https://github.com/jpmag7/NGT.git
cd NGT
mkdir build
cd build
cmake -DNGT_SHARED_MEMORY_ALLOCATOR=ON ..
make
make install
ldconfig /usr/local/lib
cd ../python
python3 setup.py sdist
pip3 install dist/ngt-2.2.4.tar.gz
cd ../..
rm -rf NGT
echo "NGT installation complete."