installing ruby 2.0.0 rvm osx 10.6 - ruby-on-rails

I'm having a bit of a problem upgrading Ruby to 2.0.0 and Rails to 3.2.13. I was using this guide, and got to the step to create a new project specific gem list for ruby 2.0.0 and rails 3.2.13.
here's the code
and the files:
/usr/local/rvm/log/ruby-2.0.0-p0/yaml/configure.log:
http://txtup.co/f7taC
/usr/local/rvm/log/ruby-2.0.0-p0/openssl/configure.log:
http://txtup.co/vmXHM
/usr/local/rvm/log/ruby-2.0.0-p0/yaml/make.log:
http://txtup.co/wIowb
/usr/local/rvm/log/ruby-2.0.0-p0/openssl/make.log:
This is massive. I'll upload it if you ask me to
/usr/local/rvm/log/ruby-2.0.0-p0/configure.log:
http://txtup.co/zbNiz
If there's anything else you need, let me know. Not sure what I've done, but not really sure what to do next. Thanks!

try:
rvm get head
rvm install 2.0.0 --autolibs=4

Related

How do I upgrade a rails 4.1 app from ruby 1.9.3 to ruby 2.1.5 without using rvm

I'm told to update my rails project from ruby version 1.9.3 to 2.1.5 but I don't know how
I updated my gem file to reflect 2.1.5, and then tried bundle install again, it seemed to work mostly...
Then I tried rake db:migrate and it couldn't handle it. so I don't think I "updated correctly"
I don't have RVM so I didn't know what to do with this answer.
Can someone please help me update my code or point me in the right direction?
You're on Windows? Check out Ruby installer here: http://rubyinstaller.org/. Should be able to update Ruby that way.

how to convert Ruby application 1.8.7 to 1.9.2

hi I have one application in ruby but in that application developed in ruby 1.8.7, now I am using ruby 1.9.2 any possibility to change my application 1.8.2 to 1.9.2 or 1.9.3
Hope this tutorial is helpful to start working on upgrading your application to Ruby-1.9.3
He explained nicely how to upgrade from Ruby-1.8.7 to Ruby-1.9.3
Given that your rails app is using day-to-day ruby functions, upgrading to ruby 1.9 should not be an issue, however read this major changes note, from ruby 1.8 to 1.9.x and see if you are using any methods that are mentioned there. But practically in most cases your rails app should run without any modifications.
And when you are installing ruby1.9.x use RVM (Ruby Version Manager) , to have your both ruby 1.8.7 and 1.9 versions side-by-side.
and if you have a good test suite, this should not be a problem at all :)
best of luck

Cannot create new rails 3.2.6 site

I have installed ruby 1.9.3p194. I have also installed rails 3.2.8,3.2.6,and 3.0.3. I am able to create a new site using rails versions 3.2.8 and 3.0.3. When I try to create a site with rails 3.2.6 it rails to work.
rails _3.2.6_ new example
/Users/Dave/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb:317:in `bin_path': can't find gem rails (["3.2.6"]) with executable rails (Gem::GemNotFoundException)
from /Users/Dave/.rvm/gems/ruby-1.9.3-p194/bin/rails:19:in `<main>'
from /Users/Dave/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/Dave/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
I have tried uninstalling 3.2.6 and reinstalling but the result is the same. Any help would on this would be great.
UPDATE: I was able to solve this problem by uninstalling both 3.2.6 and 3.0.3 and then reinstalling 3.2.6. Not sure why this worked but it does. At some point I need to install 3.0.3 can these versions not co-exist?
After spending some time looking at gemsets that was definitely the solution to this problem. I set up RVM and installed two versions of Ruby. Then I setup gemsets for each version that had the version of rails I needed to write code for the book I was working through and the web server I am using.

Rails Starting Up With Wrong Version of Ruby

TLDR: How do I force a rails app to use the correct ruby interpreter?
Hello,
Something hosed parts of my Ruby 1.9.2p290 install (certain classes just went missing one day), so I removed it and attempted to reinstall the environment.
I'm running on Snow Leopard.
Ruby 1.9.2 was installed from source. (I tried to install via MacPorts and it would fail). I am not keen on RVM as I use bundler and I seem to recall some problems with how bundler and RVM interact, though from what I can tell RVM works.
After reinstalling a few gems I noticed they were being placed in a gem folder for Ruby 1.8. "This is weird," I thought.
Starting up the rails app, I notice a lot of weird exceptions being thrown regarding syntax. After printing RUBY_VERSION to stdout, I noticed that the Rails app is running 1.8.7.
which ruby shows only one ruby interpreter:
$ which ruby
/usr/bin/ruby
$ /usr/bin/ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
If I open up Activity Monitor, the ruby process from the Rails app lives at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby, which I believe is the ruby interpreter that OSX shipped with.
I haven't found any information on completely purging Ruby from OSX. I would love to do that then simply install ruby from source.
It seems there are two problems:
Rails is running a ruby interpreter that I have no idea how it is calling, when I need it to run the 1.9.2 interpreter installed from source
gems are being installed in a 1.8 folder, I suspect because gem thinks its running under 1.8
How do I fix this?
Thank you,
Tom
I guess the best way to overcome this issue is using rvm to handle your Ruby and Rails environments through 'gemset's.
I had the same issue and I use gemsets now without a problem.
This is the article which I got things working:
http://stjhimy.com/posts/10-five-quick-steps-to-set-up-rvm-with-rails-2-and-rails3

RoR - RubyGems not installing?

trying to install bcrypt-ruby-2.1.4. I have to use rvm to remove ruby 1.9.2, then reinstall/compile, then I can install the bcrypt gem, however the gem is only active in that one terminal session. If I open another tab in terminal I get the following error "Could not find bcrypt-ruby-2.1.4 in any of the sources"
If I close the terminal, I will no longer be able to use the bcrypt gem (or json, or cucumber) unless I remove and recompile ruby again?
Not sure how to even google for help on this? Any ideas or help would be greatly appreciated.
Bobby
running osx 10.6.8
ruby 1.9.2-p180
You're probably using a different rvm set when you're opening a new terminal.
Since OS X doesn't come with Ruby 1.9.2, you are being defaulted to the system installation of Ruby.
http://beginrescueend.com/rubies/default/ Check out this link to learn how to set a default Ruby version.
Go to your terminal and type in
rvm --default use 1.9.2
This will make 1.9.2 the default Ruby in all Terminal windows.

Resources