I opened up my file .bash_login and have the following path
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
The when I try and install Ruby on Rails via this command line:
sudo gem install rails --include-dependencies
I receive this error:
sudo: gem: command not found
Any help please.
Thanks
Uri
Uri G. wrote:
I opened up my file .bash_login and have the following path
export PATH=“/usr/local/bin:/usr/local/sbin:$PATH”
The when I try and install Ruby on Rails via this command line:
sudo gem install rails --include-dependencies
I receive this error:
sudo: gem: command not found
Any help please.
Thanks
Uri
Heres an Ubuntu guide, might be helpful:
http://www.urbanpuddle.com/articles/2006/06/10/install-ruby-rails-on-ubuntu-dapper-drake
What OS??
On ubuntu I had to install rubygems by hand
There is no stable deb package for it yet sadly
On 8/17/06, Uri G. [email protected] wrote:
I opened up my file .bash_login and have the following path
export PATH=“/usr/local/bin:/usr/local/sbin:$PATH”
The when I try and install Ruby on Rails via this command line:
sudo gem install rails --include-dependencies
I receive this error:
sudo: gem: command not found
it sounds as though gem is not in your path, have you ruby installed
on your machine?
% which ruby
% which gem
cheers,
jean-pierre
unknown wrote:
On 8/17/06, Uri G. [email protected] wrote:
I opened up my file .bash_login and have the following path
export PATH=“/usr/local/bin:/usr/local/sbin:$PATH”
The when I try and install Ruby on Rails via this command line:
sudo gem install rails --include-dependencies
I receive this error:
sudo: gem: command not found
it sounds as though gem is not in your path, have you ruby installed
on your machine?
% which ruby
% which gem
cheers,
jean-pierre
Upon closing the terminal and re-opening the command finally worked.
Thanks to all for your assistance.
If you installed Ruby via RVM (you should of) you need to use the
rvmsudo
command. Ergo:
sudo gem install rails --include-dependencies
Becomes:
rvmsudo gem install rails --include-dependencies
you can get error like: sudo: gem: command not found
you can type in the terminal “sudo apt-get install rails rails-doc
rails-ruby1.8” and next type “sudo gem install rails mysql
sqlite3-ruby mongrel” rails will be install
any help go to “http://venkatinlinux.blogspot.com” and search rails
installation
Regards
venkat
Bryan D. wrote in post #1038409:
If you installed Ruby via RVM (you should of) you need to use the
rvmsudo
command. Ergo:
sudo gem install rails --include-dependencies
Becomes:
rvmsudo gem install rails --include-dependencies
rvmsudo worked for me. Thanks.