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!
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- ainrya
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?
AFAIK on Arch, Ruby is installed with
--user-installset in/etc/gemrcper default. Also, the article statesthat would install jekyll somewhere in the home directory (forgot the path).
Edit: I see, you were referring to
That looks quite bad, yes.
This is read right before the command.
Yeah and checked echo $PATH to make sure all was kosher
I got it running by following these steps:
pacman -S rubysource ~/.zprofilegem updategem install jekyllWorked 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.
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
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 jekyllwithout problems, check if you have your userGEM_PATHset (see wiki on Rubygems).If you’ve got all that down, check if jekyll is indeed installed on your
GEM_PATH.