rvm

Installing Ruby - RVM - Mac OSX Mountain Lion

痴心易碎 提交于 2019-12-07 22:10:57
问题 So I'm trying to install Ruby 1.9.3 on my Mac running Mountain Lion. I have xCode installed and up to date. I've installed RVM and now am trying to install Ruby using rvm install 1.9.3 When I run this it looks like it's going to install but gives me an error please see below: rvm install 1.9.3 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392. Continuing with compilation. Please read 'rvm mount' to get more information on

Redirect output from a shell script to a file

允我心安 提交于 2019-12-07 18:51:21
问题 I'm busy writing up a Capistrano deployment script for one of our applications. One of the steps installs RVM using the following command: run "cat ~/rvm-installer.sh | bash -s stable --ruby" However, I feel the output is too verbose, and I rather want to dump it into a .log file. Is it possible to redirect the output for the entire rvm-installer.sh script elsewhere? 回答1: Like this: run "cat ~/rvm-installer.sh | bash -s stable --ruby >out.log" or, if you want to redirect standard error stream

RVM - is there a way for simple offline install?

好久不见. 提交于 2019-12-07 17:38:53
问题 I would like to install RVM in an offline machine - I can manually transfer any file needed, but it'll be impossible to have an internet connection. Not being online causes RVM to collapse when trying to download source files for ruby or other dependencies (zlib, etc). I'm looking for a way to point RVM to the location of ruby source folder, e.g. something like rvm install 1.8.7 --source=/path/to/ruby-1.8.7-p330/ , or any other dependencies. I've scoured the rvm docs but either missed

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

☆樱花仙子☆ 提交于 2019-12-07 17:24:50
问题 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. 回答1: 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

Rails 4 railties's executable “rails” conflicts with rails

一曲冷凌霜 提交于 2019-12-07 16:50:07
问题 I have rails 4 and that's my default version (and I still wants it to be). but I d'like to add rails 3.2 on my computer. On the following command: gem install rails -v 3.2.16 I have this Warning: railties's executable "rails" conflicts with rails Overwrite the executable? [yN] I d'like to know if this will cause some bugs to my 4.0.1? 回答1: You should use rvm and install rails 3 into a new gemset. Exactly do steps as follows: Install rvm. Install or use a ruby: rvm install ruby-2.0.0 Create a

Bundler cannot find rake but it seems installed

我怕爱的太早我们不能终老 提交于 2019-12-07 16:08:36
问题 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

No binary rubies available for: osx/10.8/x86_64/ruby-1.9.2-p320

最后都变了- 提交于 2019-12-07 14:57:27
问题 There's a two year old blog post here explaining how to fix the error 'you 'have to install development tools first' error that comes with Nokogiri, a problem that arises if you upgrade to Mountain Lion after having installed RVM. In the blog post he says you have to do rvm update head rvm --force install 1.9.2 gem install bundle ## in your rails app bundle Installing nokogiri (1.4.2) with native extensions ... rvm update head has now changed to rvm get head . However, after that I blindly

rvm install 1.8.7-head errors on centos 5.5

一曲冷凌霜 提交于 2019-12-07 12:00:57
问题 I installed rvm successfully as a root on CentOS 5.5. Then I tried to to install ruby-1.8.7-head rvm install 1.8.7-head And receive such error Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.8.7-head, this may take a while depending on your cpu(s)... ruby-1.8.7-head - #fetching Cloning from [github url], this may take a while depending on your connection... Initialized empty Git repository in /usr/local/rvm/repos/ruby-1.8.7-head/.git/ error: SSL certificate problem, verify that

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

旧城冷巷雨未停 提交于 2019-12-07 08:59:05
问题 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

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

江枫思渺然 提交于 2019-12-07 07:10:23
问题 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. 回答1: 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