在编译期间通过RVM安装ruby 1.9.2-head失败('__rvm_make -j2')

时间:2014-05-31 16:02:58

标签: ruby crouton-os

背景 在Hp Chromebook 14上通过crouton运行ubuntu 14.04(xfce)。

概述: 我正在尝试通过rvm安装ruby 1.9.2。

RVM说1.9.2需要2.x并且安装没有问题。 跟随1.9.2后,它在编译和中止安装期间失败。 *我运行了安装命令x3,同样的错误

错误:

Error running '__rvm_make -j2',
showing last 15 lines of /home/alkarion/.rvm/log/1401550868_ruby-1.9.2-head/make.log
In file included from parse.y:22:0:
parse.h:188:21: warning: ‘struct parser_params’ declared inside parameter list [enabled by default]
 int yyparse (struct parser_params *parser);
                     ^
parse.h:188:21: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
parse.c: In function ‘ruby_yyparse’:
parse.c:4501:7: error: too few arguments to function ‘yylex’
     {
       ^
parse.y:325:12: note: declared here
 static int yylex(void*, void*);
            ^
make: *** [parse.o] Error 1
make: *** Waiting for unfinished jobs....
++ return 2
There has been an error while running make. Halting the installation.

以下是错误之前的代码:

$ rvm install ruby-1.9.2
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/alkarion/.rvm/rubies/ruby-1.9.2-head, this may take a while depending on your cpu(s)...
HEAD is now at d1b23d1 merge revision(s) 36533:
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 11 (delta 8), reused 11 (delta 8)
Unpacking objects: 100% (11/11), done.
From git://github.com/ruby/ruby
   06fb823..9529ed2  trunk      -> origin/trunk
From git://github.com/ruby/ruby
 * branch            ruby_1_9_2 -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
ruby-1.9.2-head - #applying patch /home/alkarion/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.2-head - #autoreconf.
ruby-1.9.2-head - #configuring..........................................
ruby-1.9.2-head - #post-configuration.
ruby-1.9.2-head - #compiling.............

1 个答案:

答案 0 :(得分:2)

ruby​​-1.9.2-p320似乎绕过了这个问题。

rvm install ruby-1.9.2-p320

我不确定问题是什么,但是能够在ubuntu 14.04上一周或两周前通过rvm成功安装ruby 1.9.2和ruby 2.0,但今天我收到的错误与你相同。另外,我注意到ruby 2.1是作为依赖而不是2.0安装的,因此可能是问题的一部分。

  • 约什