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 am trying to install Ruby on Rails and I have followed the following link for the install
https://www.digitalocean.com/community/articles/how-to-install-ruby-on-r....
After rvm installation on CentOS 5.8:
[rails@localhost ~]$ rvm -v
rvm 1.16.17
[rails@localhost ~]$ which ruby
~/.rvm/rubies/ruby-1.9.3-p286/bin/ruby
[rails@localhost ~]$ ruby -v
ruby 1.9.3p286 (2012-10-12 revision 37165) [i686-linux]
[rails@localhost ~]$ which gem
~/.rvm/rubies/ruby-1.9.3-p286/bin/gem
there is a warning:
$ gem -v
/home/rails/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/yaml.rb:5
I am trying to install Ruby on Rails. and i have followed the following link for the install
https://www.digitalocean.com/community/articles/how-to-install-ruby-on-r....
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
(Debian squeeze)
rvm version: 1.10.0
I have just installed ruby 1.9.2-p290 using "rvm install 1.9.2" and made it default. However, I am getting this error when trying to install rails using rubygems.
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 RVM installed with Ruby 1.9.3 and Rails
$ rails -v
Rails 3.2.8
system: "redhat/5.8/x86_64"
I am trying to start the rails server using either: 'rails server -d' or even just 'rails'
however I am getting the following error:
$ rails server -d
/home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': libcrypto.so.1.0.0: cannot ope
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.