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.
Ruby: Denial of Service
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.
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.
Im getting that alert (Linode server) every couple of day.
Top shows 110% usage by ruby.
In not doing any script with ruby, but i do use Redmine and SASS on this server, how do i debug this? how i know what is calling ruby?
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
29368 root 20 0 48440 9648 1616 S 110 1.9 598:18.25 ruby
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
which -a ruby gives me
/usr/ruby
/usr/ruby
/usr/ruby
It gives the same path three times. Why does this happen?
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
Lately there have been a lot of one-liners posted in "ruby" on the apparent assumption that mainstream unix or Linux come with "ruby. They don't.
What is "ruby"?
What platforms and Operating System versions are supported?
The syntax for "ruby" seems remarkably obscure compared with say "awk" or "perl". Is it related to APL?