Giter Site home page Giter Site logo

rvm / rvm Goto Github PK

View Code? Open in Web Editor NEW
5.1K 162.0 1.0K 22.03 MB

Ruby enVironment Manager (RVM)

Home Page: https://rvm.io

License: Other

Ruby 0.60% Shell 99.33% Java 0.03% Dockerfile 0.04%
rvm ruby ruby-versions ruby-environment jruby rbx rubinius mri-ruby truffleruby mruby

rvm's Introduction

Tests GPG signature check OpenCollective OpenCollective

What's RVM

RVM is the acronym of Ruby enVironment Manager. It manages Ruby application environments and enables switching between them.

Homepage and more info at https://rvm.io

Table of Contents

Installing RVM

Ubuntu

RVM have dedicated Ubuntu package, so please follow instructions posted here: https://github.com/rvm/ubuntu_rvm

If you need a different (newer) version of RVM, after installing base version of RVM check the Upgrading section below.

Any other operating system

Make sure you have following required packages installed:

  • curl
  • gpg2

And then run:

\curl -sSL https://get.rvm.io | bash -s stable

Additional installation options

Additional installation options and details about the installation process are described here: https://rvm.io/rvm/install

Upgrading RVM

You can upgrade RVM any time by running:

rvm get VERSION

Where VERSION should be replaced by one of the following values:

  • stable - latest stable RVM (good for servers)
  • master - latest RVM (might not be stable)
  • branch /path/branch - branched version of RVM (for testing new features or bug fixes)

Additional upgrading options are described here: https://rvm.io/rvm/upgrading

Basic RVM usage

Basic RVM usage scenarios include installing and switching between different ruby versions.

Installing ruby

To install ruby you have to call rvm install INTERPRETER[-VERSION] OPTIONS

When no version specified, RVM will install latest stable version or selected interpreter. If you omit to specify interpreter, RVM will assume that you wanted to install MRI ruby. Following examples would have exactly the same effect:

rvm install ruby-2.3.1
rvm install ruby-2.3
rvm install 2.3.1
rvm install 2.3

Passing additional --default option makes selected ruby your default.

We currently supported following ruby interpreters:

  • ruby - MRI ruby (The Gold Standard)
  • ironruby - a .NET ruby
  • jruby - Java implementation of the ruby
  • macruby - implementation of ruby 1.9 directly on top of macOS core technologies
  • maglev - 64-bit implementation on top of VMware's GemStone
  • mruby - lightweight ruby
  • opal - ruby to JavaScript compiler
  • rbx - Rubinius - a next generation virtual machine VM for ruby
  • topaz - high performance ruby, written in RPython
  • truffleruby - high performance ruby using GraalVM

Historical interpreters which you can still install with RVM, but are not anymore developed and supported by their authors:

  • ree - Ruby Enterprise Edition - MRI Ruby with several custom patches for performance, stability, and memory

Switching between ruby versions

To switch between ruby versions you should call

rvm use INTERPRETER[-VERSION]

Same rules and options apply as for install command with two special interpreters.

  • default - default ruby (or the system ruby if a default hasn't been set)
  • system - system ruby (state before RVM was installed)

Additionally you might want to list your preferred ruby version in a .ruby-version file stored in your project folder. This would cause automatic switch to selected ruby whenever you enter the folder.

Other RVM commands

RVM comes bundled with many different tools for managing your ruby environment. More detailed information about every command listed below can be read after executing rvm help COMMAND or browsing documentation on RVM homepage https://rvm.io.

Reporting issues

Here at RVM we get a high amount of bug reports, and often they are connected with specific environment settings which might be hard for us to replicate. That's why we would kindly ask you to follow the steps below so we can maximize our time helping you and minimize the time requesting more information.

Check documentation

We know, you hear this over and over and be rest assured we are working hard to improve the usability of https://rvm.io but we must always ask that you first please check the documentation if you are requesting a feature or if you are not sure if you did it right.

Try again with latest RVM

We try to release a new RVM as soon as we feel that we achieved certain stability. This might take a while and it could be the case that your issue has been already resolved in our development branch. Please get the latest RVM and try again:

rvm get master

File an issue

If the documentation is not clear, an error message is not clear or you are stuck with the problem, please do file a bug.

When in doubt as to whether your issue might relate to another, simply file a new bug, and we will mark it as duplicate if it needs to be. It's always better to file a new ticket and let us sort it out than to accidentally add noise to another ticket.

For filing issues, we have prepared a template for you to use. Please try to fill all sections as best as you can. Always make sure to split up each command and its output into its own fenced code block. If the output is long, please put it in a separate gist. Otherwise it's hard for us to process all the information and respond quickly.

Note that if there is a lot of debug or trace output you can redirect it to a file with the > character like rvm [command] > output.txt.

Contributing

You are very warmly welcome to help. Please follow our contribution guidelines

Any and all contributions offered in any form, past present or future are understood to be in complete agreement and acceptance with our Apache License v2.0.

Backers

Become a backer and support us with a small monthly donation to help us continue our activities. Thank you if you are already one of them! 🙏

Backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

Sponsors

License

Copyright (C) Michal Papis (2011-2021), Piotr Kuczynski (2016-2021), Wayne E. Seguin (2009-2011)

Licensed under the Apache License, Version 2.0

rvm's People

Contributors

ajiwo avatar arunagw avatar brianhawley avatar carols10cents avatar ch00k avatar docwhat avatar envygeeks avatar eregon avatar havenwood avatar headius avatar hurricup avatar jzacsh avatar koic avatar lemoinem avatar mattconnolly avatar mpapis avatar niw avatar nrk avatar pcarn avatar pkuczynski avatar raelgc avatar rctay avatar richo avatar sikachu avatar skaes avatar southwolf avatar sutto avatar timfel avatar wayneeseguin avatar wteuber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rvm's Issues

IRB using 1.8.7 when it should be using 1.9.2

~/Desktop/rvm$ rvm use default
~/Desktop/rvm$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin8]
~/Desktop/rvm$ irb

