rvm

How do I change my Ruby version using RVM?

给你一囗甜甜゛ 提交于 2019-11-26 15:04:01
问题 I am not able to switch the current Ruby version: ➜ ~ rvm list rvm rubies ruby-1.9.2-p290 [ x86_64 ] ruby-1.9.3-p0 [ x86_64 ] ➜ ~ rvm use ruby-1.9.3-p0 RVM is not a function, selecting rubies with 'rvm use ...' will not work. 回答1: Fixed it. I needed to add: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM to .zshrc 回答2: This happened to me too. I had: export PATH=~/.rvm/bin:$PATH Added in my .bashrc. All I had to do was add another [[ -s "$HOME/.rvm/scripts/rvm

Is there a python equivalent of Ruby's 'rvm'?

吃可爱长大的小学妹 提交于 2019-11-26 14:59:53
问题 Q: Do we have anything functionally equivalent in Python to the Ruby version manager 'rvm'? ( RVM lets you easily switch completely between different versions of the ruby interpreter and different sets of gems (modules). Everything concerning download-build-install-switch of interpreter(-s) and gems gets taken care of by invoking rvm. It is all run under your regular user account.) 回答1: Yes, it is virtualenv along with virtualenvwrapper. update: you may install both at once with virtualenv

“Certificate verify failed” OpenSSL error when using Ruby 1.9.3

不打扰是莪最后的温柔 提交于 2019-11-26 13:45:31
问题 I'm using Ruby 1.9.3p0 on Mac OS 10.6.8 (installed using rvm). When I attempt to create a new Rails application using an application template hosted on GitHub, with this (for example): $ rails new myapp -m https://github.com/RailsApps/rails3-application-templates/raw/master/rails3-mongoid-devise-template.rb -T -O I get this error message: /Users/me/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:

How do I “activate” a different version of a particular gem?

家住魔仙堡 提交于 2019-11-26 12:35:12
问题 I want to switch between rails 2.3.10 as the \"active\" gem for my OS, so that I can invoke it at the command line. Is it possible to do this? I\'m not using rvm. Maybe it\'s time to start. I tried gem install rails --version=2.3.10 , but that just makes sure that version of the gem is installed, it doesn\'t put it in /usr/bin/rails . (I do already use bundler for my apps -- but haven\'t needed any precise control over gems at the OS level until now) 回答1: If your problem is to run binaries of

rmagick gem install “Can't find Magick-config”

懵懂的女人 提交于 2019-11-26 12:34:22
问题 I get the error shown below when attempting to install the rmagick gem. I am on Snowleopard 10.6 using RVM, Ruby 1.9.2-head and Rails 3.05. Responses to similar questions recommended installing ImageMagick, which I successfully did. Other suggested installing the \"libmagick9-dev library\", however, I can not figure out how to do this. I\'m a new developer, and any assistance or directions to an existing explanation or resource is greatly appreciated. Thanks! jjdevenuta(opal)$ gem install

How to solve “/usr/bin/env: ruby_executable_hooks: No such file or directory”?

你离开我真会死。 提交于 2019-11-26 10:30:23
问题 I just deploy jekyll in a vps, and config git post-receive hook on it. When I push blog update to vps from my laptop, I run into this error: remote: /usr/bin/env: ruby_executable_hooks: No such file or directory I searched for a while, and tried the method proposed in this post: bundle update: env: ruby_executable_hooks: No such file or directory, i.e., executing the commands below: rvm @global do gem regenerate_binstubs gem regenerate_binstubs But it doesn\'t help, the error remains. Since I

Why can't I install Rails on Lion using RVM?

余生长醉 提交于 2019-11-26 10:09:05
问题 I\'m running into issues trying to install Rails on OS X Lion using RVM. So far, I have done the following: Installed Mac OS X Lion Version 10.7 (Build 11A459e). Installed XCode 4.1 Developer Preview 5. Installed RVM. Installed a 1.8.7 version of Ruby via RVM using the command rvm install 1.8.7 . Note: I need to be using 1.8.7 and not 1.9.2. Switched to the 1.8.7 version of Ruby using the command rvm 1.8.7 . Created a new gemset using the command rvm gemset create rails3 . Switched to the new

Use rvmrc or ruby-version file to set a project gemset with RVM?

只谈情不闲聊 提交于 2019-11-26 10:05:07
问题 I use RVM, the Ruby Version Manager to specify a Ruby version and a set of gems for each of my Rails projects. I have a .rvmrc file to automatically select a Ruby version and gemset whenever I cd into a project directory. After installing RVM 1.19.0, I get a message You are using .rvmrc , it requires trusting, it is slower and it is not compatible with other ruby managers, you can switch to .ruby-version using rvm rvmrc to [.]ruby-version or ignore this warnings with rvm rvmrc warning ignore

cannot load such file — zlib even after using rvm pkg install zlib

时光毁灭记忆、已成空白 提交于 2019-11-26 09:20:30
问题 I installed zlib package and ruby 1.9.3 using rvm, but whenever I try to install gems it says cannot load such file -- zlib The commands I used to install are $ rvm install 1.9.3 $ rvm pkg install zlib $ rvm reinstall 1.9.3 --with-readline-dir=/home/username/.rvm/usr \\ --with-iconv-dir=/home/username/.rvm/usr \\ --with-zlib-dir=/home/username/.rvm/usr \\ --with-openssl-dir=/home/username/.rvm/usr $ rvm use 1.9.3 $ gem install heroku ERROR: Loading command: install (LoadError) cannot load

How to Uninstall RVM? [duplicate]

可紊 提交于 2019-11-26 07:51:20
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How to remove rvm (ruby version manager) from my system? How can I uninstall (or reinstall) RVM on Ubuntu 9.10? I messed up my current installation. 回答1: It’s easy; just do the following: rvm implode or rm -rf ~/.rvm And don’t forget to remove the script calls in the following files: ~/.bashrc ~/.bash_profile ~/.profile And maybe others depending on whatever shell you’re using. 来源: https://stackoverflow.com