rvm

RVM install ruby from local source

拈花ヽ惹草 提交于 2019-12-23 07:46:41
问题 I can't believe the this isn't a more frequently asked question. I want to install ruby 1.9.2, and I want it as part of my RVM installation. The link for 1.9.2 has since 404'd on the ruby-lang site, so I copied the tar.gz from the ruby github page, rezipped it into a tar.bz2 like rvm requires and dropped it into ~/.rvm/archives However, every time I call rvm install 1.9.2-p320 it deletes the source tar.bz2 from ~/.rvm/archives and tries to redownload the tar.bz2 from the ruby-lang site. The -

~RVM_PROJECT_PATH in oh-my-zsh prompt

瘦欲@ 提交于 2019-12-23 06:57:23
问题 Recently installed .oh-my-zsh on a new machine on which RVM was already installed. Noticed that in several of my Rails project directories, I now see this instead of the actual name of the project directory: ➜ ~RVM_PROJECT_PATH git:(master) All other behavior seems normal, but I'm finding it difficult to pin down the cause in the .oh-my-zsh configuration. 回答1: it is a bug in your Zsh, to avoid it use %1/ in PROMPT instead of %. or %C or %1~ more info: https://github.com/wayneeseguin/rvm

Web application could not be started Passenger Error (Apache2) - Referencing Non-Existing Ruby Patch

孤人 提交于 2019-12-23 04:43:38
问题 I have been having problems after updating from p247 to the latest patch for Ruby 2.0.0 (P353) using the latest version of RVM. Here is the link to my original question where I was experiencing a missing RVN environment file for the old patch which was no longer in my system. RVM was corrected and that problem disappeared. ERROR: Missing RVM environment file After Doing rvm upgrade command - Passenger 4.0.23 I went ahead and installed the latest version of Passenger 4.0.29 using the gem file

Remove unnecessary temporary files after gem install nokogiri [duplicate]

馋奶兔 提交于 2019-12-23 03:26:23
问题 This question already has answers here : Can I delete some folders of nokogiri and capybara-webkit inside of my rvm gemset? (2 answers) Closed 5 years ago . I have to use nokogiri for some xml processing. For this I create a rvm gemset specific to the project and install nokogiri by gem install nokogiri. No problems this far. But when I look into ~.rvm/gems/ruby-...@nokogiri/gems/nokogiri-.../ext/nokogiri/ and its subfolders I see files worth of 140MB in the filesystem. Is there some generic

`require': cannot load such file — rubygems.rb when installing ruby and rubygems with rvm

牧云@^-^@ 提交于 2019-12-23 03:23:05
问题 I was trying to create a fresh installation of Ruby and Rubygems using RVM on Ubuntu 13.10. I had already had an installation before which somehow got corrupted. I decided to reinstall everything, so I ran rvm implode which seemed to delete all traces of ruby and rubygems. However, after reinstalling it using \curl -L https://get.rvm.io | bash -s stable --ruby source /home/<username>/.rvm/scripts/rvm when I run gem install rails , i get the following error: <internal:gem_prelude>:1:in

`require': cannot load such file — rubygems.rb when installing ruby and rubygems with rvm

跟風遠走 提交于 2019-12-23 03:23:00
问题 I was trying to create a fresh installation of Ruby and Rubygems using RVM on Ubuntu 13.10. I had already had an installation before which somehow got corrupted. I decided to reinstall everything, so I ran rvm implode which seemed to delete all traces of ruby and rubygems. However, after reinstalling it using \curl -L https://get.rvm.io | bash -s stable --ruby source /home/<username>/.rvm/scripts/rvm when I run gem install rails , i get the following error: <internal:gem_prelude>:1:in

$PATH is not properly set up

倖福魔咒の 提交于 2019-12-23 02:43:12
问题 I just ran 'rvm get stable' to be given the below error; Warning! PATH is not properly set up, '/Users/jamesbkemp/.rvm/gems/ruby-2.2.1/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-2.2.1'. Previous to running 'rvm get stable' I ran 'brew upgrade ruby' to Ruby 2.2.2. 'echo $PATH'

Need to Fix PATH in my bashrc File for RVM

余生长醉 提交于 2019-12-23 01:58:11
问题 I did a clean install of my operating system recently and copied my old .bashrc file from a backup. I installed rvm version 1.26.10 (latest stable version). I installed ruby 2.2.0. When I source the .bashrc file I get the following error: Warning! PATH is not properly set up, '/Users/myusername/.rvm/gems/ruby-2.2.0@mygemset/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles:

RVM + Nginx + Passenger in Chef

老子叫甜甜 提交于 2019-12-23 01:34:53
问题 I'm trying to setup Nginx with Passenger on RVM in Chef using community cookbook for nginx and fnichol's for RVM. Everything on ubuntu. Now, my problem is that if I bootstrap the machine using knife ec2 and try to install everything in one go, it fails. For the most part it works well, picking up RVM and Passenger nicely, until the point when it realizes Passenger is not compiled, tries to do it using rake from default ruby 1.9.1 and fails. If I then connect to the machine and run sudo chef

capistrano error msg: Please install the pg adapter: `gem install activerecord-pg-adapter` (cannot load such file --

♀尐吖头ヾ 提交于 2019-12-22 17:10:17
问题 I am using capistrano and get this error message: Please install the pg adapter: `gem install activerecord-pg-adapter` (cannot load such file -- active_record/connection_adapters/pg_adapter) I have removed the gem 'pg' from my Gemfile and bundle install d . I don't see the pg gem in my Gemfile.lock. I have also changed my production db to a sqlite3 adapter. Why is Rails 3.2 / Capistrano / Bundler asking for this? I'm not using it and not in Gemfile.lock and how do I resolve it? I am using