Skip to content

macOS Homebrew run.sh setting

Ko Nagase edited this page Jun 10, 2025 · 1 revision
brew install grep
@@ -26,18 +26,19 @@
 # adjust to your needs
 
 # This run.sh is intended for 3.x.x
-VERSION=$(grep -Po '(?<=project\(PGROUTING VERSION )[^;]+' CMakeLists.txt)
+VERSION=$(ggrep -Po '(?<=project\(PGROUTING VERSION )[^;]+' CMakeLists.txt)
 echo "pgRouting VERSION ${VERSION}"
 
 # set up your postgres version, port and compiler (if more than one)
-PGVERSION="15"
+# PGVERSION="15"
 PGPORT="5432"
-PGBIN="/usr/lib/postgresql/${PGVERSION}/bin"
+# PGBIN="/usr/lib/postgresql/${PGVERSION}/bin"
+PGBIN="/opt/homebrew/bin"
 # When more than one compiler is installed
 GCC=""
 
-QUERIES_DIRS=$(ls docqueries -1)
-TAP_DIRS=$(ls pgtap -1)
+QUERIES_DIRS=$(ls -1 docqueries)
+TAP_DIRS=$(ls -1 pgtap)
 
 QUERIES_DIRS="dijkstra"
 TAP_DIRS="dijkstra"
@@ -160,7 +161,8 @@
     #make  -j 16 VERBOSE=1
     make -j 16
     #make
-    sudo make install
+    # sudo make install
+    make install
     popd > /dev/null || exit 1
 
 }
@@ -192,6 +194,8 @@
         time bash taptest.sh  "${d}" "-p ${PGPORT}"
     done
 
+    exit
+
     tap_test
     tools/testers/doc_queries_generator.pl -pgport $PGPORT
Clone this wiki locally