Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ruby

jekyll

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.

like image 273
codeadventurer Avatar asked Sep 13 '26 07:09

codeadventurer


1 Answers

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
like image 148
Jorge Israel Peña Avatar answered Sep 14 '26 20:09

Jorge Israel Peña



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!