#1 By: Kevin_S, July 1st, 2012 16:56
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?
#2 By: Beltran Rueda Borrego, July 2nd, 2012 13:26
We are working on including RVM in BitNami Cloud Hosting so you can install Ruby 1.9 easily.
#3 By: Henry_Haverinen, October 9th, 2012 04:45
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()
#4 By: Beltran Rueda Borrego, October 9th, 2012 13:50
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.
#5 By: Henry_Haverinen, October 9th, 2012 15:51
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.
#6 By: Henry_Haverinen, October 9th, 2012 16:19
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.
#7 By: Beltran Rueda Borrego, October 10th, 2012 13:22
Could you post your exact configuration? Could you check if there is any Passenger process running?
#8 By: Henry_Haverinen, October 10th, 2012 14:57
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!
#9 By: Beltran Rueda Borrego, October 11th, 2012 12:35
apt-update should not affect to the RubyStack installation.