[one-users] Express installation, incompatibility Ruby 1.8.5 and Sunstone, How to upgrade?

Anders Branderud anders.branderud at gmail.com
Sun Jun 12 13:16:54 PDT 2011


Hello!
Thanks for your help!

I use Ruby 1.9.1-p431 installed with RVM.
I tried what you said, but it didn't work.: rackup $SUNSTONE_SERVER -s thin
-p $PORT -o $HOST /usr/local/rvm/gems/ruby-1.9.1-p431/bin

I got the error:
/usr/local/rvm/rubies/ruby-1.9.1-p431/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
: in 'require': no such file to load --
/usr/local/rvm/gems/ruby-1.9.1-431/bin (LoadError)

*I solved the problem instead by doing this:
*Install Ruby Version Manager (RVM)
Install Ruby :rvm install 1.9.1
Install Rack, Sinatra, JSON and thin using RVM specifying that is is for
Ruby 1.9.1 .
rvm use 1.9.1

Then I got another error. I Googled that error and followed the instructions
that I found. It was adding to characters in one file.
After this everything worked !!

-- Kind regards, Anders Branderud

[Personal blog] Will of the
Creator<http://www.proofexistencegod.com/will-of-god/will-of-god/>  :
Logical
reasons - based on scientific premises - for the existence of a Super
intelligent and Orderly Creator and that He hasn't left His sapient
creatures without an Instruction Manual - Torah ['books of Moses'] - to
ascertain, and aspire to, His purpose.

[Company] Anders Branderud IT Solutions - www.abitsolutions.org

2011/6/10 Héctor Sanjuán <hsanjuan at opennebula.org>

> El 07/06/11 15:40, Anders Branderud escribió:
> > I don't know how to configure, so that the newer Ruby-version should be
> > used instead.
>
> Hi, you can try editing bin/sunstone-server, finding the line 76 and
> changing the "rackup" command to the full path to the binary of the ruby
> version you want to use.
>
> 74-  # Start the sunstone daemon
> 75-  touch $SUNSTONE_LOCK_FILE
> 76:  rackup $SUNSTONE_SERVER -s thin -p $PORT -o $HOST \  <---HERE
> 77-                  -P $SUNSTONE_PID &> $SUNSTONE_LOG &
> 78-
>
> Regards,
> --
> Héctor Sanjuán
> OpenNebula Sunstone Developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110612/59fa85e0/attachment-0003.htm>


More information about the Users mailing list