rvm

OS X Mavericks install rvm WARNING

喜夏-厌秋 提交于 2019-12-09 07:18:00
问题 When running this in terminal: $ curl -L https://get.rvm.io | bash -s It seems to work fine, but in the Upgrade Notes at the end it says * WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/Users/steven/.bash_profile': source ~/.profile And I can't use RVM, getting the error -bash: rvm: command not found' I am pretty new to terminal and Ruby, so any help would be greatly appreciated. 回答1: When you install rvm its paths get added to ~/.bash

Missing Rails gem error, but its installed!

烂漫一生 提交于 2019-12-09 06:03:26
So I'm new to rails and am actually following a video tutorial from Lynda.com in order to learn it. I didn't follow the steps to install on the video because I heard of RVM and its been great so far with getting everything setup. But I'm still early on in the video and can't get passed something really simple... so I'm hoping someone can help me out. Heres some background: I have RVM installed and created 1.8.7@rails2.3.8. I was able to install both ruby and rails, and everything here is fine. I even setup a global gemset for mysql and passenger. I'm using passenger instead of WEBrick (which

Can't change RVM default

China☆狼群 提交于 2019-12-09 05:35:33
问题 I have problem changing the default ruby. Running OS X Lion. macbook:~ work$ rvm list rvm rubies =* ruby-1.9.2-p290 [ x86_64 ] ruby-1.9.2-p318 [ x86_64 ] As you can see, 1.9.2-p290 is the default. macbook:~ work$ rvm use --default ruby-1.9.2-p318 Using /usr/local/rvm/gems/ruby-1.9.2-p318 macbook:~ work$ rvm list rvm rubies * ruby-1.9.2-p290 [ x86_64 ] => ruby-1.9.2-p318 [ x86_64 ] After running rvm use --default ruby-1.9.2-p318, the Ruby changed, but default is still p290. And the next time I

How to I undo the vendor/gems bundle install

主宰稳场 提交于 2019-12-09 04:37:25
问题 I ran bundle install vendor/gems and all the gems got saved to the gems directory as expected but when i delete them like rm -rf vendor/gems rails s Could not find rake-0.9.2.2 in any of the sources Run `bundle install` to install missing gems. I need to run bundle install again and all the gems install to the vendor/gems again. Is there a way to get this behavior to stop and just install as I used to using my .rvmrc file and not package the gems in the vendor/gems directory 回答1: There is a

Use multiple versions of rubygems with rvm?

一个人想着一个人 提交于 2019-12-09 04:13:25
问题 I have two projects on my computer: - An old Rails 2.3 app that needs rubygems 1.6 and won't run under rubygems 1.8; - A newer app that needs rubygems 1.8 and won't run under rubygems 1.6. Each project has its own rvm gemset, but I can't figure out how to give them different versions of rubygems itself: gem update --system [version] results in gem --version giving the same answer in both; rvm gemset [version] has the same result. How can I run rubygems 1.6.2 in one project and 1.8.11 in the

How do I find .bash_profile and add to my shell's initialization file? [closed]

谁说我不能喝 提交于 2019-12-09 03:01:16
问题 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 8 years ago . I am trying to upgrade ruby using rvm. On the pragmatic site, it says: The important part is to add the following line to the end of your shell's initialization file (.bash_profile): [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" How do I do this? Where is this initialization file? Please

Why rvm install 2.0.0 asks for sudo password?

吃可爱长大的小学妹 提交于 2019-12-08 19:34:42
问题 I'm trying to install ruby 2.0.0-p247 through rvm. But, it is asking for password. Is it normal to provide sudo password? I've not configured sudo password in sudoers file. I'm using Oracle Enterprise Linux 6 x64 . 回答1: The sudo is for autolibs - which means RVM will install the required software like openssh or libyaml which are required for standard ruby to work properly. You can change the autolibs to see the required packages instead of installing them: rvm autolibs read-fail and to get

Ruby 2.1 and Nokogiri install error?

烈酒焚心 提交于 2019-12-08 18:03:44
问题 I know this is an issue that has been "solved" many times here, but I have tried all of the solutions and still can't get it to work. Here is my error: 22-01-14 17:57:56> gem install nokogiri Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /Users/josh/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb Extracting libxml2-2.8.0.tar.gz into tmp//ports/libxml2/2.8.0... OK Running 'configure' for libxml2 2.8.0... ERROR,

RVM 1.9.1 & nokogiri

依然范特西╮ 提交于 2019-12-08 17:34:07
问题 Having trouble installing the nokogiri gem under rvm ruby 1.9.1. gem install nokogiri I'm getting ... /usr/include/libxml2... no libxml2 is missing. try 'port install libxml2' or 'yum install libxml2-devel' *** extconf.rb failed *** but i checked: sudo apt-get install libxml2 and i got: Reading state information... Done libxml2 is already the newest version. is this a root thing perhaps? RVM runs everything in userspace. 回答1: You might want to confirm that the version of libxml installed by

Ansible Permissions Issue

前提是你 提交于 2019-12-08 16:39:19
问题 I'm trying to add the current user to a group in the system, then execute a command that requires permission for that group. My playbook is like so: - name: Add this user to RVM group sudo: true user: state=present name=vagrant append=yes groups=rvm group=rvm - name: Install Ruby 1.9.3 command: rvm install ruby-1.9.3-p448 creates=/usr/local/rvm/bin/ruby-1.9.3-p448 The problem is that all of this is happening in the same shell. vagrant's shell hasn't been updated with the new groups yet. Is