rvm

Uninstalling rails and gems, getting error "cannot uninstall, check 'gem list -d …'

妖精的绣舞 提交于 2019-12-28 10:12:23
问题 I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here. The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. Anyway, when I started, I wasn't following the directions completely and so after I installed RVM, for some reason I installed rails with sudo gem install rails -v 2.3.8 because

Uninstalling rails and gems, getting error "cannot uninstall, check 'gem list -d …'

☆樱花仙子☆ 提交于 2019-12-28 10:12:07
问题 I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here. The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. Anyway, when I started, I wasn't following the directions completely and so after I installed RVM, for some reason I installed rails with sudo gem install rails -v 2.3.8 because

rvmsudo vs sudo?

偶尔善良 提交于 2019-12-28 09:15:06
问题 I just moved to RVM. sudo bundle install gives me and error:- sudo bundle install /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:900:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError) from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:248:in `activate' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:1276:in `gem' from /usr/local/rvm/gems/ruby-1.9.2-p180/bin/bundle:18:in `

rvmsudo vs sudo?

让人想犯罪 __ 提交于 2019-12-28 09:14:28
问题 I just moved to RVM. sudo bundle install gives me and error:- sudo bundle install /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:900:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError) from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:248:in `activate' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:1276:in `gem' from /usr/local/rvm/gems/ruby-1.9.2-p180/bin/bundle:18:in `

Warning! PATH is not properly set up, usually this is caused by shell initialization files

此生再无相见时 提交于 2019-12-28 08:04:16
问题 Whenever I go to a folder with a .rvmrc file, there is a warning: Warning! PATH is not properly set up, '/home/me/.rvm/gems/ruby-2.0.0-p247/bin' is not available, usually this is caused by shell initialization files - check them for 'PATH=...' entries, to fix run: 'rvm use ruby-2.0.0-p247'. I did rvm use ruby-2.0.0-p247 , but the warning is still present. Note : There are no errors, Im able to run my application just fine, but the warning is very annoying. Any ideas? 回答1: This was a bug and

How to get Readline support in IRB using RVM on Ubuntu 11.10

假装没事ソ 提交于 2019-12-28 07:59:30
问题 I have tried everything I can think of to get this to work, to no avail so here I am requesting suggestions on how to debug. Firstly, runnning Ubuntu 11.10 Installed rvm: $ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) Installed readline using apt-get: $ sudo apt-get install libreadline-dev Check for readline install: $ dpkg --get-selections | grep readline lib64readline-gplv2-dev install lib64readline5 install libreadline-dev install libreadline5

How to install RVM system requirements without giving sudo access for RVM user

白昼怎懂夜的黑 提交于 2019-12-28 07:29:49
问题 On my Debian server I have a user called "deployer" that does not have sudo access, and has RVM installed. When installing Ruby using "deployer", like 1.9.3, it triggers a task to install dependencies "Installing requirements for debian, might require sudo password." which fails and stops installation because "deployer" can not sudo. I don't want to add "deployer" into the sudoers list, and don't want to install RVM for some other user just for a one-time use for installing dependencies. What

Nothing known about… when trying ri String#upcase Ruby

落花浮王杯 提交于 2019-12-28 03:46:07
问题 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

Jekyll -v error (Bundler::GemNotFound)

匆匆过客 提交于 2019-12-25 11:56:33
问题 When running jekyll -v I get the following: /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:88:in 'block in materialize': Could not find jekyll-feed-0.9.2 in any of the sources (Bundler::GemNotFound) from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'map!' from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'materialize' from /Users/myusername/.rvm/gems/ruby-2.4.2/gems

How do RVM rubies find gems?

我的未来我决定 提交于 2019-12-25 08:29:58
问题 I'm using Ruby 1.8.6 under RVM on Mac OS X (10.9.2). I installed everything as a local user (not root), and then installed a gem using: gem install gli -v 1.6 When I run a ruby with require('gli') , I get the error: in `require': no such file to load -- gli (LoadError) even though gem list shows gli (1.6.0) . I don't know exactly how RVM does its gemsets, but there is no gli.rb file in any of the directories in the $LOAD_PATH . How does RVM interact with the $LOAD_PATH to find the necessary