2014-03-24 141 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發佈到要點併發布鏈接,那麼在上述修復程序不起作用的情況下,這可能會提供有用的信息。