Today, after a while of not using my blog and removing the Github pages site, I was trying to get Jekyll working on Fedora.
I ran into an issue that occured when I ran bundle
to fetch the Ruby dependencies for the blog:
1
2
3
4
5
6
7
8
9
10
11
12
13
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Fetching concurrent-ruby 1.2.3
Fetching http_parser.rb 0.8.0
Fetching colorator 1.1.0
Fetching eventmachine 1.2.7
Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/usr/share/gems/cache/colorator-1.1.0.gem`. It is likely that you need to grant write permissions for that path.
Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/usr/share/gems/cache/http_parser.rb-0.8.0.gem`. It is likely that you need to grant write permissions for that path.
Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/usr/share/gems/cache/concurrent-ruby-1.2.3.gem`. It is likely that you need to grant write permissions for that path.
...
Running gem install ffi
did work though, but I had to do that for each dependency which would take way too long and is not how it is supposed to be done.
In order to fix this you have to change the GEM_HOME
variable to something in your homedir, I used export GEM_HOME=$HOME/gems
and also add export PATH="$HOME/gems/bin"
so you can run the jekyll binary.