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
I was following the provided instructions and none of it worked... I had to install Golang using apt, then the install of fabric required sudo, but the computer still doesn't know where to find fabric... I'm not super savvy with Linux yet, I need step by step instructions to get this working
Version check
Yes I was.
Relevant log output
There are no log outputs
Relevant screenshots (optional)
No response
The text was updated successfully, but these errors were encountered:
Hi, I had an issue on pop-os too. I had to install golang-1.23 and create the links to the golang executable manually. For some reason installing golang-1.23 doesn't give us a working 'go' command. so here's my script to install it for us.
Please tell us whether the script below works for you.
I've tried it on the current version of linux mint and it works perfectly. It also works on pop-os 22.04 as that's my daily driver.
Warning, script will attempt to uninstall all versions of golang. It will then install golang-1.23 and update the links to the executable and library, giving us a working golang-1.23.
Fabric Install Script
Save the below to install-fabric.sh
chmod +x install-fabric.sh
./install-fabric.sh
#!/usr/bin/bash
# These are the instructions to install fabric via source.
# Fabric requires golang version 1.23.
# For some reason, when I installed golang-1.23 on popos, the links to the binaries didn't update.
# I had to update the binaries manually.
# Warning, this will change the go executable to v1.23. It will break the default golang install, so we just remove it.
# Remove older versions of golang
# On my pop-os, golang was 1.18
#sudo apt remove golang golang-1.18 golang-1.18-doc golang-1.18-go golang-1.18-src
# On linux mint golang was 1.22
#sudo apt remove golang golang-1.22 golang-1.22-doc golang-1.22-go golang-1.22-src
# Or just remove all versions of golang
sudo apt remove golang "golang-1.*"
# Install golang 1.23
sudo apt install golang-1.23 golang-1.23-doc golang-1.23-go golang-1.23-src
# Update the links to the go executable and library.
sudo ln -s /usr/lib/go-1.23/bin/go /usr/bin/go
sudo ln -s /usr/lib/go-1.23 /usr/lib/go
sudo ln -s /usr/share/go-1.23 /usr/share/go
# Install fabric
go install github.com/danielmiessler/fabric@latest
cd ~/go/bin
./fabric --version
echo "If it prints out the version number then it's installed successfully"
./fabric --version
echo "See the installation guide for updating evironment variables to allow you to run fabric without changing to ~/go/bin/ every time you want ot use it."
What happened?
I was following the provided instructions and none of it worked... I had to install Golang using apt, then the install of fabric required sudo, but the computer still doesn't know where to find fabric... I'm not super savvy with Linux yet, I need step by step instructions to get this working
Version check
Relevant log output
Relevant screenshots (optional)
No response
The text was updated successfully, but these errors were encountered: