新手问题 there is something wrong with the install,please tell me how to fix it,thanks!

wzhang1987 · February 26, 2014 · Last by wzhang1987 replied at February 27, 2014 · 4271 hits

i read the wiki and follow it,then i use the rvm to install ruby 2.0.0

during the install it shows:

Error running '__rvm_patch -F 25 -p1 -N -f -i /home/good/.rvm/patches/ruby/libyaml015.patch', showing last 15 lines of /home/good/.rvm/log/1393429325_ruby-2.0.0-p451/patch.apply.libyaml015.log patching file ext/psych/yaml/scanner.c Hunk #1 FAILED at 615. Hunk #2 FAILED at 1103. Hunk #3 succeeded at 1181 with fuzz 2 (offset 5 lines). Hunk #4 FAILED at 1211. Hunk #5 succeeded at 1236 with fuzz 3 (offset 5 lines). Hunk #6 FAILED at 1264. Hunk #7 FAILED at 2584. 5 out of 7 hunks FAILED -- saving rejects to file ext/psych/yaml/scanner.c.rej patching file ext/psych/yaml/yaml_private.h Hunk #1 succeeded at 7 with fuzz 3. Hunk #2 succeeded at 453 with fuzz 2 (offset 21 lines). patching file ext/psych/yaml/config.h Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file ext/psych/yaml/config.h.rej

-------------------------------------then it may be ok,but i dont't know :--------------------------------

ruby-2.0.0-p451 - #applying patch /home/good/.rvm/patches/ruby/GH-488.patch. ruby-2.0.0-p451 - #configuring.................................................. ruby-2.0.0-p451 - #post-configuration. ruby-2.0.0-p451 - #compiling............................................................................ ruby-2.0.0-p451 - #installing............................. ruby-2.0.0-p451 - #making binaries executable. ruby-2.0.0-p451 - #downloading rubygems-2.2.2 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 404k 100 404k 0 0 51090 0 0:00:08 0:00:08 --:--:-- 69427 No checksum for downloaded archive, recording checksum in user configuration. ruby-2.0.0-p451 - #extracting rubygems-2.2.2. ruby-2.0.0-p451 - #removing old rubygems. ruby-2.0.0-p451 - #installing rubygems-2.2.2.............. ruby-2.0.0-p451 - #gemset created /home/good/.rvm/gems/ruby-2.0.0-p451@global ruby-2.0.0-p451 - #importing gemset /home/good/.rvm/gemsets/global.gems..... ruby-2.0.0-p451 - #generating global wrappers. ruby-2.0.0-p451 - #gemset created /home/good/.rvm/gems/ruby-2.0.0-p451 ruby-2.0.0-p451 - #importing gemsetfile /home/good/.rvm/gemsets/default.gems evaluated to empty gem list ruby-2.0.0-p451 - #generating default wrappers. ruby-2.0.0-p451 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). Install of ruby-2.0.0-p451 - #complete Please be aware that you just installed a ruby that requires 2 patches just to be compiled on an up to date linux system. This may have known and unaccounted for security vulnerabilities. Please consider upgrading to ruby-2.1.1 which will have all of the latest security patches. Ruby was built without documentation, to build it run: rvm docs generate-ri

-------------is that something wrong???

by the way,i don't want to use english,but i haven't chinese input method......

I don't have chinese input method ?

  1. which ruby to find out which ruby you're currently using
  2. ruby -v to confirm ruby 2.0 is installed

But personally I suggest to set up your development environment by Homebrew.

Ping me if it still doesn't work

#2 楼 @hozaka he's obviously using linux. no homebrew

#4 楼 @blacktulip 四级版:Apparently, he's using a Linux machine that doesn’t have homebrew installed.

#4 楼 @blacktulip Homebrew is being ported to Linux platform(s), check this out.

Further more, in most cases, there no need to manage variant Ruby versions in development environment. Production env. either.

#6 楼 @hozaka I know. But there is absolutely no reason to use homebrew in Linux

#2 楼 @hozaka

good@good-Rev-1-0:~$ ruby -v ruby 2.0.0p451 (2014-02-24 revision 45167) [i686-linux] good@good-Rev-1-0:~$ which good@good-Rev-1-0:~$ which ruby /home/good/.rvm/rubies/ruby-2.0.0-p451/bin/ruby

good ,thanks

You need to Sign in before reply, if you don't have an account, please Sign up first.