spork: command not found

828 views Asked by At

I've just installed spork via adding the version to the gemfile and running bundle install.

When I gem 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?

3

There are 3 answers

4
Dan Grossman On BEST ANSWER

Wherever spork was installed isn't in your PATH, which is where your prompt looks for commands you type.

0
Joel Jackson On

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!

0
Igbanam On

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.