spork: command not found
I've just installed spork via adding the version to the gemfile and running bundle install.
When I g开发者_StackOverflowem list
I can see spork (0.8.4)
so the gem is installed.
Im still tyring to configure spork, so when I type spork --bootstrap
or spork -v
to get see the version i get spork: command not found
Any ideas?
Wherever spork was installed isn't in your PATH
, which is where your prompt looks for commands you type.
If you use a mac spork gets installed with all of your gems, aka at '/Library/Ruby/Gems/1.8/gems/'. Don't know where they go on Ubuntu and in Windows find them under your ruby install.
Try adding /Library/Ruby/Gems/1.8/gems/spork-0.8.4/bin/ to your PATH. PATH is where your computer looks for programs to run On a mac edit ~/.bash_profile and add the line: export PATH=$PATH:/Library/Ruby/Gems/1.8/gems/spork-0.8.4/bin/ to the end
Then don't worry, we all go through learning pains!
In addition to having your gems installed under a directory in your PATH
- which I thin should be handled for you if you are using RVM - be sure to call spork
from your rails directory - Rails.root
. It will not work outside your rails project.
精彩评论