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 -- Posted via http://www.ruby-forum.com/.
What OS?? On ubuntu I had to install rubygems by hand There is no stable deb package for it yet sadly -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Uri Grinwald Sent: Thursday, August 17, 2006 9:36 AM To: rails@lists.rubyonrails.org Subject: [Rails] sudo: gem: command not found 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 -- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
Uri Grinwald 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 > UriHeres an Ubuntu guide, might be helpful: http://www.urbanpuddle.com/articles/2006/06/10/install-ruby-rails-on-ubuntu-dapper-drake -- Posted via http://www.ruby-forum.com/.
On 8/17/06, Uri Grinwald <ugrinwald@dynamic.ca> 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 foundit 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 Grinwald <ugrinwald@dynamic.ca> 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-pierreUpon closing the terminal and re-opening the command finally worked. Thanks to all for your assistance. -- Posted via http://www.ruby-forum.com/.
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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bryan Dunsmore 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-dependenciesrvmsudo worked for me. Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.