RUBY_VERSION
=> "1.8.7"
quit
~/Desktop/rvm$ rvm use 1.9.2
~/Desktop/rvm$ ruby -v
ruby 1.9.2dev (2009-07-18 trunk 24186) [i386-darwin10.0.0]
~/Desktop/rvm$ irb
ruby-1.9.2-preview1 > RUBY_VERSION
=> "1.8.7"

Notice the IRB prompt says "ruby-1.9.2-preview1" but RUBY_VERSION in IRB returns "1.8.7".

Handling Bad Installations

When trying to install a ruby, one of the servers was down. As a result, rubygems could not be installed.

beryllium:{eric}~:rvm install 1.8.7

Output:

info: Installing Ruby from source to: /home/eric/.rvm/rubies/ruby-1.8.7-p302

info: /home/eric/.rvm/src/ruby-1.8.7-p302 has already been extracted.

info: Configuring ruby-1.8.7-p302, this may take a while depending on your cpu(s)...

info: Compiling ruby-1.8.7-p302, this may take a while depending on your cpu(s)...

info: Installing ruby-1.8.7-p302

info: Installation of ruby-1.8.7-p302 is complete.

info: Installing rubygems dedicated to ruby-1.8.7-p302...

info: Retrieving rubygems-1.3.7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1053  100  1053    0     0      7      0  0:02:30  0:02:30 --:--:--   280

info: Extracting rubygems-1.3.7 ...

info: Installing rubygems for /home/eric/.rvm/rubies/ruby-1.8.7-p302/bin/ruby

error: Error running 'GEM_PATH=/home/eric/.rvm/gems/ruby-1.8.7-p302:/home/eric/.rvm/gems/ruby-1.8.7-p302@global GEM_HOME=/home/eric/.rvm/gems/ruby-1.8.7-p302 BUNDLE_PATH=/home/eric/.rvm/gems/ruby-1.8.7-p302 /home/eric/.rvm/rubies/ruby-1.8.7-p302/bin/ruby /home/eric/.rvm/src/rubygems-1.3.7/setup.rb', please check /home/eric/.rvm/log/ruby-1.8.7-p302/rubygems.install*.log
Installation of rubygems ruby-1.8.7-p302 did not complete successfully.
info: adjusting shebangs for ruby-1.8.7-p302 (gem irb erb ri rdoc testrb rake).

info: Importing initial gems..

The directory:

/home/eric/.rvm/src/rubygems-1.3.7/

is empty so that's why the install failed.

I looked into installing rubygems directly from rubyforge and the mirror it was retrieving the download from was timing out.

It would be nice if rvm provided a better message for this when downloading fails.

Snow Leopard: rake fails to install (gem/rake using default mac install)

I'm installing via the cloned git repository, running the scripts/rvm-install command.
I reload my terminal and run

