rvm

Bundler cannot find rake but it seems installed

 ̄綄美尐妖づ 提交于 2019-12-06 01:39:18
I am having some struggles with bundler and rake. According to the error message, bundler can't find rake-10.3.1. Here's the thing, everything I've done seems to indicate that rake-10.3.1 is installed. I've been floating in the google-sphere for days without finding a solution that resolves this issue for me. I'm on Mac OSX 10.8.5. Ruby version is 1.9.3-p392. Error: bundle exec rspec spec/bdr_pre_dev_spec.rb /Users/dru.solis/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.6.2/lib/bundler/spec_set.rb:92:in `materialize': Could not find rake-10.3.1 in any of the sources (Bundler::GemNotFound)

RVM issue with Mountain Lion

会有一股神秘感。 提交于 2019-12-05 23:21:06
I can install any Ruby versions on a Mac running Mountain Lion I have made sure Brew Doctor is all good. When I run ie rvm intall 1.9.3-head I get the following. From git://github.com/ruby/ruby * branch ruby_1_9_3 -> FETCH_HEAD Already up-to-date. Copying from repo to src path... ruby-1.9.3-head - #autoreconf ruby-1.9.3-head - #configuring ruby-1.9.3-head - #compiling Error running 'make', please read /Users/lee/.rvm/log/ruby-1.9.3-head/make.log There has been an error while running make. Halting the installation. lee$ mate /Users/lee/.rvm/log/ruby-1.9.3-head/make.log This is the make.log http

RVM: “sha256sum nor shasum found”

寵の児 提交于 2019-12-05 21:17:13
问题 I've just installed RVM on a new machine and when switching into a directory containing a .rvmrc file (which I've accepted) I'm getting: ERROR: Neither sha256sum nor shasum found in the PATH I'm on OS X 10.5.8. — Probably missing something somewhere. Any ideas what's going on and how to fix this? 回答1: Means you're missing the binary in /usr/bin or your path is somehow missing /usr/bin. Open a new shell and run echo $PATH | grep '/usr/bin' and see if its returned. Also, ls -alh /usr/bin/shasum

How to install gem across all gemsets when using RVM

不羁岁月 提交于 2019-12-05 20:42:14
问题 Is there a way to install a gem across all rubies and gemsets (not just the default or the system ruby) in the system when using RVM? 回答1: You can execute: rvm @global do gem install [gem_name] to install gem globally (per ruby version). It is not possible to install gem globally for every ruby version . According to https://rvm.io/gemsets/initial you can define automatically installed gems for every ruby version in file ~/.rvm/gemsets/global.gems . In this file you need to define required

does cd command in a shell script load the rvmrc inside the destination directory?

混江龙づ霸主 提交于 2019-12-05 18:55:47
when you have something like.. given inside projectx an .rvmrc file specifying ruby 1.9.2 and having two rubies on my system (ree-1.8.7 and ruby1.9.2) #!/bin/bash cd applications/projectx which ruby ruby -v the last two lines output ree-1.8.7 and its path which was not I intended to use. Yes Rvm does define a wrapper around cd that looks like this: cd () { builtin cd "$@"; local result=$?; __rvm_project_rvmrc; __rvm_after_cd; return $result } It's difficult to tell why your .rvmrc isn't working. Rvm does support project-specific .rvmrc files, but you didn't post yours. You need to source rvm

Change version of rails

我是研究僧i 提交于 2019-12-05 18:35:45
I accidentally changed my rails version to 4.0.0. I've tried gem uninstall rails --version=4.0.0.rc1 and install version 3.2.13 but when rails -v it's still version 4.0.0. I then tried gem uninstall rails, which gives me "Successfully uninstalled rails-3.2.13". Thought this was easy to do, but I can't find a simple solution. My God Try this: rvm use <ruby version> You can also check your installed ruby versions using rvm list and then switch over. Then do: rvm gemset create rails3.2.13 rvm <ruby version>@rails3.2.13 gem install rails --version=3.2.13 Remove your Gemfile.lock and install rails

When running 'rvm get head' I get: Unrecognized command line argument: 'get' ( see: 'rvm usage' )\". How do I fix that?

那年仲夏 提交于 2019-12-05 18:11:36
As the title says, I ran rvm get head in an attempt to update RVM to the latest version. The error message I got was: Unrecognized command line argument: 'get' ( see: 'rvm usage' ) How do I fix this ? Running RVM on OS X - 10.6.7. rvm update --head rvm reload rvm get latest from http://seanbehan.com/ruby/how-to-upgrade-rvm-on-mac-os-x/ 来源: https://stackoverflow.com/questions/6165719/when-running-rvm-get-head-i-get-unrecognized-command-line-argument-get-s

Could not find gem 'sqlite3 (>= 0) ruby'

二次信任 提交于 2019-12-05 15:22:52
I am learning Ruby on Rails and I followed the installation of RVM and Rails from Ryan Bigg's blog and the Agile Wed Development book. This has worked previously on my PC at home, but at work it gives me the error: depot$ rails -v Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine. Run `bundle install` to install missing gems. I am trying to generate a scaffold but this is what i get: depot$ rails generate scaffold Product \ title:string description:text image_url:text price:decimal Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine. Run

rubygems 1.3.7 TypeError (in 'merge') during installation on Ubuntu

≡放荡痞女 提交于 2019-12-05 14:14:25
While installing ruby-1.9.2-p0 with rvm on an updated Ubunutu x86_64, I keep getting an error in `merge': can't convert String into Hash (TypeError). All apt packages in rvm notes and those found in the rubygems manual have been installed. I believe the error is resulting when RVM is attempting to install rubygems. I also get the same error installing ruby gems with the system ruby. I think this is a dependency problem. I have compiled on Ubuntu before on both i386 and x86_64 before and never run into this issue. What am I missing/doing wrong? Via system ruby: $ ruby -v ruby 1.8.7 (2010-01-10

How do I set $PATH?

拜拜、爱过 提交于 2019-12-05 13:10:13
I'm using Ruby 2.3.0. Every time I open a new bash tab, my ruby version downgrades to 2.2.3. So to ensure I'm using the latest, I do rvm use 2.3.0 . That fixes the problem on a per-tab basis, and gives this message: PATH is not properly set up, '/Users/mkeable/.rvm/gems/ruby-2.3.0/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.3.0'. So I do echo $PATH and get something pretty