Ruby: Denial of Service
Ruby OpenID: Denial of Service
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: Terminal Control Character Injection
So I was making a cgi ruby script and had the following at the top of the script file:
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 have Ruby 2.0.0 installed on Ununtu 14.04 but I can't remove Ruby 1.9.1. When installing new gems I always get pointed to Ruby 1.9.1.
How can I definitely switch to Ruby 2.0.0?
I'd want to run several Ruby processes that will communicate (by HTTP) with another "service" daemon process. Daemon process is a usual program, not a Ruby process.
Ruby processes can be started in any order. The first one will start "service" process and use it.
I installed RVM using the following command
\curl -L https://get.rvm.io | bash -s stable
Then I restarted the terminal and executed this commands
rvm install ruby
rvm use ruby --default
If I run this commands when I start the terminal I get ruby 2.1.2 as the default ruby version, but if I restart the terminal and I run
I get the following
I install a ruby package.
$ sudo gem install pdfbeads
ERROR: Error installing pdfbeads:
nokogiri requires Ruby version >= 1.9.2.
says that it needs ruby version greater than 1.9.1.
My ruby is 1.8.7.
$ which ruby
$ ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
$ gem --version
I have ruby 1.9.1 and 1.9.3.
I installed GitLab on an EC2 instance a while ago, compiling Ruby from scratch:
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
$ which ruby
What's really strange is that whenever I start anything with this Ruby interpreter, such as a GitLab backup job, restarting the GitLab worker, etc.