How to setup Go dev environment in puppy linux ?

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

Post Reply
instantkiddonoread
Posts: 3
Joined: Thu Feb 22, 2024 4:29 pm
Has thanked: 2 times

How to setup Go dev environment in puppy linux ?

Post by instantkiddonoread »

Hi I've just fresh install puppy linux dual boot with my windows 11 I think it's called frugal install.

Usually I am using lubuntu that be able to run snap/snapd and apt commands to install things.

But then I realized that it wouldn't work in here.

I've tried to install go by following their official docs in go.dev but seems like it didn't work like when I run go version it still not found in path even i've already adding that.

I also tried to install neovim following the docs but again it didn't work when I call nvim.

Then I tried to install GoLand from jetbrain which is rely on JAVA I bet, but of course it didn't work, I have tried to install the JDK from puppy package manager too but that GoLand still didn't work.

And yeah... any information about how to setup all of that ?

  • I want to install go programming language
  • I want to install Goland IDE from jetbrains that rely on JAVA (they have linux version)
  • If I can't use GoLand maybe I can use neovim but I am afraid that the other configuration and plugins installation will again require other things to be installed
  • Can vscode fix them all ? yeahh back to use vscode again..
dimkr
Posts: 1908
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 36 times
Been thanked: 829 times

Re: How to setup Go dev environment in puppy linux ?

Post by dimkr »

I do lots of Go on Puppy (specifically Vanilla Dpup but should work on Bookworm Pup64 and probably on others).

To install latest Go to /usr/local/go easily:

Code: Select all

cd /usr/local
curl -Lo- https://go.dev/dl/go1.22.0.linux-amd64.tar.gz | tar -xzvf-
echo 'export PATH=$PATH:/usr/local/go/bin' > /etc/profile.d/go.sh

Once you log out and log in again, it should work in VS Code (make sure you have the Go extension installed).

instantkiddonoread
Posts: 3
Joined: Thu Feb 22, 2024 4:29 pm
Has thanked: 2 times

Re: How to setup Go dev environment in puppy linux ?

Post by instantkiddonoread »

Specifically I am using I am using FossaPup64.

Thank you that command works perfectly and I learn a bit about how to do that for neovim too.

Now I can execute go version and nvim etc.

VanillaDpup also interesting to try it may be better choice for me

User avatar
user1234
Posts: 413
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 154 times
Been thanked: 87 times

Re: How to setup Go dev environment in puppy linux ?

Post by user1234 »

instantkiddonoread wrote: Fri Feb 23, 2024 2:37 am

Specifically I am using I am using FossaPup64.

Thank you that command works perfectly and I learn a bit about how to do that for neovim too.

Now I can execute go version and nvim etc.

VanillaDpup also interesting to try it may be better choice for me

One thing to note, have you loaded your devx.sfs?

The devx will add some other development related utilities. Not sure if it contains any for GO, but maybe it contains its dependencies?

Also, if you'd want to use apt, you can use some newer distro such as F-96. Otherwise, PPM is the only thing which you can rely on in Fossa64.

Note that PPM might start breaking the system (though, I think this happened lesser times in Fossa64), so try to use it the least you can.

PuppyLinux 🐾 gives new life to old computers ✨

instantkiddonoread
Posts: 3
Joined: Thu Feb 22, 2024 4:29 pm
Has thanked: 2 times

Re: How to setup Go dev environment in puppy linux ?

Post by instantkiddonoread »

Of course, the first thing I look is that devx so I can run git commands.

User avatar
user1234
Posts: 413
Joined: Sat Feb 26, 2022 5:48 am
Location: Somewhere on earth
Has thanked: 154 times
Been thanked: 87 times

Re: How to setup Go dev environment in puppy linux ?

Post by user1234 »

That's great if you've already loaded devx!

For the GoLand, I see that they also have got a similar .tar.gz archive here: https://www.jetbrains.com/go/download/#section=linux. You can install it in the similar way as dimkr has already told you for go.

I've tested it on F-96_4. GoLand's GUI seems to load without needing to install JAVA. Not tested if it runs the go program or not.


If you still need Java, I am not sure if all JDKs are similar since I've never used Java, but the one Ghidra recommends for its installation is this one: https://adoptium.net/. You can install it in the same way. I've installed this and Ghidra in Jammy64, works fine for my use case.

PuppyLinux 🐾 gives new life to old computers ✨

Post Reply

Return to “Programming”