# Error while trying to install Discourse

**URL:** <https://meta.discourse.org/t/error-while-trying-to-install-discourse/76767>\
**Category:** Self-hosting\
**Created:** [December 26, 2017, 10:45am UTC](https://meta.discourse.org/t/error-while-trying-to-install-discourse/76767 "2017-12-26T10:45:16Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Temmyhlee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/temmyhlee/32/82389_2.png) [@Temmyhlee](https://meta.discourse.org/u/Temmyhlee)\
**Post date:** [December 26, 2017, 8:34pm UTC](https://meta.discourse.org/t/error-while-trying-to-install-discourse/76767/7 "2017-12-26T20:34:15Z")

</div>

The directory you typed is /var/www/discourse and when I typed this, I got `bash: cd: /var/www/discourse: No such file or directory`.

When I ran `cd /var/discourse &amp;&amp; gem update bundler` I got this ⬇

`The program 'gem' is currently not installed. You can install it by typing: apt install ruby`

---

_[View the full topic](https://meta.discourse.org/t/error-while-trying-to-install-discourse/76767)._
