GOLF(2gg)
β¨ NAME β¨
okay so bestie, welcome to the GOLF(2gg) manual page π today's main character is install-in-any-folder-debian-ubuntu-raspbian β it's the Golf documentation, also known as install-golf π
πΈ DESCRIPTION πΈ
so here's the vibe: you can install Golf without root access, like in some user's home directory, and honestly? iconic. it's a whole lifesaver if you don't have root permissions at all, or if you're just the type who wants to test stuff locally before committing to a full system install π
to install Golf locally with no root, first decide which directory you wanna put it in. any directory you have read/write access to works β no cap. in this example we're using the $HOME/.app/golf directory, because it's cute and cozy π¦
Step one: set the Golf root directory β¨
GG_ROOT="$HOME/.app/golf"
Step two: download the Golf source code and extract it π¦
wget "https://github.com/golf-lang/golf/archive/refs/heads/main.tar.gz" -O main.tar.gz
tar xvfz main.tar.gz
cd golf-main
Step three: install dependencies β lowkey you do need root access for this part π (or if you don't have it, ask your System Administrator to do these tasks for you, they're literally there for this):
sudo apt update
sudo apt -y install devscripts equivs build-essential
yes|mk-build-deps -i -s sudo debian-upstream/control
Step four: compile the source π₯
make -j$(nproc) GG_LOCAL=1 DESTDIR="$GG_ROOT"
Step five: install Golf π
make GG_LOCAL=1 DESTDIR="$GG_ROOT" install
for real though β for the installation to actually take effect, you must update your paths, so that executables and other files (like man pages, bestie) get found:
export GG_ROOT="$HOME/.app/golf"
export PATH="$GG_ROOT/usr/bin":$PATH
export C_INCLUDE_PATH="$GG_ROOT/usr/include":$C_INCLUDE_PATH
export MANPATH=$GG_ROOT/usr/share/man/:$MANPATH
mandb -u -c
and to make those path settings permanent, just add all those exports to the end of your $HOME/.bashrc file so it runs every time you start a new session (or honestly, in any other file you execute before working with Golf β your call, main character energy either way π).
congrats bestie, you've installed Golf! πβ¨
π§ Testing it (the vibe check)
to test, type this in the command line:
gg -g
if you see the path you chose for GG_ROOT up there, it's working! periodt π
π a few notes (bc we skipped root, and that has consequences)
- SELinux script for Golf requires root to install β and this is true for any software, not just Golf, so don't come for Golf specifically π if you use SELinux, either set it to permissive, or use a Linux distro that doesn't use (or set) it.
- if you're using Unix sockets (for instance for web servers to talk to your Golf server), your
$HOMEdirectory and the Golf root directory must be searchable to access those sockets. so like:
chmod o+x $HOME
find $HOME/.app/golf -type d -name '*' -exec chmod o+x {} \;
if you're using TCP ports, then this whole setup isn't necessary β you can skip it, no stress π«Ά
here's how to uninstall. π
β SEE ALSO β
- Install golf
install-arch-manjaroinstall-debianinstall-fedora-redhat-rocky-alma-centos-amazon-mageiainstall-from-source-arch-manjaroinstall-from-source-debian-ubuntu-raspbianinstall-from-source-fedora-redhat-rocky-alma-centos-amazon-mageiainstall-from-source-opensuseinstall-in-any-folder-arch-manjaroinstall-in-any-folder-debian-ubuntu-raspbianinstall-in-any-folder-fedora-redhat-rocky-alma-centos-amazon-mageiainstall-in-any-folder-opensuseinstall-opensuseinstall-raspbianinstall-ubuntuuninstall- See all documentation
okay that's the whole page bestie, you ate π
this version is $VERSION, dated $DATE, and it's part of the GOLF(2gg) Development set β go forth and golf, ily πβ¨
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms