I'm on a Bitnami Cloud Hosting account with a base stack installed for Ubuntu, but I notice that it comes default with Rails 2.3 and Ruby 1.8. I am trying to update those components without reinstalling the whole stack.
I managed to upgrade Rails to 3.2 following these instructions: http://community.bitnami.com/questions/4125/setup-rubystack-32-from-bitnami-cloudhosting-control-panel but I have been unsuccessful in upgrading to Ruby 1.9. Using
apt-get the default system Ruby was updated to 1.9 but not in the
/opt/bitnami files where the stack is located. Is there an easy way to do this?
We are working on including RVM in BitNami Cloud Hosting so you can install Ruby 1.9 easily.
RVM seems to be supported in the BitNami Cloud Hosting stack, and I was able to install Ruby 1.9 easily. Thanks for adding it! However, I'm not able to update Phusion Passenger and nginx to use the newer Ruby. To my understanding, I'll have to recompile nginx with the right Ruby version support, right? So I believe I should run:
rvmsudo gem install passenger
I'd like stuff like
ctlscript.sh start nginx to remain operational, so I assume I should install the recompiled nginx on top of the Bitnami nginx at /opt/bitnami/nginx. Building fails in the linking phase with errors like this:
/opt/bitnami/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.17/ext/boost/date_time/gregorian/greg_day.hpp:20: undefined reference to std::out_of_range::~out_of_range()
Thanks for posting it. We can check this compilation process. As a workaround, does it work for you if you start a RubyStack 1.9.3 AMI from the Amazon console and them migrate this AMI to BCH? This image already have Ruby 1.9.3 and NGinx with passenger module already compiled. This is an easy process, you can find more info at http://bitnami.com/cloud/get-started
Please let us know if this solution works for you.
Thank you Beltrán, I switched to a RubyStack 1.9.3 AMI and it runs Passenger with the newer Ruby out of the box.
Next, I need to figure out why I can only get the static content from my app's public folder, but the app itself is not responding. I tried with both Apache and nginx using the instructions at http://bitnami.com/article/tutorial-rubystack-deployment-alternatives. Any hints? I don't suppose it is a chmod issue, since the static content gets delivered fine.
Could you post your exact configuration? Could you check if there is any Passenger process running?
I got it working, by doing another fresh install on a BitNami RubyStack AMI. I don't know what could have gone wrong with the first attempt. The only difference I can think of is that I didn'n update Ubuntu on my second attempt (apt-get update and apt-get dist-upgrade). Maybe that can mess things up?
Thank you for your excellent support, Beltrán!
apt-update should not affect to the RubyStack installation.