בעיות בהתקנת Discourse על WSL

I just ran in the same issue. Here is what I did (maybe too overkill but I’m not an expert ^^)

  1. Install rbenv and ruby-build :
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
  1. Install a new version of ruby :
rbenv install 3.2.2
rbenv global 3.2.2
  1. Install the correct bundler version
    gem install bundler:2.4.13

  2. As I had some permissions issues using “bundle install”, I needed to temporary fix that with :
    sudo chmod -R 777 /home/boris/.bundle

  3. bundle install

Hope it helps