rvm

How to resolve “gpg: command not found” error during RVM installation?

风格不统一 提交于 2019-12-02 14:05:31
I have a new mac pro (OS X 10.9.5) that I get to set up from scratch. I want to install RVM and the first thing it says to do is: Install mpapis public key (might need gpg2 and or sudo ) gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 When I tried I got: gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 zsh: command not found: gpg I've tried to find a good guide on how to overcome this that also looks trustworthy but I've had no luck. Can someone explain what gpg is, why I dont already have it, and how do I get it the right way. GnuPG (with binary name gpg ) is an application

Removing all installed Gems and starting over

家住魔仙堡 提交于 2019-12-02 13:57:29
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 in short my question is "How to I get rid of RVM, Rubygems, and all installed Gems so that I can start

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

亡梦爱人 提交于 2019-12-02 13:49:41
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 should I use it all? I'm guessing that doing a sudo apt-get install ruby is not be recommended, but I am not sure. I tried it on my system in addition to 'all the other Ruby stuff'. It's just adding to my confusion. I am not talking about Rails but just regular Ruby gems (e.g. Vagrant,

Ruby on Rails - Error making new app (rb:55:in 'require')

前提是你 提交于 2019-12-02 12:27:50
问题 I've been following Mike Hartl's excellent Ruby on Rails Tutorial`. I had to make some decisions earlier about versions for gem files and ruby. I decided (after some problems getting Heroku to work that I'd directly mimic the tutorial and versions of ruby described - leading me to go with rvm use 2.0.0 to set my version of ruby. All was great on chapter one but now I'm getting an error message when i try to create a new rails project: $ rails new demo_app /home/huw/.rvm/rubies/ruby-2.0.0-p481

What can I do to resolve this error when trying to install bundler?

老子叫甜甜 提交于 2019-12-02 12:11:46
I am trying to run this command gem install bundler but I am always getting this error: ERROR: Loading command: install (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass What can I do about this? I already tried this (as pointed out here 'gem install bundle' get something wrong ): rvm pkg install zlib rvm remove 2.0.0 rvm install 2.0.0 it's a known issue - rubygems 2.0.0 requires openssl, run this: rvm get head rvm reinstall 2.0.0 --autolibs=3 If you are using Cygwin, try to reinstall the ruby

How do I fix a RVM install that was done using SUDO

a 夏天 提交于 2019-12-02 10:06:31
A member of our team installed RVM using sudo. We removed ~/.rvm and /usr/local/rvm but we are unable to install RVM. This : bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) Gives the following error: mkdir: /usr/local/rvm: Permission denied Which is weird, since we are not using sudo this time. Am not sure where could be the error. What could I check? Remove also /etc/rvmrc directory and then install RVM Should Success install !!! 来源: https://stackoverflow.com/questions/7999439/how-do-i-fix-a-rvm-install-that-was-done-using-sudo

rvm + rails install ERROR: While executing gem (NoMethodError)undefined method `ord' for nil:NilClass

我与影子孤独终老i 提交于 2019-12-02 09:41:15
Ububtu 14.04 rvm 1.26.11 ruby 2.1.0p0 rvm list : rvm rubies =* ruby-2.1.0 [ x86_64 ] # => - current # =* - current && default # * - default which ruby : /home/awlad/.rvm/rubies/ruby-2.1.0/bin/ruby which rvm : /home/awlad/.rvm/bin/rvm which bundle : /usr/bin/bundle RubyGems Environment: - RUBYGEMS VERSION: 2.4.8 - RUBY VERSION: 2.1.0 (2013-12-25 patchlevel 0) [x86_64-linux] - INSTALLATION DIRECTORY: /home/awlad/.rvm/gems/ruby-2.1.0 - RUBY EXECUTABLE: /home/awlad/.rvm/rubies/ruby-2.1.0/bin/ruby - EXECUTABLE DIRECTORY: /home/awlad/.rvm/gems/ruby-2.1.0/bin - SPEC CACHE DIRECTORY: /home/awlad/.gem

Every time I close terminal rails defaults back to 2.3.5 from 3.0.3?

ぐ巨炮叔叔 提交于 2019-12-02 08:59:45
I'm going through the rails by example tutorial. Its seems that every time I close terminal rails defaults back to 2.3.5 & I have to go through the process of installing 3.0.3 every time I open the terminal? I installed rails using: $ [sudo] gem install rails --version 3.0.3 Has anyone experienced a similar issue? I've tried googling around and searching stack to no avail. Try uninstalling the rails gem: gem uninstall rails If you are prompted to select a version, select 2.3.5 and leave the 3.0.3 version intact. P.S: Are you using RVM ? If not, I would highly recommend it. The problem is

ERROR: Missing RVM environment file After Doing rvm upgrade command - Passenger 4.0.23

假如想象 提交于 2019-12-02 08:17:45
I was running ruby 2.0.0-p247 on my Mac Mini Server (Mavericks 10.9.1). I read that there was a security vulnerability so I decided to upgrade to use the latest Ruby patch 2.0.0-p353. I did the following commands: gem update --system (RubyGems 2.1.11) rvm get stable (RVM 1.25.0) rvm upgrade 2.0.0-p247 2.0.0-p353 (which should have moved my gemsets) There is nothing in my system that I can find that references 2.0.0-p247 in rvm which is what I expected. When I go to ~/myuser/.rvm/environments there is no file 2.0.0-p247. I am now attempting to start passenger. I had version 4.0.23 enterprise

require self made gem in jruby fails after update to jruby-1.7.13

回眸只為那壹抹淺笑 提交于 2019-12-02 07:57:41
I used jruby-1.7.0 and testing frame work Test::Unit::TestCase. Now I have updated some gems which caused me to use MiniTest::Test for testing, so I also upgraded to jruby-1.7.13. I have a rake task too which builds my gems with java *.class files instead of ruby *.rb files. Now many things dont work any more like 'rake test', or require "my_gem_xyz" from irb, getting errors like load error and ArrayIndexOutOfBoudsException. I have rvm installed to switch between rubies. How can I use *.class files in my self made gems like it worked before under jruby-1.7.0? (If I include the *.rb files in