# First installation, first problem

**URL:** <https://talk.jekyllrb.com/t/first-installation-first-problem/4551>\
**Category:** Uncategorized\
**Created:** [June 9, 2020, 5:51pm UTC](https://talk.jekyllrb.com/t/first-installation-first-problem/4551 "2020-06-09T17:51:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpc](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jpc/32/2643_2.png) [@jpc](https://talk.jekyllrb.com/u/jpc)\
**Post date:** [June 9, 2020, 5:51pm UTC](https://talk.jekyllrb.com/t/first-installation-first-problem/4551/1 "2020-06-09T17:51:04Z")

</div>

I discovered jekyll: please apologize my crazy questions …  
I tried to install it on Debian Buster.  
I did:  
$ sudo apt-get install ruby-full build-essential

$ gem install jekyll bundler  
as explained in the doc.  
I have the following message:

> Fetching: public\_suffix-4.0.5.gem (100%)  
> ERROR: While executing gem … (Gem::FilePermissionError)  
> You don’t have write permissions for the /var/lib/gems/2.5.0 directory.

Does it mean I shall install as root ?

rgds,

---

<div class="post-metadata">

**Author:** ![brad](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/brad/32/2543_2.png) [@brad](https://talk.jekyllrb.com/u/brad)\
**Post date:** [June 9, 2020, 6:27pm UTC](https://talk.jekyllrb.com/t/first-installation-first-problem/4551/2 "2020-06-09T18:27:27Z")

</div>

If you have Ruby installed in your /var directory and don’t have write permissions there, you could use `sudo gem install <gem-name>`. That will probably require you to use `sudo` every time you do anything with your site.

An alternative might be to use [rbenv](https://github.com/rbenv/rbenv) from your /home directory. The [instructions for installing](https://gorails.com/setup/ubuntu/18.04#ruby) on GoRails, are pretty good.

---

<div class="post-metadata">

**Author:** ![jpc](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jpc/32/2643_2.png) [@jpc](https://talk.jekyllrb.com/u/jpc)\
**Post date:** [June 10, 2020, 2:10pm UTC](https://talk.jekyllrb.com/t/first-installation-first-problem/4551/3 "2020-06-10T14:10:53Z")

</div>

Does it mean that the doc is wrong ?

---

<div class="post-metadata">

**Author:** ![jpc](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jpc/32/2643_2.png) [@jpc](https://talk.jekyllrb.com/u/jpc)\
**Post date:** [June 10, 2020, 2:37pm UTC](https://talk.jekyllrb.com/t/first-installation-first-problem/4551/4 "2020-06-10T14:37:15Z")

</div>

Next step: jekyll new myblog

Your user account isn’t allowed to install to the system RubyGems.  
You can cancel this installation and run:

```
  bundle install --path vendor/bundle

```

to install the gems into ./vendor/bundle/, or you can enter your password  
and install the bundled gems to RubyGems using sudo.

Password:

Does it mean that the doc is still wrong …  
or something is missing

---

<div class="post-metadata">

**Author:** ![brad](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/brad/32/2543_2.png) [@brad](https://talk.jekyllrb.com/u/brad)\
**Post date:** [June 10, 2020, 2:51pm UTC](https://talk.jekyllrb.com/t/first-installation-first-problem/4551/5 "2020-06-10T14:51:29Z")

</div>

The docs aren’t wrong, it’s just that might not be the best way to run your projects.

There is an [question on Stack Overflow](https://stackoverflow.com/questions/42843948/rails-your-user-account-isnt-allowed-to-install-to-the-system-rubygems) that might be useful. The [second answer](https://stackoverflow.com/a/42844361/3921815) is basically what I was suggesting in this thread, but there is a lot of useful info in that thread.