for version in 1.8.6 1.8.7 1.9.1 1.9.2 ; do rvm install $version -C --enable-shared,--with-readline-dir=/usr/local ; done
touch: /Users/macbook/.rvm/config/cache: No such file or directory
grep: /Users/macbook/.rvm/config/cache: No such file or directory
touch: /Users/macbook/.rvm/config/cache: No such file or directory
grep: /Users/macbook/.rvm/config/cache: No such file or directory
-bash: /Users/macbook/.rvm/config/cache: No such file or directory
Installing Ruby from source to: /Users/macbook/.rvm/ruby-1.8.6-p383
Downloading ruby-1.8.6-p383, this may take a while depending on your connection...
Extracting ruby-1.8.6-p383 ...
Configuring ruby-1.8.6-p383 using --enable-shared --with-readline-dir=/usr/local, this may take a while depending on your cpu(s)...
Compiling ruby-1.8.6-p383, this may take a while, depending on your cpu(s)...
Installing ruby-1.8.6-p383
Installation of ruby-1.8.6-p383 is complete.
Installing rubygems dedicated to ruby-1.8.6-p383...
Installing rake
/Users/macbook/.rvm/ruby-1.8.6-p383/bin/rake is missing
Installation of rubygems for ruby-1.8.6-p383 is complete.
/Users/macbook/.rvm/gems/ruby/1.8.6/bin/rake is missing
mv: rename /Users/macbook/.rvm/gems/ruby/1.8.6/bin/rake to /Users/macbook/.rvm/gems/ruby/1.8.6/bin/rake.orig: No such file or directory

rubygems.install.error.log is empty
rubygems.install.log is
RubyGems 1.3.5 installed

<U+FEFF>=== 1.3.5 / 2009-07-21

Bug fixes:

* Fix use of prerelease gems.
* Gem.bin_path no longer escapes path with spaces. Bug #25935 and #26458.

Deprecation Notices:

* Bulk index update is no longer supported (the code currently remains, but not
  the tests)
* Gem::manage_gems was removed in 1.3.3.
* Time::today was removed in 1.3.3.


------------------------------------------------------------------------------

RubyGems installed the following executables:
        /Users/macbook/.rvm/ruby-1.8.6-p383/bin/gem

gemsets don't work with macruby

Command sequence:

rvm use macruby

rvm gemset create my-gemset

rvm gemset use my-gemset

gem install hotcocoa

After that, hotcocoa get installed in the default gemset of macruby instead of my-gemset. You can check it by deleting the gemset:

rvm gemset use my-gemset

gem list

I'm using RVM 1.1.5, RVM debug output on https://gist.github.com/742248

installed but error in rvm-install ...

$ sudo gem install rvm
Successfully installed rvm-0.0.37
1 gem installed
Installing ri documentation for rvm-0.0.37...
Installing RDoc documentation for rvm-0.0.37...
$ rvm-install
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:827:in report_activate_error': Could not find RubyGem rvm (>= 0) (Gem::LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:261:inactivate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:68:in `gem'
from /usr/local/bin/rvm-install:18

unattended system-wide install fails without setting USER

While setting up RVM via the user data script from the ubuntu EC2 AMIs, I found that this situation fails, as this environment fails to set USER (and HOME, for that matter):
From:

