Clear Slate Install Rails

Father, I did terrible things. I completely messed up my system. It all started when I tried to get Rails to use the same MySQL as my MAMP PRO. (I still have not been able to work together). It ended badly and is only getting worse.

Last error message:

➜ ~ rails /Users/hb/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError) from /Users/hb/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /Users/hb/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:1208:in `gem' from /Users/hb/.rvm/gems/ruby-1.9.3-p0/bin/rails:18:in `<main>' 

So, I decided that probably I should just wipe the system from my RVM and Rails installations, and then reinstall everything in one correct way (I was currently experimenting with different approaches, including installing rails gem as sudo, without sudo, and with RVM). This mess is very confusing, and I have no idea how I even pulled it out (to ruin everything).

Anyway, can someone please tell me how to make a clean napkin on all precious stones, so there will be no rails in my system, so I can do a clean installation. Also, what would be the best way to install rails on Mac OS X Lion. Should I use RVM if I intend to use only the latest version of Ruby and Rails?

I don’t want to just forget about the gems in my system if I use rvm, as from time to time I run into problems with accidentally using sudo or not. I think it's best to have one and the same.

Greetings.

+2
ruby ruby-on-rails rvm macos
Feb 08 2018-12-12T00:
source share
2 answers

Here is an article showing how to remove all gems , but be careful!

Then here is the set of commands for performing a clean installation of ruby ​​1.9.3 and rails 3.2 without RVM:

 curl ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz -o ruby-1.9.3-p0.tar.gz tar xvf ruby-1.9.3-p0.tar.gz cd ruby-1.9.3-p0/ autoconf ./configure --program-suffix=19 --enable-shared --with-readline-dir=/usr/local make && sudo make install 

Then download the latest rubigems from here: http://rubyforge.org/frs/download.php/75711/rubygems-1.8.15.tgz

 tar xvf rubygems-1.8.15.tgz cd rubygems-1.8.15 sudo ruby setup.rb 

And finally, install the rails

 sudo gem install rails 

Hope this helps!

+3
Feb 08 2018-12-12T00:
source share

I had the same problem. I fixed mine by editing the Gemfile and changing

source 'https://rubygems.org'

-to-

source 'http://rubygems.org'

+1
Feb 08 2018-12-12T00:
source share



All Articles