Closed yodrew closed 11 years ago
"gem serve" is a documentation viewer for your gems. It has nothing to do with Serve.
It sounds like your gems/bin folder may not be in your path. It must be in your path in order for your shell to find the "serve" command.
What is the output of this command?
echo $PATH
Also show me the output of:
gem which serve
Ok. Thanks.
Here are the outputs you asked about:
echo $PATH: /usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
gem which serve /var/lib/gems/1.8/gems/serve-1.5.2/lib/serve.rb
On 4/29/13, John W. Long notifications@github.com wrote:
"gem serve" is a documentation viewer for your gems. It has nothing to do with Serve.
It sounds like your gems/bin folder may not be in your path. It must be in your path in order for your shell to find the "serve" command.
What is the output of this command?
echo $PATH
Also show me the output of:
gem which serve
Reply to this email directly or view it on GitHub: https://github.com/jlong/serve/issues/98#issuecomment-17168423
the darkness conjecture — http://andrewdurham.com
Looks like you need to add the bin dir to your ~/.bashrc or ~/.bash_profile:
export PATH=/var/lib/gems/1.8/bin:$PATH
After doing so you will need to reload the file:
source ~/.bashrc
Or,
source ~/.bash_profile
See also: https://help.ubuntu.com/community/RubyOnRails#Installing%20RubyGems
And: http://stackoverflow.com/questions/5616156/rubygems-doesnt-add-var-lib-gems-1-8-bin-to-path
Hi, I have had 3 problems with installation. I have Crunchbang Squeezy distro (debian-base). Aptitude works usually.
What do you think?