rvm

how to make a gemset in RVM the default?

北慕城南 提交于 2019-11-30 04:20:09
I'm trying to make a gemset the default whenever I start a new terminal in Mac OS X: rvm use 1.9.3@rails3.2 --create --default That seems to work, the rails3.2 gemset becomes the current gemset: $ rvm gemset list gemsets for ruby-1.9.3-p0 (found in /Users/me/.rvm/gems/ruby-1.9.3-p0) global => rails3.2 $ But when I open up a new terminal, the rails3.2 gemset is no longer the current: $ rvm gemset list gemsets for ruby-1.9.3-p0 (found in /Users/me/.rvm/gems/ruby-1.9.3-p0) global rails3.2 $ What do I do? Have you tried specifying rvm --default use after the gemset is created so passing: rvm -

rails -v cannot load such file — rails/cli (LoadError)

二次信任 提交于 2019-11-30 04:13:58
问题 Ubuntu 14.04. So everything was working fine and I had my terminal open with two tabs - one tab had webbrick running on my sebcoles project, and the other tab I used to clone my english_teacher repo. It all downloaded fine and I changed into the directory. I'll just paste everything here - it's all pretty clear: andrew:projects$ cd pinteresting RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too, you can ignore these warnings with 'rvm rvmrc warning ignore /home

How to tell which openssl lib is actually being used by an RVM-installed ruby

孤街浪徒 提交于 2019-11-30 04:13:07
问题 I discovered that I can successfully install ruby with any of the following commands: $ rvm reinstall 1.9.3-p327 $ rvm reinstall 1.9.3-p327 --with-openssl-dir=/usr/local $ rvm reinstall 1.9.3-p327 --with-openssl-dir=/afdlkjasd_not_a_dir $ rvm reinstall 1.9.3-p327 --with-openssl-dirffadsf=/afdlkjasd_not_a_dir Regardless of which of the above commands I used, I can then type: $ rvm use 1.9.3-p327 Using /home/clay/rvm/gems/ruby-1.9.3-p327 $ which ruby /home/clay/.rvm/rubies/ruby-1.9.3-p327/bin

Rails Script Segmentation Fault with RVM

帅比萌擦擦* 提交于 2019-11-30 03:53:17
问题 I am getting a segmentation fault. Should which ruby return /usr/local/bin? maletor$ rails generate mailer ContactMailer /Users/maletor/.rvm/gems/ruby-1.9.2-p0/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle: [BUG] **Segmentation fault** ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] Abort trap maletor$ which rails /usr/bin/rails maletor$ gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-darwin10.4.0] - INSTALLATION

Error running 'requirements_osx_brew_libs_install…' on Mac 10.7

眉间皱痕 提交于 2019-11-30 03:13:32
Trying to install brew on a last generation Macbook Pro and keep getting the following error: Error running 'requirements_osx_brew_libs_install autoconf automake libtool pkg-config apple-gcc42 libyaml readline libxml2 libxslt libksba openssl sqlite', please read /Users/allegrascrugham/.rvm/log/ruby-1.9.3-p392/1368142352_package_install_autoconf_automake_libtool_pkg-config_apple-gcc42_libyaml_readline_libxml2_libxslt_libksba_openssl_sqlite.log I tried removing and reinstalling RVM & Brew with no luck. Nik I had the exact same error when running rvm requirements . That log file doesn't give any

Can't update RVM - “fatal: Unable to find remote helper for 'http'”

孤街醉人 提交于 2019-11-30 03:09:21
问题 I'm running RVM 1.1.6 on Ubuntu 8.04 and all of a sudden I can't update to the latest version anymore. ~ rvm get head Original installed RVM version: rvm 1.1.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] fatal: Unable to find remote helper for 'http' Installed RVM HEAD version: rvm 1.1.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] Googling for "fatal: Unable to find remote helper for 'http'" just gave me a few results, it seems

installing gems using rvm

China☆狼群 提交于 2019-11-30 03:08:35
When trying to install gems using rvm i get this error $ rvm gem install sproutcore ERROR: While executing gem ... (Errno::EACCES) Permission denied - /home/tee/.gem/specs but it says on the rvm site that you should not use sudo so I'm not sure whats wrong with my setup when i type $GEM_HOME it shows that the directory is pointing to the rvm dir $GEM_HOME bash: /home/tee/.rvm/gems/ruby-1.8.7-p302: is a directory Any ideas what I'm doing wrong? There's a permission issue with your .gem folder. Make sure the owner is your current user. sudo chown -R tee /home/tee/.gem If it doesn't work, remove

How do I use JRUBY_OPTS with RVM?

戏子无情 提交于 2019-11-30 02:20:53
It seems that the idiomatic way to provide flags to JRuby in an RVM-based Rails project is to set the environmental variable JRUBY_OPTS or PROJECT_JRUBY_OPTS, the latter perhaps being done automatically, since I see I can uncomment this line from my project directory's .rvmrc : PROJECT_JRUBY_OPTS=( --1.9 ) However, that line seems to do nothing, and if I set the environmental variables, RVM actually unsets them. So, how am I supposed to do this? (Note that I have this at the bottom of my .bashrc file, which is how I believe I'm supposed to use rvm:) [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "

How does RVM detect when you've changed directories?

假如想象 提交于 2019-11-30 02:03:19
One thing that RVM can do is notice when you've changed directories, look for an .rvmrc , and change your current Ruby version and gemset according to that file's contents. It makes this change as soon as you change into that directory and outputs a message accordingly. How does it detect a change in the current working directory? I can imagine an extremely crude way of doing this: run a daemon that runs as the current user and keeps checking the results of pwd . But I'm sure that's not what it does. Another approach might be to alias cd to change directories but also check for an .rvmrc and

Readline not working in rvm - Ubuntu 11.10

那年仲夏 提交于 2019-11-30 01:53:10
问题 I am using rvm on my ubyntu 11.10. My readline is not working, I tried ruby extconf.rb but it is not passed. Output is bellow: $ ruby extconf.rb checking for tgetnum() in -lncurses... yes checking for readline/readline.h... yes checking for readline/history.h... yes checking for readline() in -lreadline... no checking for readline() in -ledit... no checking for editline/readline.h... no I tried installing libncurses5-dev & libreadline5-dev $ sudo apt-get install libncurses5-dev libreadline5