rvm

in `require': no such file to load — iconv (LoadError)

北慕城南 提交于 2019-11-27 23:33:13
➜ expertiza git:(master) ✗ ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.1.0] ➜ expertiza git:(master) ✗ rails -v Rails 2.3.14 ➜ expertiza git:(master) ✗ script/server /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/inflector.rb:3:in `require': no such file to load -- iconv (LoadError) from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/inflector.rb:3 from /Users/HPV/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.14/lib/active_support/core_ext/integer/inflections.rb:1:in `require' from /Users/HPV/.rvm/gems

Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile

心不动则不痛 提交于 2019-11-27 23:01:31
I have seen a number of posts on this before and have followed their instructions but nothing is working. I'll outline below what I have done, and the instructions I have follows - would be grateful for any advice! I have followed the following installation instructions: http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac I have downloaded X-code for OSX Mountain Lion, and installed the gcc compiler: $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free

RVM doesn't set correct gem path

£可爱£侵袭症+ 提交于 2019-11-27 21:24:17
On a clean OS X Snow Leopard install, I have a problem with RVM: It sets the ruby path correctly but doesn't set the gem path. When I start a rails server, it mixes versions which doesn't work. To illustrate: $ rvm system $ which ruby /usr/bin/ruby $ which rails /usr/bin/rails $ rvm use 1.9.2-head Using /Users/m/.rvm/gems/ruby-1.9.2-head $ rvm gem list LOCAL GEMS [...] rails (3.0.7) [...] $ which ruby /Users/m/.rvm/rubies/ruby-1.9.2-head/bin/ruby $ which rails /usr/bin/rails Any ideas what might be wrong? Some additional info: $ echo $GEM_PATH /Users/m/.rvm/gems/ruby-1.9.2-p180:/Users/m/.rvm

Emacs is ignoring my path when it runs a compile command

倖福魔咒の 提交于 2019-11-27 20:14:42
I'm trying to get a compile command (rake cucumber) to run with a specific ruby version on my Mac OS X system, I use rvm to do this currently in the terminal. My ~/.MacOSX/environment.plist has the correct path in it, but emacs insists on prepending to this path and therefore making it useless. I've also tried: (when (equal system-type 'darwin) (setenv "PATH" (concat "/Users/fearoffish/.rvm/bin:/Users/fearoffish/.rvm/rubies/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249/bin:/Users/fearoffish/.rvm/gems/ruby-1.8.7-p249%global/bin:/Users/fearoffish/.rvm/bin")) (push "/Users

RVM: Uninstalling all gems of a gemset

三世轮回 提交于 2019-11-27 19:42:31
问题 I have global gems and various gemsets. I want to remove all gems of a gemset. Is there a way do to this, besides uninstalling the gemset? 回答1: Use the gemset empty command: rvm gemset empty mygems 回答2: This command removes all the ruby gems installed locally in 1-step Works well in Ubuntu 10.10 gem list | cut -d" " -f1 | xargs gem uninstall -aIx PS - removes all local gems. Use sudo accordingly. 回答3: rvm gemset empty <gemset name> This will remove all gems from your mentioned gemset. 回答4:

RVM installed by Ruby not working?

血红的双手。 提交于 2019-11-27 19:39:35
I installed RVM using the single instruction mentioned at the RVM website (using git). Then I installed Ruby version 1.9.2 and 1.8.7 using: rvm install 1.9.2 rvm install 1.8.7 However, I cannot find the Ruby binary. When I try to execute the command, I get the following error: [root@server1 support]# rvm use 1.9.2 Using /usr/local/rvm/gems/ruby-1.9.2-p136 [root@server1 support]# ruby -bash: ruby: command not found Here is the output of rvm info : [root@server1 support]# rvm info system: system: uname: "Linux server1.myserver.com 2.6.18-194.26.1.el5.028stab070.14 #1 SMP Thu Nov 18 16:34:01 MSK

How to set default Ruby version with RVM?

谁说我不能喝 提交于 2019-11-27 18:20:35
Ubuntu 11. I do the following: $ rvm --default use 1.9.2 and I get: Using /home/md/.rvm/gems/ruby-1.9.2-p180 so that is good. but when I now open a new terminal window I still get: $ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux] If you put the RVM source line in your bashrc (in order to ensure that non-interactive shells have access to RVM), you will need to source .bashrc from your .bash_profile with the following as the last lines in your .bash_profile if [ -f "$HOME/.bashrc" ]; then source $HOME/.bashrc fi This pre-supposes that you have [[ -s "$HOME/.rvm/scripts/rvm" ]] &&

Rails 3 - no such file to load — openssl

我的梦境 提交于 2019-11-27 18:05:41
when running a Rails server, I get the following error: no such file to load -- openssl I try a solution I find online. I go to ~/.rvm/src/ruby-1.9.2-head/ext/openssl. I type : ruby extconf.rb, but I get the following: === OpenSSL for Ruby configurator === === Checking for system dependent stuff... === checking for t_open() in -lnsl... no checking for socket() in -lsocket... no checking for assert.h... yes === Checking for required stuff... === checking for openssl/ssl.h... no === Checking for required stuff failed. === Makefile wasn't created. Fix the errors above. I cannot use make nor make

Ruby RVM apt-get update error

拈花ヽ惹草 提交于 2019-11-27 17:48:58
I get following error when trying to install anything with RVM: Searching for binary rubies, this might take some time. Found remote file https://rvm.io/binaries/ubuntu/13.04/x86_64/ruby-2.1.1.tar.bz2 Checking requirements for ubuntu. Installing requirements for ubuntu. Updating system..kshitiz password required for 'apt-get --quiet --yes update': ............................ Error running 'requirements_debian_update_system ruby-2.1.1', showing last 15 lines of /home/kshitiz/.rvm/log/1400047196_ruby-2.1.1/update_system.log ++ /scripts/functions/logging : rvm_pretty_print() 78 > case "${TERM:

Problems with the rails console, RVM and readline

倾然丶 夕夏残阳落幕 提交于 2019-11-27 17:26:31
I've installed rvm as a way of making sure that my local development version of ruby is the same as my server's for a particular app i work on (ruby 1.8.7). I've done this, and installed ruby 1.8.7 ok. However, when i try to start the rails console i get this error: Readline was unable to be required, if you need completion or history install readline then reinstall the ruby. You may follow 'rvm notes' for dependencies and/or read the docs page http://rvm.beginrescueend.com/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after