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 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.
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 hope my title isn't confusing. I've got a CentOS 5 machine and I had Ruby 1.8.7 installed on here. So in order to upgrade my Ruby installation and gems/rails I
Uninstalled Ruby: sudo yum remove ruby
Downloaded the latest stable release of ruby and untared it: wget...
I want to install rails environment on ubuntu 11.04.
I type:
sudo apt-get install ruby-rvm => Unable to locate package ruby-rvm
what i made in Ubuntu 11.10 to make the same task (But my current pc is ubuntu 11.04):
sudo apt-get install ruby-rvm
rvm install ruby-1.9.3-p125
sudo gem update --system
sudo gem install rails
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
Download the source for openssl-0.9.8l
http://www.openssl.org/source/openssl-0.9.8l.tar.gz
$ tar -zcvf openssl-0.9.8l.tar.gz
$ cd openssl-0.9.8l
$ ./config --prefix=/usr/local --openssldir=/usr/local/openssl
$ make clean
$ make
$ sudo make install
I am not ruby guy, but I have good experience with apache and php, but I find it really difficult to setup ruby 1.8.7, cause I find a lot of ways to do the same and I am pretty much confused. I want to install open source project management system fedena in ubuntu 12.10 which required ruby 1.8.7 to run.