安装rvm软件包时出错

时间:2014-03-24 10:28:51

标签: ruby-on-rails ruby rvm

当我尝试安装' rvm install 1.9.2'我收到以下错误。

 ruby-1.9.2-p320 - #removing src/ruby-1.9.2-p320..
 Searching for binary rubies, this might take some time.
 No binary rubies available for: ubuntu/12.04/i386/ruby-1.9.2-p320.
 It is not possible to build movable binaries for rubies 1.8-1.9.2, but you can do it        for your system only.
 Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
 Checking requirements for ubuntu.
 Requirements installation successful.
 Installing Ruby from source to: /home/lister/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)...
 ruby-1.9.2-p320 - #downloading ruby-1.9.2-p320, this may take a while depending on your connection...
 ruby-1.9.2-p320 - #extracting ruby-1.9.2-p320 to /home/lister/.rvm/src/ruby-1.9.2-p320...
 ruby-1.9.2-p320 - #applying patch /home/lister/.rvm/patches/ruby/GH-488.patch.
 ruby-1.9.2-p320 - #configuring.....................
 Error running './configure --prefix=/home/lister/.rvm/rubies/ruby-1.9.2-p320 --disable-  install-doc --enable-shared',
 showing last 15 lines of /home/lister/.rvm/log/1395656752_ruby-1.9.2-p320/configure.log
 checking locale.h presence... yes
 checking for locale.h... yes
 checking sys/sendfile.h usability... yes
 checking sys/sendfile.h presence... yes
 checking for sys/sendfile.h... yes
 checking time.h usability... yes
 checking time.h presence... yes
 checking for time.h... yes
 checking for net/socket.h... (cached) no
 checking for sys/socket.h... (cached) yes
 checking size of rlim_t... 0
 checking for size_t... yes
 checking size of size_t... configure: error: in `/home/lister/.rvm/src/ruby-1.9.2-  p320':
 **configure: error: cannot compute sizeof (size_t)**
 See `config.log' for more details

1 个答案:

答案 0 :(得分:0)

首先运行rvm requirements并查看是否已安装所需的所有内容......如果没有,请安装它们然后重试。

此外,如果您可以将您的config.log发布到要点并发布链接,那么在上述修复无效的情况下,这可能会提供有用的信息。