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]: Install instructions for Linux do not work with Linux Mint, need more detailed instructions #1224

Open
1 task done
Riccccardo opened this issue Dec 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Riccccardo
Copy link

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

  • Yes I was.

Relevant log output

There are no log outputs

Relevant screenshots (optional)

No response

@Riccccardo Riccccardo added the bug Something isn't working label Dec 23, 2024
@sslater11
Copy link

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."

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

2 participants