made this work requiring root
authorahmad <ahmad@dw-10.eecs.uci.edu>
Fri, 30 Nov 2018 18:29:51 +0000 (10:29 -0800)
committerahmad <ahmad@dw-10.eecs.uci.edu>
Fri, 30 Nov 2018 18:29:51 +0000 (10:29 -0800)
mabain/compile.sh
mabain/run.sh

index 36a8244..dde2b4e 100755 (executable)
@@ -1,10 +1,7 @@
 #!/bin/bash
 make build
-sudo make install
-sudo make clean
-sudo make build
-sudo make install
+MABAIN_INSTALL_DIR=~/mabain make install
 cd ./examples
-make
+MABAIN_INSTALL_DIR=~/mabain make
 mkdir ./tmp_dir  
 
index d71e023..fe8bacd 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/bash
 cd examples
-LD_LIBRARY_PATH=/usr/local/lib/ ./mb_insert_test
-LD_LIBRARY_PATH=/usr/local/lib/ ./mb_longest_prefix_test
-LD_LIBRARY_PATH=/usr/local/lib/ ./mb_lookup_test
-LD_LIBRARY_PATH=/usr/local/lib/ ./mb_memory_only_test
+LD_LIBRARY_PATH=~/mabain/lib/ ./mb_insert_test
+LD_LIBRARY_PATH=~/mabain/lib/ ./mb_longest_prefix_test
+LD_LIBRARY_PATH=~/mabain/lib/ ./mb_lookup_test
+LD_LIBRARY_PATH=~/mabain/lib/ ./mb_memory_only_test