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

**URL:** <https://meta.discourse.org/t/issues-while-installing-discourse-on-wsl/272297>\
**Category:** Self-hosting\
**Tags:** dev-install\
**Created:** [20 ביולי,‏ 2023,‏ 2:07pm UTC](https://meta.discourse.org/t/issues-while-installing-discourse-on-wsl/272297 "2023-07-20T14:07:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Luicid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/luicid/32/306711_2.png) [@Luicid](https://meta.discourse.org/u/Luicid)\
**Post date:** [21 ביולי,‏ 2023,‏ 8:47am UTC](https://meta.discourse.org/t/issues-while-installing-discourse-on-wsl/272297/2 "2023-07-21T08:47:10Z")

</div>

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** :

```plaintext
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 :

```plaintext
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

---

_[View the full topic](https://meta.discourse.org/t/issues-while-installing-discourse-on-wsl/272297)._
