Jekyll - command not found

后端 未结 15 1829

I am trying to get Jekyll running but I have no experience with Ruby.
As far as I can tell the installation of Jekyll has succeeded.
However:

$ jekyll
         


        
15条回答
  •  被撕碎了的回忆
    2021-01-31 02:55

    Jekyll is a ruby gem : Ruby gems in linux, for example, are in /var/lib/gems/1.8, as can be seen in the "ruby env" output.

    Thus, you need to add the executables in this directory to your path.

    In general, if a ruby gem is "not found" by your OS, it simply indicates that either

    1) You don't have the gem installed or

    2) You don't have the gem installed in a directory that is on your path.

    I have found that there have been a few issues with installing ruby and ruby gems on linux (I have found that it can be tricky on Ubuntu v10, and have confirmed this with the Ruby folks on IRC). Thus, tools like RVM or rbenv might be the best approach to setting up a stable, maintainable ruby environment.

提交回复
热议问题