if [ ! -e /usr/local/bin/rvm ] ; then
  bash < <( curl -L http://bit.ly/rvm-install-system-wide )
fi

I get:
./scripts/install: line 211: USER: unbound variable

(Setting USER correctly allows things to work)

Seems like one could make an assumption about the USER on the system wide? If not, it's still a problem, as the script doesn't notice the error, but continues setting up parts of the system while leaving a more or less broken state behind.

error installing on ubuntu

I installed the gem like 45 seconds ago and ran the installer and got this:

Latest Rubygems, latest Ubuntu 9.10.

radar@driver:~/rubygems-1.3.5$ rvm-install
sh: bash -l -c 'cd /usr/lib/ruby/gems/1.8/gems/rvm-0.0.27 && ./scripts/rvm-install && source ~/.rvm/scripts/rvm': not found

rvm not selecting the the correct gemset

glazgo~> rvm use ruby-1.9.2-p136
info: Using /Users/taf2/.rvm/gems/ruby-1.9.2-p136
glazgo~> vim .rvmrc
glazgo~> which ruby
/Users/taf2/.rvm/rubies/ruby-1.9.2-p136/bin/ruby
glazgo~> which gem
/Users/taf2/.rvm/rubies/ruby-1.9.2-p136/bin/gem
glazgo~> rvm gemset create 'test'
info: 'test' gemset created (/Users/taf2/.rvm/gems/ruby-1.9.2-p0@test).
glazgo~>

see how it says ruby-1.9.2-p0@test instead of ruby-1.9.2-p136@test ??

Error on install

Whenever I install a ruby version I'm seeing this:

Installing rubygems dedicated to ruby-1.9.1-p243... 
sed: can't read s/require_paths\.join/require_paths.to_a.join/: No such file or directory

Installing rubygems dedicated to ruby-enterprise-1.8.6-20090610... 
sed: can't read s/require_paths\.join/require_paths.to_a.join/: No such file or directory

rvm does not update PATH when it is updated in .bash_profile

It seems that after installing, there is a default_path created in the .rvm directory.

If I make a change to update my path inside my .bash_profile, it is never picked up by rvm.

Might be worth creating an "update default path command" to make changes if you update your default path.

GEM_HOME and 'rvm system'

My GEM_HOME settings are wiped out when I run 'rvm system'

$ export GEM_HOME="foo"; rvm 1.9.2; rvm system; echo $GEM_HOME

should print "foo" (but it doesn't)

On Aug 26th, Wayne said: "RVM used to do this, we removed the recording of system at some point, I'll add a tracker story to address it."

Does anyone know a quick workaround to this problem??

tx, Andy

macruby-head fails to install

On a fresh install of RVM I get this:

$ rvm install macruby-head
/Users/robby/.rvm/rubies/macruby-head, this may take a while depending on your cpu(s)...

macruby-head - #fetching 
Cloning from git://git.macruby.org/macruby/MacRuby.git, this may take a while depending on your connection...
Cloning into /Users/robby/.rvm/repos/macruby-head...
remote: Counting objects: 8350, done.
remote: Compressing objects: 100% (6872/6872), done.
remote: Total 8350 (delta 1310), reused 6030 (delta 1087)
Receiving objects: 100% (8350/8350), 11.11 MiB | 706 KiB/s, done.
Resolving deltas: 100% (1310/1310), done.
error: pathspec 'trunk' did not match any file(s) known to git.
fatal: Couldn't find remote ref trunk
There has been an error while checking out branch trunk.           
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
There has been an error while trying to install from source.             
Halting the installation.

problem trying to trust all project .rvmrc files

Hi,

Trying to setup a build server (TeamCity) and would like to just trust all project .rvmrc files, rather than having to manually go into build directories to set the trust.

Using rvm 1.1.6 on ubuntu, using the system wide install.

Tried putting the following setting into ~/.rvmrc and /etc/rvmrc but still getting the trust prompts.

rvm_trust_rvmrcs=1

As per details here http://wayneeseguin.beginrescueend.com/2010/08/22/ruby-environment-version-manager-rvm-1-0-0/

Thanks, Chris

`rvm install jruby-head` not working

$ rvm install jruby-head
jruby-head - #fetching 
error: pathspec 'ruby_1_head_head' did not match any file(s) known to git.
fatal: Couldn't find remote ref ruby_1_head_head
There has been an error while checking out branch ruby_1_head_head.           
Halting the installation.
There has been an error while trying to fetch the source.           
Halting the installation.

rvm gemset copy doesn't work

bobby:# rvm gemset copy ree@default ree@rails3
info: Copying gemset from ree@default to ree@rails3
info: Making gemset for ree@rails3 pristine.
bobby:
# rvm ree@rails3
bobby:~# gem list

*** LOCAL GEMS ***

rake (0.8.7)

Additionally:

bobby:~# rvm gemset copy default rails3
error: Destination gemset 'rails3' does not yet exist.

while:

rvm gemset list_all

info:
gemsets for ree-1.8.7-2010.02 (found in /opt/rvm/gems/ree-1.8.7-2010.02)
default
global
rails3

Trying to install a ruby against rvm-provided openssl fails with architecture incompatibilities

This is on 10.6. I know that openssl is not needed in general, but the version of openssl that OS X ships with has a major blocking bug for an application I am using so I need to use a custom OpenSSL installation.

~ ♪ rvm package install openssl                        
Fetching openssl-0.9.8n.tar.gz to /Users/bjeanes/.rvm/archives
Extracting openssl-0.9.8n.tar.gz to /Users/bjeanes/.rvm/src
Configuring openssl in /Users/bjeanes/.rvm/src/openssl-0.9.8n.
Compiling openssl in /Users/bjeanes/.rvm/src/openssl-0.9.8n.
Installing openssl to /Users/bjeanes/.rvm/usr
~ ♪ rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr
/Users/bjeanes/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)...

ruby-1.9.2-p0 - #fetching 
ruby-1.9.2-p0 - #extracted to /Users/bjeanes/.rvm/src/ruby-1.9.2-p0 (already extracted)
ruby-1.9.2-p0 - #configuring 
ruby-1.9.2-p0 - #compiling 
Error running 'make ', please read /Users/bjeanes/.rvm/log/ruby-1.9.2-p0/make.log
There has been an error while running make. Halting the installation.
~ ♪ tail /Users/bjeanes/.rvm/log/ruby-1.9.2-p0/make.log
tcltklib.c:9465: warning: implicit conversion shortens 64-bit value into a 32-bit value
tcltklib.c:9472: warning: implicit conversion shortens 64-bit value into a 32-bit value
tcltklib.c:9475: warning: implicit conversion shortens 64-bit value into a 32-bit value
tcltklib.c: In function ‘tcltklib_compile_info’:
tcltklib.c:9539: warning: implicit conversion shortens 64-bit value into a 32-bit value
gcc -dynamic -bundle -o ../../.ext/x86_64-darwin10.5.0/tcltklib.bundle stubs.o tcltklib.o -L. -L../.. -L/System/Library/Frameworks/Tcl.framework -L/System/Library/Frameworks/Tk.framework -L/usr/local/lib -L/usr/lib -L.    -lpthread -framework CoreFoundation  -F/System/Library/Frameworks -framework Tcl    -lpthread -framework CoreFoundation -framework Cocoa -framework Carbon -framework IOKit   -lpthread -framework CoreFoundation  -F/System/Library/Frameworks -framework Tk -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace  -lruby.1.9.1 -lm -ldl  -lpthread -ldl -lobjc 
ld: in /usr/local/lib/libcrypto.0.9.8.dylib, file was built for i386 which is not the architecture being linked (x86_64)
collect2: ld returned 1 exit status
make[1]: *** [../../.ext/x86_64-darwin10.5.0/tcltklib.bundle] Error 1
make: *** [mkmain.sh] Error 1

[PATCH] rvm-install should follow symlinks

rvm-install currently doesn't preserve symlinks: I keep my .zshrc file in a separate dir, and ~/.zshrc links to this location.

I've implemented a fix for this in Chrononaut@5bcf9ff8209914d835d7d56a9bfc586580466b3c

RVM gets confused when list gemsets

Test case:
% rvm use 1.9.2@rails303 # GOOD
info: Using ... with gemset rails303

% rvm 1.8.7 gemset list   # SURPRISING ERROR
error: Gemset 'rails303' does not exist, rvm gemset create 'rails303' first.
info: 
gemsets for ruby-1.8.7-p302 (found in ...)

global

%

So despite specifying 1.8.7, RVM is trying to do something with my 1.9.2
gemsets.

I'm not sure how many people use the <version> gemset list command this way.
I find it useful, and I also need it to be working for some completion stuff
I'm working on (though I can work around it without much trouble).

RVM + screen + termcap

Hello.

There's strange problem in /home/iloop/.rvm/lib/rvm/shell/shell_wrapper.sh

following sed:

env | sed "s#'#'#g" | sed -e 's#"#"#g' -e "s#([^=])=(.)# '\1': "\2"#"

sometimes produces incorrect YAML which causes rvm to fail in very bizzarre way.
here's the dump of parsed yaml http://pastie.org/1362922

Errors installing different Ruby versions

Snow Leopard; RVM 0.36; zsh

Trying to install ree;

~% rvm install ree -C --enable-shared=true,--with-readline-dir=/usr/local
The install errors out -- note that I am following the troubleshooting guideline for readline errors (I got the same error without the extras, though)

readline.c: In function ‘username_completion_proc_call’:
readline.c:734: error: ‘username_completion_function’ undeclared (first use in this function)
readline.c:734: error: (Each undeclared identifier is reported only once
readline.c:734: error: for each function it appears in.)
make[1]: *** [readline.o] Error 1
make: *** [all] Error 1

Then I tried Ruby 1.8.6

rvm install 1.8.6 -C --enable-shared=true,--with-readline-dir=/usr/local

Same basic error.

I'm clearly missing something. Any ideas?

Noel

rvm add (duplicate) path to $PATH

When installing rvm in /usr/local/rvm it is adding a duplicate item to the PATH variable /usr/local//bin (notice the double slashes).

JRuby 1.5.6 on Ubuntu looks for Mac specific location

here is terminal output.

jruby-1.5.6 - #extracting jruby-bin-1.5.6 to /home/jason/.rvm/src/jruby-1.5.6
jruby-1.5.6 - #extracted to /home/jason/.rvm/src/jruby-1.5.6
Building Nailgun
jruby-1.5.6 - #installing to /home/jason/.rvm/rubies/jruby-1.5.6
jruby-1.5.6 - #importing default gemsets (/home/jason/.rvm/gemsets/)
Copying across included gems
/home/jason/.rvm/rubies/jruby-1.5.6/bin/jruby: line 346: /Library/Java/Home/bin/java: No such file or directory
/home/jason/.rvm/rubies/jruby-1.5.6/bin/jruby: line 346: exec: /Library/Java/Home/bin/java: cannot execute: No such file or directory

Does not handle interruping the downloads.

I interrupted the download of ruby 1.9.1 after that it failed to install again.
interrupting leaves the logs and download cache lying around so next time you run the installer it doesn't attempt to download the source again

$: rvm install 1.9.1
Installing Ruby from source to: /Users/robaldred/.rvm/ruby-1.9.1-p243
autoconf: no input file
error There was an error, please check /Users/robaldred/.rvm/log/ruby-1.9.1-p243/*.error.log

I resolved it by removing the 'ruby-1.9.1-p243' folder in the .rvm/src directory

Error on rvm use ruby -v 1.8.

"rvm use ruby -v 1.8.7" runs fine till here:

Compiling ruby-1.8.7-p174, this may take a while, depending on your cpu(s)...

error There was an error, please check /Users/Gavin/.rvm/log//*.error.log
-bash: /Users/Gavin/.rvm/ruby-1.8.7-p174/.irbrc: No such file or directory
-bash: /Users/Gavin/.rvm/ruby-1.8.7-p174/.irbrc: No such file or directory

Looking into it:

$ cd /Users/Gavin/.rvm/ruby-1.8.7-p174
-bash: cd: /Users/Gavin/.rvm/ruby-1.8.7-p174: No such file or directory
$ cd /Users/Gavin/.rvm/
$ ls
archives/ config/ default_path default_system_ruby examples/ log/ src/
bin/ default default_system_gem_path default_user_gem_path gems/ scripts/

Is there a fix?

Gavin

Automatically trust rvmrc in release path when deploying with capistrano

If you have an .rvmrc in a Rails project root, then after each deploy the .rvmrc gets untrusted, since the release path changes.

This affects any command-line tools invoked from the release_path, like cron commands generated by whenever. It can be mitigated by calling rvm rvmrc trust #{release_path} after deploy.

I suggest that the .rvmrc gets trusted automatically, since that follows the path of least surprise.

rvm bash_profile syntax error

Having just installed rvm 0.0.36 on OS X 10.5.8 for the first time and let it update my .bash_profile for me, I get the following error:

-bash: ~/.bash_profile: line 41: syntax error near unexpected token `then'
-bash: ~/.bash_profile: line 41: `complete -o default -o nospace -F _git ghif [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi'

"can't find executable rake" when installing ruby-opengl

I got this on a clean install of RVM 1.1.11 on OS X 10.6.5, and it is perfectly repeatable.

  1. install rvm, add the readline lib, then install ruby-1.9.2-p136 (with p0 is the same)
  2. clone the latest git repo of ruby-opengl (the gem is not 1.9 compatible), and build the gem
  3. do a gem install of the new gem, plus the required dependencies.

At this point the installation fails with the following message:

rubygems.rb:340:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception)

There is a lot of similar thread out there about this message, but these are mostly on Windows, and the suggested solutions don't work here.

Note that, if I install the gem-compile plugin of rubygems (gem install gem-compile), and then build a compiled gem for ruby-opengl (and this works fine), then the compiled gem install smoothly (since it does not require rake during install). This should demonstrate that the issue is not related to the particular gem (because it compiles smoothly) but rather to the RVM use of rake during installs.

Note also that I cannot confirm that non-RVM environment (regular installs) are not affected by the same issue.

Still using default gem over gemset gem in Rails server and console

I have both ree-1.8.7-2010.02 and ruby-1.9.2-head installed with RVM. My default ruby is ree-1.8.7-2010.02.

For a Rails 3 app, I created a new gemset off of 1.9.2-head using the rvmrc approach and bundle installed all my dependency one of which included sqlite3-ruby. I verified that the correct gemset was being loaded when change into the app directory.

Running rails console or rails server in the app and invoking an Active Record command resulted in a Seg Fault. The stack trace showed that the ree-1.8.7 sqlite3-ruby adapter was being used rather than the 1.9.2-head one. I then made 1.9.2-head my default ruby and then the problem went away.

rvm hardcodes PATH in ~/.rvm/current

I just installed 0.0.35 on a fresh install of Snow Leopard. I checked the commits on github to see if this has been fixed, but I don't see it.

In ~/.rvm/current, the PATH env var is being set with a hardcoded path. For example, on my system it was set to:

PATH=/Users/chris/.rvm/ruby-1.8.7-p174/bin:/Users/chris/.rvm/gems/ruby/1.8.7/bin:/Users/chris/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin ; export PATH

I suggest appending $PATH onto the end to use the currently set path. This will allow new paths added via /etc/paths and /etc/paths.d to be picked up dynamically.

PATH=/Users/chris/.rvm/ruby-1.8.7-p174/bin:/Users/chris/.rvm/gems/ruby/1.8.7/bin:/Users/chris/.rvm/bin:$PATH ; export PATH

Thanks,
Chris

"rvm gem install foo" endlessly repeats

This seems to be independent of the gem or the interpreter. For instance:

$ rvm --version

rvm 1.2.0 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]

$ rvm gem install excon
Successfully installed excon-0.3.8
1 gem installed
Installing ri documentation for excon-0.3.8...
Installing RDoc documentation for excon-0.3.8...
Successfully installed excon-0.3.8
1 gem installed
Installing ri documentation for excon-0.3.8...
Installing RDoc documentation for excon-0.3.8...
Successfully installed excon-0.3.8
1 gem installed
Installing ri documentation for excon-0.3.8...
^C^C^C^C^C^C^C^C^C^C

$ rvm list

rvm rubies

=> ruby-1.9.2-head [ x86_64 ]
   ruby-1.8.7-p174 [ x86_64 ]
   jruby-1.5.2 [ amd64-java ]
   jruby-1.5.6 [ amd64-java ]
   jruby-1.5.2-head [ linux-amd64-java ]


$ gem install excon
Successfully installed excon-0.3.8
1 gem installed
Installing ri documentation for excon-0.3.8...
Installing RDoc documentation for excon-0.3.8...

$ uname -a
Linux redlodge 2.6.32-27-generic \#49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010 x86_64 GNU/Linux

rvm install jruby is unable to install rake

when i try to install jruby, i get the following output:

rvm install jruby

Installing jRuby to: /Users/micha/.rvm/jruby-1.3.1 
Extracting jruby-bin-1.3.1... 
Installing jruby-1.3.1... 
Installing rake 
env: jruby: No such file or directory
Installing jruby-openssl 
env: jruby: No such file or directory

when i do rvm use jruby and then rvm install jruby again, everything works

Problems loading gems under Ruby 1.9

It seems that under Ruby 1.9, the gem load paths are not added to the ruby load path correctly. So when I install a gem and then load up irb, the gem doesn't seem to be installed. I seem to have the same problem with 1.9.1 and 1.9.2dev

Maybe I'm just doing something wrong. I dunno. Here's a gist with some results from bash and irb: http://gist.github.com/175899

Zsh issue

This is what I see when logging in after installing rvm (I use zsh shell):

/Users/oleg/.rvm/scripts/rvm-selector:157: parse error near `@prompt_mode'

Zsh completion for gemsets broken

I believe the problem is that RVM's output has changed since the Zsh completion was looked at:
% rvm gemset use
_values:compvalues:10: invalid value definition: ^[[32minfo^[[m^[(B:

I see the grep line responsible (53), which doesn't expect a green info line to be present when it invokes rvm gemset list. A tenuous fix is to just change the grep line to: \grep -Ev '(gemset|info)'. This is a trivial change, so I'm reporting here instead of doing a fork/pull request.

rvm 1.1.6 appears to be broken when switching to a .rvmrc

rvm rvmrc trust work/captico/promoohno/

cd work/captico/promoohno/
-bash: fork: Resource temporarily unavailable
/Users/taf2/.bashrc: fork: Resource temporarily unavailable
/Users/taf2/.rvm/scripts/utility: fork: Resource temporarily unavailable
<control + c>

RVM has encountered a not yet trusted .rvmrc file in the
current working directory which contains the following code:

rvm use ruby-1.9.2-p0@gopromo

============================================================
Trusting an .rvmrc file means that whenever you cd into the
directory RVM will excecute this .rvmrc script in your shell

Do you wish to trust this .rvmrc from now on?

(y for yes, n for no) >

Looking at my ps -ef listing... there are 100s of bashes' being forked... something seems horribly broken with this new version

opening a new tab in gnome-terminal v.2.32.0 into a directory with a .rvmrc shows RVM error

In gnome-terminal 2.32.0 (the version in Ubuntu 10.10), reproduce this by:

  • changing directory to a directory with a .rvmrc file
  • creating a new tab (Ctrl+Shift+T)

This is the error that shows up in the new tab:
A RVM version 1.1.4 is installed yet is loaded.
Please do one of the following:
* 'rvm reload'
* open a new shell
* source your shell init scripts

This message does not appear when opening a brand new gnome-terminal to a directory with a .rvmrc file. I'm not sure what gnome-terminal is doing differently when opening a new tab compared to opening a new window.

This is only a recent problem in HEAD (maybe a week or two old).

error installing on osx

got the following error after running rvm-install

sh: bash -l -c 'cd /opt/local/lib/ruby/gems/1.8/gems/rvm-0.0.27 && ./scripts/rvm-install && source ~/.rvm/scripts/rvm': No such file or directory

rvm upgrade bugs

rvm 1.1.6

  • I upgraded ruby version via this cmd:

    rvm upgrade ruby-1.9.2-p136 ruby-1.9.2-p0
  • Answered to all RVM questions with Yes

  • After that i reloaded RVM but via rvm info it was still ruby-1.9.2-p0 (is it ok?)

  • Fixed this with

    rvm use ruby-1.9.2-p136 --default
    and reopened shell

  • gem list was emtpy (only rake)

  • Went to .rvm/gems/ dir and found that upgrade process renamed ruby-1.9.2-p0 dir to
    [email protected] and ruby-1.9.2-p136 dir was only with rake gem. (is it ok?)

  • Fixed this with

    mv [email protected] ruby-1.9.2-p136

    So my questions are:

  • Why upgrade doesn't change current version if it even set to default and deleted?

  • Why gems after migration is stored in such a weird dir?

RVM installing

I have a problem with installing RVM on Snow Leopard: after
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )

I get:

ERROR: Cloning from http://github.com/wayneeseguin/rvm.git failed,
perhaps your git version does not support the http protocol?
Trying git:// protocol now.
bash: line 40: git: command not found

ERROR: Cloning from git://github.com/wayneeseguin/rvm.git failed, out of ideas... halting.

I tried:
mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone --depth 1 git://github.com/wayneeseguin/rvm.git && cd rvm && ./install

as well, with no results, I'm new to RVM I really like the concept and would appreciate any help.

Zsh completion should complete gemsets for "rvm use"

This is a feature request.

It would be awesome if I could type:

% rvm use 1.9.2@<tab>

and see my gemsets completed.

I've been messing with Zsh completions a bit, so I might take a whack at this.^UOkay, got it working. I'll make a fork/pull request for it.

rvm doesn't work in screen

OUTSIDE OF SCREEN

radek@dev:$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
radek@dev:
$ rvm ree
radek@dev:~$ ruby -v
ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.02

INSIDE OF SCREEN

radek@dev:$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
radek@dev:
$ rvm ree
radek@dev:$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
radek@dev:
$ rvm info

system:

system:
uname: "Linux dev 2.6.24-10-pve #1 SMP PREEMPT Tue Dec 29 10:16:15 CET 2009 i686 GNU/Linux"
bash: "/bin/bash => GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)"
zsh: " => not installed"

rvm:
version: "rvm 1.1.8 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]"

homes:
gem: "not set"
ruby: "not set"

binaries:
ruby: "/usr/bin/ruby"
irb: "/usr/bin/irb"
gem: "/usr/bin/gem"
rake: "/usr/bin/rake"

environment:
PATH: "/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/rvm/bin:/opt/rvm/bin"
GEM_HOME: ""
GEM_PATH: ""
MY_RUBY_HOME: ""
IRBRC: ""
RUBYOPT: ""
gemset: ""

radek@dev:$ set | grep -i screen
TERM=screen
TERMCAP=$'SC|screen|VT 100/ANSI X3.64 virtual terminal:\n\t:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\n\t:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\n\t:do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\n\t:li#53:co#207:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\n\t:cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\n\t:im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\n\t:ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\n\t:ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\n\t:se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\n\t:Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\n\t:vb=\Eg:G0:as=\E(0:ae=\E(B:\n\t:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\n\t:po=\E[5i:pf=\E[4i:k0=\E[10
:k1=\EOP:k2=\EOQ:k3=\EOR:\n\t:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\n\t:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\E[1;2P:\n\t:F4=\E[1;2Q:F5=\E[1;2R:F6=\E[1;2S:F7=\E[15;2~:\n\t:F8=\E[17;2~:F9=\E[18;2~:FA=\E[19;2~:kb=\177:K2=\EOE:\n\t:kB=\E[Z:kF=\E[1;2B:kR=\E[1;2A:_4=\E[3;2~:_7=\E[1;2F:\n\t:#2=\E[1;2H:#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:%e=\E[5;2~:\n\t:%i=\E[1;2C:kh=\E[1~:@1=\E[1~:kH=\E[4~:@7=\E[4~:\n\t:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:\n\t:kr=\EOC:kl=\EOD:km:'
radek@dev:~$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.