Skip to content

Commit

Permalink
script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
agudys committed Oct 3, 2024
1 parent 0d20f19 commit 4699e19
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion recipes/kmer-db/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#!/bin/bash

uname_S=`uname -s 2>/dev/null || echo not`
if [ "$uname_S" == "Darwin" ]; then brew install gcc@12;
if [ "$uname_S" == "Darwin" ]; then
if ! command -v brew &> /dev/null; then
echo "Homebrew is required but not installed. Please install Homebrew first."
exit 1
fi
if ! brew install gcc@12; then
echo "Failed to install gcc@12. Please check your Homebrew installation and permissions."
exit 1
fi
fi

CFLAGS="$CFLAGS -I${PREFIX}/include"
LDFLAGS="$LDFLAGS -L${PREFIX}/lib"
Expand Down

0 comments on commit 4699e19

Please sign in to comment.