Re: How to completely reinstall my rails environment on Mac Lion?

78 views
Skip to first unread message

Rocky

unread,
Jul 4, 2012, 4:11:00 AM7/4/12
to rubyonra...@googlegroups.com
$gem uninstall rails -a

... will un-install all versions of rails.

$gem install rails

... puts it back again.

You can check your rails version before and after by doing:

$rails -v


On Wednesday, 4 July 2012 01:02:30 UTC+1, Runy Calmera wrote:
Hi,
I was learning rails and have completed some projects. On my laptop everything worked for quite some time. However now when I run rails new testapp, for example it doesn't generate even the first testapp. How can I completely reinstall a rails environment on my mac? I ran several step by step tutorials how to do this, but it seems that the old rails environment is conflicting. I also downloaded Xcode already, tried rvm, tried Homebrew everything seems. It just doesnt work.

Help. I want to continue developing.

CavalryJim

unread,
Jul 4, 2012, 9:03:37 AM7/4/12
to rubyonra...@googlegroups.com
I would also recommend using rvm - ruby version manager. It allows you to easily install and switch between versions of ruby and maintain multiple sets of gems...to include rails.

hanish jadala

unread,
Jul 4, 2012, 9:40:59 AM7/4/12
to rubyonra...@googlegroups.com
gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx
 THIS COMMAND WILL UNINSTALL ALL THE GEMS IN UR SYSTEM .AFTER THAT INSTALL AGAIN WHAT YOU NEED.

On Wed, Jul 4, 2012 at 6:33 PM, CavalryJim <james.d...@gmail.com> wrote:
I would also recommend using rvm - ruby version manager. It allows you to easily install and switch between versions of ruby and maintain multiple sets of gems...to include rails.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/SLmzxrL0y8QJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.


Reply all
Reply to author
Forward
0 new messages