Skip to content

Arch Jekyll Installation Problems

I have spent the last 3 hours trying to get jekyll installed on my machine.

I followed the wiki: https://wiki.archlinux.org/index.php/jekyll line by line but ended up with the following error:

$jekyll -v
bash: jekyll: command not found

I read on stack overflow that the problem is installing jekyll via gem without root privs. So I uninstalled and retried to install using "sudo gem install jekyll" instead. Still no luck.

This is of course with appending path variable as described on the wiki for ruby installation.

I'm hoping that there's something simple or a magic bullet that I missed. Anyone had any luck successfully installing jekyll on arch?

Thanks in advance!

1 points8 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
ainrya

Author

30
posts
92
comments
2
media
View profile

8 comments

That wiki page seems fishy to me. Installing stuff via an alt package manager as root sounds bad. But maybe it's different to things like pip somehow.

Anyway, you added the path to your .profile. Did you actually re source the file after?

6 points

AFAIK on Arch, Ruby is installed with --user-install set in /etc/gemrc per default. Also, the article states

$ gem install jekyll

that would install jekyll somewhere in the home directory (forgot the path).

Edit: I see, you were referring to

# gem install rdiscount -s http://gemcutter.org

That looks quite bad, yes.

1 points

Jekyll can then be installed for all users on the machine using the gem command as root. Alternative installation methods are available on the Ruby page.

This is read right before the command.

2 points

I got it running by following these steps:

  • pacman -S ruby
  • append PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin" to ~/.zprofile
  • append export GEM_HOME=$HOME/.gem to ~/.zprofile
  • source ~/.zprofile
  • gem update
  • gem install jekyll

Worked right of the box for me.

P.S.: You seem to be using bash, so you have to change the above from ~/.zprofile to ~/.bash_profile.

3 points

thank you, i uninstalled and hard removed the .gem folder. Then followed your steps and it worked. I think gem uninstall functioned incorrectly for me.

cheers

2 points

Were you able to get gem running for you as a user? If your installation is successful, and you were able to run gem install jekyll without problems, check if you have your user GEM_PATH set (see wiki on Rubygems).

If you’ve got all that down, check if jekyll is indeed installed on your GEM_PATH.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.