pedrocas15 commited on
Commit
3e90f8a
·
verified ·
1 Parent(s): 1c6406d

Create install_ngt.sh

Browse files
Files changed (1) hide show
  1. install_ngt.sh +25 -0
install_ngt.sh ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ echo "Installing dependencies..."
5
+ apt-get update && apt-get install -y libblas-dev liblapack-dev cmake build-essential
6
+
7
+ echo "Cloning NGT repository..."
8
+ git clone https://github.com/jpmag7/NGT.git
9
+
10
+ cd NGT
11
+ mkdir build
12
+ cd build
13
+ cmake -DNGT_SHARED_MEMORY_ALLOCATOR=ON ..
14
+ make
15
+ make install
16
+ ldconfig /usr/local/lib
17
+
18
+ cd ../python
19
+ python3 setup.py sdist
20
+ pip3 install dist/ngt-2.2.4.tar.gz
21
+
22
+ cd ../..
23
+ rm -rf NGT
24
+
25
+ echo "NGT installation complete."