Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
FrostKing104 opened this issue Jan 29, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@FrostKing104
Copy link

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

  • Yes I was.

Relevant log output

Relevant screenshots (optional)

No response

@FrostKing104 FrostKing104 added the bug Something isn't working label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant