rvm

How do RVM and rbenv actually work?

二次信任 提交于 2019-12-17 14:59:16
问题 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. 回答1: 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

undefined symbol: SSLv2_method when running bundle install

﹥>﹥吖頭↗ 提交于 2019-12-17 14:05:58
问题 I'm getting this error when running bundler to install my gems. I've looked around and find no solution to it except installing the openssl pkg on rvm and reinstalling all rubies, doing so did not fix the issue, are there any other possible solutions? This is the output I get running bundle install: Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! /home

Could not find rails (>= 0) amongst [] (Gem::LoadError)

╄→尐↘猪︶ㄣ 提交于 2019-12-17 10:23:49
问题 After installing rvm, updating .gmrc file, updating rubygems and running gem install rails -v ">=3.1.0rc" , I now seem to have a complete mess: $ rails -v /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [] (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec' from /usr/local/lib/site_ruby/1.8/rubygems.rb:1182:in `gem' from /var/lib/gems/1.8/bin/rails:18 myhome@myhome-mini:~$ gem env RubyGems

Mountain Lion rvm install 1.8.7 x11 error

血红的双手。 提交于 2019-12-17 10:08:47
问题 After update to Mountain Lion, I tried install 1.8.7, and I got error. X11 file not found, I installed Xquarkz, but nothing changed. Whats wrong? Fail to find [tclConfig.sh, tkConfig.sh] Use MacOS X Frameworks. Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk. clang -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_RB_SAFE_LEVEL -DHAVE_RB_HASH_LOOKUP -DHAVE_RB_PROC_NEW -DHAVE_RB_OBJ_TAINT -DHAVE_ST_PTR -DHAVE_ST_LEN -DRUBY_VERSION=\"1.8.7\" -DRUBY_RELEASE_DATE=\"2012-06-29\"

How to install RVM on Windows 7

左心房为你撑大大i 提交于 2019-12-17 09:21:58
问题 How do I install RVM on Windows 7? It says to install RVM, and use the following script: user$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) But I have no idea what to do with it. If I type it into cmd an error message comes up saying it was 'unexpected at this time'. What do I do to install RVM? 回答1: No RVM for you! From RVM’s FAQ: Does RVM work on windows? Will it in the future? NO. If you would like to manage multiple versions of ruby

How to install RVM on Windows 7

巧了我就是萌 提交于 2019-12-17 09:21:14
问题 How do I install RVM on Windows 7? It says to install RVM, and use the following script: user$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) But I have no idea what to do with it. If I type it into cmd an error message comes up saying it was 'unexpected at this time'. What do I do to install RVM? 回答1: No RVM for you! From RVM’s FAQ: Does RVM work on windows? Will it in the future? NO. If you would like to manage multiple versions of ruby

Cannot use RVM-installed Ruby with sudo

不羁岁月 提交于 2019-12-17 08:56:05
问题 I have succefully configured RVM to use Ruby 1.9.2 and everything is fine. However when I'm trying to run Ruby using sudo it says it cannot find RVM or Ruby: $ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] $ sudo ruby -v [sudo] password for administrator: sudo: ruby: command not found Is that correct behavior or is my RVM misconfigured? Perhaps I should be using the system wide install? 回答1: Use rvmsudo command instead of sudo 回答2: Taking @calas' answer one step further, add

Issue updating Ruby on Mac with Xcode 4.3.1

ぃ、小莉子 提交于 2019-12-17 05:45:14
问题 I'm using RVM to install it and it gives me this error: The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. I'm on Lion 10.7.3 and I have Xcode 4.3.1. 回答1: Short answer is you can grab RVM master branch (not stable) to build it with LLVM (not gcc, I mistyped initially). It has appropriate patches to make 1.9.3-p125 to run (at least better) with Xcode 4.3.1 by default. I provided the patch. If you already installed

rvm installation not working: “RVM is not a function”

泪湿孤枕 提交于 2019-12-16 22:34:11
问题 I just installed RVM, but can't make it work. I have such line at the end of my .profile file: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" I tried to run source .profile and restarting terminal, but still, when I run rvm use 1.9.2 I'm getting: RVM is not a function, selecting rubies with 'rvm use ...' will not work. My system is Ubuntu 11.10. 回答1: You are not using an login shell. The process of enabling the login flag is described here, also some details on what a login

Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v

不羁岁月 提交于 2019-12-16 19:53:20
问题 Here's the console output: sergio@sergio-VirtualBox:~$ rvm list rvm rubies ruby-1.9.3 [ i386 ] sergio@sergio-VirtualBox:~$ rvm use 1.9.3 Using /usr/share/ruby-rvm/gems/ruby-1.9.3 sergio@sergio-VirtualBox:~$ ruby -v The program 'ruby' can be found in the following packages: * ruby1.8 * ruby1.9.1 Try: sudo apt-get install <selected package> So what's going on? Do I need to reboot my machine? Or should it work right off the bat? I'm using Ubuntu 11.10, any help is appreciated. 回答1: You have