rvm

RVM is not a function, selecting rubies with 'rvm use …' will not work

你离开我真会死。 提交于 2019-11-27 16:52:07
List the ruby versions console:~$ rvm list rvm rubies ruby-2.0.0-p481 [ i686 ] # => - current # =* - current && default # * - default Try to use a specific version of ruby console:~$ rvm use 2.0.0 RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change your terminal emulator preferences to allow login shell. Sometimes it is required to use `/bin/bash --login` as the command. Please visit https://rvm.io/integration/gnome-terminal/ for a example. Your console is not running as a login shell and hence have no access to rvm function. If you are running Ubuntu,

Installing in Homebrew errors

南楼画角 提交于 2019-11-27 16:46:59
Attempting to install rvm and ruby 1.9.2 I already installed homebrew and git, but couldn't get complete updates because I kept getting permission errors. Re-installed Snow Leopard and repaired permissions. Now this happens... $ brew install wget Error: Cannot write to /usr/local/Cellar Ben Kreeger sudo chown -R $USER /usr/local You'll have to give yourself ownership of /usr/local/ using that line right there. I had to do this myself after using the ruby one-liner at the top of the official docs to install Homebrew. Worked like a charm for me. It ought to be the only time you'll ever need to

How do RVM and rbenv actually work?

主宰稳场 提交于 2019-11-27 16:37:20
I am interested in how RVM and rbenv actually work. Obviously they swap between different versions of Ruby and gemsets, but how is this achieved? I had assumed they were simply updating symlinks, but having delved into the code (and I must admit my knowledge of Bash is superficial) they appear to be doing more than this. Short explanation: rbenv works by hooking into your environment's PATH . The concept is simple, but the devil is in the details; full scoop below. First, rbenv creates shims for all the commands ( ruby , irb , rake , gem and so on) across all your installed versions of Ruby.

Error running '__rvm_make install'

谁说我不能喝 提交于 2019-11-27 15:16:48
问题 I'm new to programming trying to add Ruby 2.2 using RVM and receiving the below error. I've run rvm get stable and tried reinstalling, but getting the same error. $ rvm reinstall ruby-2.2.0 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.10/x86_64/ruby-2.2.0. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Installing requirements for osx. Updating system.....

How do I make vi editing-mode work in IRB when using RVM?

丶灬走出姿态 提交于 2019-11-27 14:56:13
问题 I " set editing-mode vi " in my .inputrc on my Mac OS system, which allows vi editing in IRB. When I'm using a RVM Ruby, the IRB sessions don't process this directive. Does anyone know a solution? 回答1: Have you got set -o vi set, either at the command-line or in one of your startup scripts? That turns it on for the shell. I have both " set editing-mode vi " and set -o vi and have Vi-like editing in IRB. EDIT: Try creating ~/.editrc , put bind -v in it. Snow Leopard has support for editline

Cannot use ruby-debug19 with 1.9.3-p0? [duplicate]

痴心易碎 提交于 2019-11-27 14:45:34
问题 Possible Duplicate: Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with “Symbol not found: _ruby_threadptr_data_type” I run this: gem install ruby-debug19 And in my cucumber env.rb file, I have this: require 'ruby-debug' When I try to run, though, I get this exception: /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread - /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so

Rails Segmentation Fault on Mac OSX with RVM

断了今生、忘了曾经 提交于 2019-11-27 14:10:27
When creating a new rails app, I get the following error: /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0] All the rails files appear to be generated, but the error above is still there. Any thoughts or suggestions would be greatly appreciated. It looks to me like a problem with LLVM GCC, try with GNU GCC. The easiest way to do that is to install osx-gcc-installer and reinstall ruby: rvm reinstall 1.9.3 EDIT2: it is also possible to use gcc-4.2 available via HomeBrew/MacPorts, install

How to compile ruby with RVM on a low memory system?

本秂侑毒 提交于 2019-11-27 14:08:06
问题 rvm install 1.9.3 leads to the error in the make.log: ... compiling ./enc/trans/emoji_sjis_docomo.c compiling ./enc/trans/emoji_sjis_kddi.c gcc: internal compiler error: Killed (program cc1) gcc: internal compiler error: Killed (program cc1) gcc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. ... dmesg shows [180031.341709] send sigkill to 3705 (cc1), adj 0, size 3394 free shows at some point running configure process:

RVM ruby installation errors - Mac

情到浓时终转凉″ 提交于 2019-11-27 13:03:05
问题 I have tried to install each of the following three versions of Ruby via RVM, each with their own set of errors. I'm more concerned with getting the last one working so I'll focus on that. rvm install 1.8.7 rvm install 1.9.2 rvm install 1.9.3 rvm install 1.9.3 (bash output) 14:10:41: ~/.rvm/config $ rvm install 1.9.3 Fetching yaml-0.1.4.tar.gz to /Users/dionnesaunders/.rvm/archives Extracting yaml-0.1.4.tar.gz to /Users/dionnesaunders/.rvm/src ERROR: Error running 'tar mzxf /Users

Nothing known about… when trying ri String#upcase Ruby

天涯浪子 提交于 2019-11-27 12:21:12
I have just installed the RVM and I am reading The Well-Grounded Rubyist book. In the first chapter I am supposed to try ri String#upcase to view documentation on the upcase method, however I get a message saying: Nothing known about String#upcase I found some posts here on SO telling me that it probably is because RDoc is not installed. However I do not understand how to fix it. I am using Mac OSX 10.6, and latest RVM. I have only installed 1.9.2, in addition to the standard Ruby interpreter which come along with the Developer kit from Apple. Casper Did you generate the docs? rvm docs