You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0x44@_ ~/c0d3/Orca-c (master)
❯ make (base)
Error: ncurses directory not found at /usr/local/opt/ncurses
Install with: brew install ncurses
make: *** [release] Error 1
Self descriptive.
My fix:
❯ git diff (base)
diff --git a/tool b/tool
index e32b94d..f004042 100755
--- a/tool
+++ b/tool
@@ -346,7 +346,7 @@ build_target() {
case $os in
mac)
if ! brew_prefix=$(printenv HOMEBREW_PREFIX); then
- brew_prefix=/usr/local
+ brew_prefix=/opt/homebrew
fi
ncurses_dir="$brew_prefix/opt/ncurses"
if ! [ -d "$ncurses_dir" ]; then
0x44@_ ~/c0d3/Orca-c (master)
❯
Maybe not ideal but it works. I think that type of checking is specific to how brew handles env vars within a particular recipe (that is HOMEBREW_PREFIX because on my system which is a M1 Mac mini there is no such thing as HOMEBREW_PREFIX on my env. I investigated the brew docs and it came up only in specification of writing a recipe but not a particular global, so it might function as some closure over the recipe and exporting then unexporting a ENV var during that 'install session.' I am just speculating though.
Self descriptive.
My fix:
Maybe not ideal but it works. I think that type of checking is specific to how
brew
handles env vars within a particular recipe (that isHOMEBREW_PREFIX
because on my system which is a M1 Mac mini there is no such thing asHOMEBREW_PREFIX
on my env. I investigated thebrew
docs and it came up only in specification of writing a recipe but not a particular global, so it might function as some closure over the recipe and exporting then unexporting a ENV var during that 'install session.' I am just speculating though.I can submit a PR if this is good enough or let me know.
The text was updated successfully, but these errors were encountered: