Install ruby by rvm

I try to install ruby 2.1.1 by RVM and I receive following error: vmamaev@vmamaev:~$ rvm install ruby-2.1.1 ruby-2.1.1 – #removing src. Searching for binary rubies, this might take some time. No binary rubies available for: debian/7/i386/ruby-2.1.1. Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies. Checking requirements for debian. … Read more

RVM Mixed Mode – Local Gem Installation

This thing is driving me nuts. I’ve installed RVM on a CentOS server; I followed the mixed mode instructions perfectly. https://rvm.io/rvm/install/ When I try to do a “gem install” from a user account however, I get this: You don’t have write permissions into the /usr/local/rvm/gems/ruby-1.9.3-p194 directory. It is my understanding that if RVM mixed mode … Read more

Bundler won’t install

I’m in a strange situation, I install bundler in my RVM gemset, it sais it installed correctly, but when I try to run it asks me to to install bundler again: here is a transcript of my terminal interaction: abc@li243-166:/srv/www/dinner/current$ bundle ERROR: Gem bundler is not installed, run `gem install bundler` first. abc@li243-166:/srv/www/dinner/current$ gem install … Read more

rvm doesn’t install in centos without root privileges [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago. I trying to install RVM using deployer user … Read more

Passenger + RVM returns 502 for ruby 1.8.7 (passenger_root lies in ruby 1.9.3)

I’m using Passenger + RVM + Nginx, and my Rails applications which are configured for Ruby 1.9.3 work fine, but those for 1.8.7 always return a 502 error. Can anyone spot the trouble? My config is as follows: worker_processes 1; events { worker_connections 1024; } http { passenger_root /usr/local/rvm/gems/ruby-1.9.3-p448@mygems/gems/passenger-4.0 passenger_log_level 2; include mime.types; default_type application/octet-stream; … Read more

Installing Passenger in MacOS X using Brew and RVM

#Install RVM bash <<( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) #Install ruby 1.9.2 rvm install 1.9.2 # Set as default rvm –default 1.9.2 # Install passenger in the global gemset rvm @global gem install passenger # Install Nginx brew install nginx –with-passenger cp /usr/local/Cellar/nginx/0.8.54/org.nginx.plist ~/Library/LaunchAgents launchctl load -w ~/Library/LaunchAgents/org.nginx.plist # Decompress the source of Nginx. cd $HOME/Library/Caches/Homebrew tar … Read more

issue with installing rails using rubygem

I tried doing the following: sudo gem install rails and I always get the error message: Successfully installed rails-3.0.9 1 gem installed Installing ri documentation for rails-3.0.9… file ‘lib’ not found Installing RDoc documentation for rails-3.0.9… file ‘lib’ not found How do I fix this? Answer This was an issue with documentation, the gem itself … Read more

How to use Passenger (apache2 module) with 2+ Rails apps using each one different gemsets

Let’s suppose I want to host 2 rails apps in the same server. I’d use RVM (installed as multiuser) and two different gemsets; suppose gemsetA for appA and gemsetB for appB. What’s the best way to manage this situation with Passenger module for apache2? Install and compile passenger apache2 module for each gemset or create … Read more

rvm doesn’t revert back to system 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 claims that the current installation is “system”, shouldn’t ruby … Read more

rvm “default” version implementation

According to the official site (http://beginrescueend.com/rubies/default/), the “default” setting of rvm controls the ruby version that is loaded “when you open a new terminal shell”. I am wondering, how exactly does rvm implement this functionality? It doesn’t seem to be via .bash_profile/.bashrc (they are unmodified). It might be attributed to my using PuTTY on Windows … Read more