Search code examples
rubyjekyll

After installing jekyll, getting -bash: jekyll command not found


hey there jekyll users... I am new to using ruby/rvm and have followed the instructions to install it on my mac locally, and then installed the jekyll gem, but when i try to run jekyll commands I get

bash: jekyll: command not found

Any advice?

I know that when I installed rvm, (or maybe it was during the homebrew install), I received a notice that I have both .profile and .bash_profile and it asked me to add source ~/.profile to .bash_profile could that be the problem?

I've also tried installing using this command gem install --source http://rubygems.org jekyll and it says it installs but when I try jekyll in the terminal, I keep getting command not found.

If there is any more information I need to post to help, please let me know.


Solution

  • I know that when I installed rvm, (or maybe it was during the homebrew install), I received a notice that I have both .profile and .bash_profile and it asked me to add source ~/.profile to .bash_profile could that be the problem?

    Yes. Do what it said there and you should have access to the jekyll command.

    user$ echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile