rvm / rvm Goto Github PK
View Code? Open in Web Editor NEWRuby enVironment Manager (RVM)
Home Page: https://rvm.io
License: Other
Ruby enVironment Manager (RVM)
Home Page: https://rvm.io
License: Other
"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
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
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
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.
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
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.
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'
I got this on a clean install of RVM 1.1.11 on OS X 10.6.5, and it is perfectly repeatable.
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.
In gnome-terminal 2.32.0 (the version in Ubuntu 10.10), reproduce this by:
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).
bobby:# rvm gemset copy ree@default ree@rails3# rvm ree@rails3
info: Copying gemset from ree@default to ree@rails3
info: Making gemset for ree@rails3 pristine.
bobby:
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
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.
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
$ 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.
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
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.
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
As per title. I ran dos2unix on each file in the scripts directory and then I was able to install rvm. Next step: install 1.8.7. This failed, and I think it's for the same reason (some other file polluted with ^Ms).
rvm rvmrc trust work/captico/promoohno/
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
(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
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 remove don't delete environments and binaries at system wide.
install reference by http://rvm.beginrescueend.com/deployment/system-wide/
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
When installing rvm in /usr/local/rvm it is adding a duplicate item to the PATH variable /usr/local//bin
(notice the double slashes).
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
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.
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'
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
if you do RVM.gemset_use! 'XYZ' inside setup_load_paths.rb and specify a non-existant gemset, then it behaves under passenger like a fork bomb. apache is forking itself indefinitely
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 --defaultand 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
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?
as discussed in irc. (trying to) attaching a patch.
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
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
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.
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
OUTSIDE OF SCREEN
radek@dev:$ ruby -v$ rvm ree
ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
radek@dev:
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$ rvm ree
ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
radek@dev:
radek@dev:$ ruby -v$ rvm info
ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
radek@dev:
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: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:'
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
radek@dev:~$
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 ??
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
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
disconnect your net connection and install a new version of ruby, it fails but tells you it succeeded.
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.^U
Okay, got it working. I'll make a fork/pull request for it.
$ 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:in
activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:68:in `gem'
from /usr/local/bin/rvm-install:18
While:
$rvm-install
get error:
bash: ./install no such file or directory.
Is it possible to add rubinius in the interpreters list ?
rvm install 1.9.1
installs ruby-1.9.1-p378 (note the last digit), but
rvm list known
shows
[ruby-]1.9.1[-p376]
This isn't earthshaking, but it'd be nice to have "rvm list known" show the correct version.
Thanks!
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
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.
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).
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.
~/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".
The version number on the nightly builds is now 0.9 but RVM still thinks it is 0.8. As a result, rvm can never find MacRuby because it is looking for the wrong version.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.