Skip to content

Instantly share code, notes, and snippets.

@Axeltherabbit
Last active October 7, 2022 10:32
Show Gist options
  • Save Axeltherabbit/878750dd9680a64a55140f3d88c01cda to your computer and use it in GitHub Desktop.
Save Axeltherabbit/878750dd9680a64a55140f3d88c01cda to your computer and use it in GitHub Desktop.
Riak for WSL with systemd
# this is for WSL ubuntu 20
# enable systemd and reboot windows https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/
curl -fsSL https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/erlang.gpg
echo "deb https://packages.erlang-solutions.com/ubuntu focal contrib" | sudo tee /etc/apt/sources.list.d/erlang-solution.list
sudo apt update
sudo apt upgrade
sudo apt-get install build-essential libc6-dev-i386 git cmake make ubuntu-dev-tools erlang curl software-properties-common apt-transport-https lsb-release libpam0g-dev debhelper
sudo update-alternatives --set fakeroot /usr/bin/fakeroot-tcp # workaround to fix wsl fakeroot problem
git clone https://github.com/basho/riak.git
cd riak
make package RELEASE=1
sudo dpkg -i rel/pkg/packages/FILLTHISWITHTHEDOTDEBFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment