Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

[Bug]: 'fabric --setup' not working even after setting environment variables as instructed

Open FrostKing104 opened this issue 11 months ago • 0 comments

What happened?

I'm in the process of installing fabric on my Linux desktop. I installed it using go, as instructed

# Install Fabric directly from the repo
go install github.com/danielmiessler/fabric@latest

and it appeared to work. I then added this to my .bashrc file in my home directory:

# Golang environment variables
export GOROOT=/usr/local/go
export GOPATH=$HOME/go

# Update PATH to include GOPATH and GOROOT binaries
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH

Resulting in this .bashrc file:

# .bashrc

# Golang environment variables
export GOROOT=/usr/local/go
export GOPATH=$HOME/go

# Update PATH to include GOPATH and GOROOT binaries
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
    PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
    for rc in ~/.bashrc.d/*; do
        if [ -f "$rc" ]; then
            . "$rc"
        fi
    done
fi
unset rc
. "$HOME/.cargo/env"

export PATH=$PATH:/home/frost/.millennium/ext/bin

My issue is that after doing that, fabric --setup still returns bash: fabric: command not found... If I've done something obviously wrong, please tell me, I'm new to a lot of the stuff related to this.

Version check

  • [x] Yes I was.

Relevant log output


Relevant screenshots (optional)

No response

FrostKing104 avatar Jan 29 '25 20:01 FrostKing104