I have been trying to understand RVM and decided to do so by not using it and seeing the consequences. I am trying to see how I can manage different versions of ruby and their gemsets without RVM.
I compiled Ruby 1.9.1 from source on my Ubuntu machine and found it in the path usr/local/bin/ruby.
So I was making a cgi ruby script and had the following at the top of the script file:
#!/usr/bin/env ruby
require 'rubygems'
require 'action_pack'
require 'cgi'
After a couple of hours of not getting "/usr/bin/env: ruby: No such file or directory" error and google searching, I uninstalled my system ruby 1.8.7 (I also had 1.9.3 installed via rvm) by doing sudo apt-get purge ruby rubygems.
I'll let the shell log explain itself:
root:~# rvm current
system
root:~# which ruby
/usr/bin/ruby
root:~# rvm use 1.9.2
Using /root/.rvm/gems/ruby-1.9.2-p290
root:~# rvm current
ruby-1.9.2-p290
root:~# which ruby
/root/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
root:~# rvm system
root:~# rvm current
system
root:~# which ruby
/root/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
root:~#
At this point, if rvm cl
Hi,
I am a php developer and I decided to learn ruby on rails.
I have a few question.
I have an ubuntu virtual machine with lamp.
It mean that it has alrweady php and when I access the ip of the machine from my browser it does load the index.php.
if I install ruby on rails will theere be collision between the php and ruby or the server just know that if I ask for ruby file or for php.
I have NGiNX setup, and would like to be able to run sites I create in Ruby.
However my server is pretty fail, only like 250mb memory, probably less, so instead of having to run each Ruby site with the Thin server I want to run the Ruby sites only when they are accessed, like the way PHP works with the PHP-FPM server.
How does one go about this with NGiNX and Ruby?
which -a ruby gives me
/usr/ruby
/usr/ruby
/usr/ruby
It gives the same path three times. Why does this happen?
today, I was installing ruby from compiling, and I followed instructions to use the sudo command, but I ended up with some folder permission issues.
I am using Ubuntu 12.04 64 bits.
Ruby, an object-oriented language for quick and easy programming, has just reached version 2.0.0.
Ruby 2.0.0 is the first stable release in this branch and comes with new features and improvements, in response to the increasingly diverse and expanding demands for Ruby.
Highlights of Ruby 2.0.0:
• Keyword arguments have been added, giving flexibility to the API design;
• This version i