Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

[Bug]: Not installable on MacOs (apple silicone)

Open psillypsymun opened this issue 8 months ago • 10 comments

What happened?

IDK maybe I'm a dunce, but I tried installing this through every method possible. I even asked 2 different LLMs to help. I used the curl command in the instructions. I tried brew. I tried using git. At one point I got a "fabric" folder. I followed network chuck's video and did "pipx install ." It did a bunch of stuff. But there's no fabric file to add to my path or make executable. I even tried building it in go. Just wanted to let you know. I might circle back and try again, but after 2 hours I'm kind of done trying.

Version check

  • [x] Yes I was.

Relevant log output


Relevant screenshots (optional)

No response

psillypsymun avatar Mar 20 '25 16:03 psillypsymun

I'm glad I'm not the only one, just have not had time to investigate

Ephesian avatar Mar 20 '25 17:03 Ephesian

You can try this approach: https://github.com/danielmiessler/fabric/blob/main/Web%20Interface%20MOD%20Readme%20Files/WEB%20V2%20Install%20Guide.md

jmd1010 avatar Mar 20 '25 19:03 jmd1010

As of today Fabric should be available in Homebrew and can be installed by:

brew update
brew install fabric-ai

vaygr avatar Mar 21 '25 15:03 vaygr

I also found that on MacOS the command is fabric-ai, not just fabric.

I thought my $PATH was wrong, but alas, the command is fabric-ai on MacOS after installing w/ Homebrew

chirul0 avatar Mar 21 '25 20:03 chirul0

@chirul0 yes, the note on name difference is in the README and is due to the conflict with https://www.fabfile.org/

vaygr avatar Mar 21 '25 20:03 vaygr

@psillypsymun

The "pipx" path was the old way for the old Python source code.

The new way (and I'm running this on two Apple Silicon Macs and an old Intel Mac, along with a Linux box and a Windows 11 box):

  1. Install go

For Macs, easiest way is:

brew install go
  1. Install fabric and follow the instructions in the README:
go install github.com/danielmiessler/fabric@latest

And set up your GOLANG environment variables:

# Golang environment variables
export GOPATH=$HOME/go
[[ " ${path[@]} " != *" $GOPATH/bin "* ]] && path=($GOPATH/bin $path)

ksylvan avatar Mar 22 '25 06:03 ksylvan

Not familiar with Brew packaging. How are the latest merged pulls added to the brew install?

jmd1010 avatar Mar 22 '25 14:03 jmd1010

@jmd1010 See this comment: https://github.com/danielmiessler/fabric/pull/1376#issuecomment-2744672490

@vaygr said:

this is built-in in Homebrew automations, I just wanted to submit the formula first for a thorough review, and once it's accepted, figure out the rest. I updated it to 1.4.163 in https://github.com/Homebrew/homebrew-core/pull/215420 and added to autobump list, which is checked every 3 hours IIRC, so moving forward it should keep releases in sync.

ksylvan avatar Mar 22 '25 14:03 ksylvan

FYI the first run worked successfully in https://github.com/Homebrew/homebrew-core/pull/215742.

vaygr avatar Mar 22 '25 15:03 vaygr

@psillypsymun can you close this issue?

@chirul0 after installing the fabric-ai homebrew formula, just add to your shell startup files:

alias fabric='fabric-ai'

See this note in the README.

ksylvan avatar Mar 23 '25 15:03 ksylvan