2014-03-24 73 views
0

当试图安装'rvm install 1.9.2'时出现以下错误。安装rvm软件包时出错

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 
+0

什么操作系统?此外,将config.log文件发布到要点并将链接粘贴到您的问题中可能会有帮助(确保删除任何可能敏感的信息(主机名等))。 – kevindeleon

+0

我们使用的是Ubuntu 12.04。 – sangeethkumar

+0

你是否能够得到这个排序? – kevindeleon

回答

0

所有运行rvm requirements首先,看看如果你有安装在您需要的一切......如果没有安装它们,然后重试。另外,如果您可以将您的config.log发布到要点并发布链接,那么在上述修复程序不起作用的情况下,这可能会提供有用的信息。