From 6cdc7d775020793ddddf754cb9647bb60268ac6b Mon Sep 17 00:00:00 2001 From: ahmad Date: Fri, 30 Nov 2018 10:29:51 -0800 Subject: [PATCH] made this work requiring root --- mabain/compile.sh | 7 ++----- mabain/run.sh | 8 ++++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/mabain/compile.sh b/mabain/compile.sh index 36a8244..dde2b4e 100755 --- a/mabain/compile.sh +++ b/mabain/compile.sh @@ -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 diff --git a/mabain/run.sh b/mabain/run.sh index d71e023..fe8bacd 100755 --- a/mabain/run.sh +++ b/mabain/run.sh @@ -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 -- 2.34.1