rvm

Using RVM on Ubuntu 12.04 to use Rails. The program 'rails' is currently not installed

有些话、适合烂在心里 提交于 2019-12-03 01:58:40
问题 I installed RVM from scratch following the installation guide on the official website. I installed Rails, created a dummy app and everything worked fine. I shut off my machine. The next morning, I turned on the machine again (cold boot) and the tried running " rails -v " from the console, but I get the following error message: sergio@Sergio-work ~ $ rails -v The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install rails I can run ruby -v just fine,

ZSH complains about RVM __rvm_cleanse_variables: function definition file not found

旧巷老猫 提交于 2019-12-03 01:32:45
问题 When using the latest ZSH and RVM on Mac OS X 10.7.4 ZSH complains about this: __rvm_cleanse_variables: function definition file not found 回答1: Running the following solved the problem: rm -f ~/.zcompdump* Note: The * is incase there are multiple .zcompdump files. 回答2: Sometime there is also ~/.zcompdump-<COMPUTER NAME>-<VERSION> file, so use: rm -f ~/.zcompdump * 回答3: To disable the .zcompdump* file(s), you could look in your .zshrc (or /etc/zsh/* files ) for compinit and add the -D flag.

Received Warning message “Path set to RVM” after updating ruby version using rvm

三世轮回 提交于 2019-12-03 00:39:39
问题 Recently I tried to update my ruby version due to a warning message (see below). Now I get the following warning message when I start my iterm2: Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see: https://github.com/wayneeseguin/rvm/issues/3212 Does anyone know how to resolve this warning? It hasn't really impacted my work but it is a little unsettling. for your information: 1. I believed I ran rvm get stable to get the latest ruby version. 2. this is the warning message

Create .ruby-version and .ruby-gemset with rvm

别说谁变了你拦得住时间么 提交于 2019-12-03 00:35:47
问题 Is there a way to create the associated .ruby-version and .ruby-gemset files when creating a new gemset? With older versions of rvm, one could do rvm --create --rvmrc 1.8.7@project , but that creates .rvmrc files. I thought I read somewhere we could use the --ruby-version command line switch, but I have been unsuccessful in doing so. 回答1: I recently had the same problem. rvm --help led me to: rvm --create --ruby-version ruby-1.9.3@my-gemset It created both .ruby-gemset and .ruby-version . 回答2

Relationships between Rubygems, Bundler, and RVM

自闭症网瘾萝莉.ら 提交于 2019-12-03 00:33:42
问题 Following current best practices, what is the proper role for each of these? Based on my limited understanding of Bundler and RVM, it seems that they--like Rubygems--have their own install locations for gems. Plus, for each one, there's the option of installing to system paths using sudo or to your home directory. And then there's the ability to vendor gems with Bundler (where applicable, e.g. with Rails). So it looks to me like there are at least seven places to install gems now: Rubygems

Unicode characters in Ruby 1.9.3 IRB with RVM

China☆狼群 提交于 2019-12-03 00:15:44
Update : I found almost exact similar question , yet it has slightly different prerequisites and thus doesn't help much. Given: MacOS Lion 10.7.3 rvm 1.14.2 ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0] Ruby was installed with the following line: rvm install 1.9.3 --with-readline-dir=/usr/local/Cellar/readline/6.2.2/ When I fire up irb or rails c and start typing unicode characters, I get: \U+FFD0\U+FFBF\U+FFD1\U+FFD0\U+FFB8\U+FFD0\U+FFBC\U+FFD0\U+FFB5\U+FFD1 How do I get unicode characters displayed correctly when typing on Ruby/Rails consoles? P.S. Typing same characters

Removing all installed Gems and starting over

限于喜欢 提交于 2019-12-03 00:14:12
问题 I recently started learning Ruby and Ruby on Rails, and have watched a plethora of getting started materials. I have been finding lately that I keep getting errors where gems won't install or they will be installed but they can't be used for some reason, and I have decided that I want to remove everything down to once again just having Ruby installed and start over with the installation. One training video had me install most of my gems with RVM, so I don't know if that changes anything. So

bundler vs RVM vs gems vs RubyGems vs gemsets vs system ruby [closed]

半城伤御伤魂 提交于 2019-12-03 00:02:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am new to Ruby and trying to wrap my head around following concepts: bundler vs RVM vs gems vs RubyGems vs gemsets vs system rub and I'm confused. Can someone please describe a 'best practice' of how I should manage all this on a fresh install of the latest version of Ubuntu? What should I install, and how

Problem installing RVM

我的未来我决定 提交于 2019-12-02 23:58:21
I have executed the commands as prescribed in the instructions at the rvm website but things don't seem to work.. Fetching the code from the git repository runs smoothly but when I try to use rvm notes Error: /usr/local/bin/rvm: line 73: /home/cody/.rvm/scripts/rvm: No such file or directory flashes in multiple lines and doesn't stop till I hit ctrl+C.. I am running Ubuntu 8.04 and currently I am running ruby 1.9.2.. Sorry, if I am missing out any necessary information. Thanks in advance. Mike Yockey Ack, I didn't mean to post this as a comment on the question. Anyway, if I had to guess, I'd

RVM: How to use gems from a different ruby?

好久不见. 提交于 2019-12-02 23:44:46
I have been using RVM to manage my Rubies and gems. When I first installed RVM, the Ruby version that I installed was 1.9.2-p0 . I recently installed Ruby 1.9.2-p136 , which created a new Ruby in the RVM. My problem is I want to use the latest version of Ruby but all of the gems I installed were installed under the 1.9.2-p0 directory, because RVM keeps gems completely separate between Rubies, and I want to be able to use those gems with my new version, p-136 without having to reinstall them all. Is there a way I can get my gems from my p-0 Ruby to work with my p-136 Ruby? macarthy You need to