2013-07-01 124 views
2

我試圖用rbenv安裝ruby 1.9.3-p429,如下所示; (在Ubuntu Linux 12.04)如何使用rbenv安裝ruby 1.9.3-p429?

% git clone https://github.com/sstephenson/rbenv.git /path/to/rbenv 
% ln -s /path/to/rbenv ~/.rbenv 
% cd ~/.rbenv 
% echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv 
% echo 'eval "$(rbenv init -)"' >> ~/.zshenv 
% exec $SHELL -l 
% git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build 

但是,紅寶石建造轉儲錯誤消息。

% rbenv install 1.9.3-p429 
Downloading yaml-0.1.4.tar.gz... 
-> http://dqw8nmjcqpjn7.cloudfront.net/36c852831d02cf90508c29852361d01b 
-> http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz 

BUILD FAILED 

Inspect or clean up the working tree at /tmp/ruby-build.20130701184855.7206 
Results logged to /tmp/ruby-build.20130701184855.7206.log 

Last 10 log lines: 


checksum mismatch: yaml-0.1.4.tar.gz (file is corrupt) 
expected 36c852831d02cf90508c29852361d01b, got 956baf72fd20659d7045498cc3954bf2 : -q 

curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume. 

checksum mismatch: yaml-0.1.4.tar.gz (file is corrupt) 
expected 36c852831d02cf90508c29852361d01b, got 956baf72fd20659d7045498cc3954bf2 : -q 

該怎麼辦?

+0

我已經試過了。但每次都無法下載。看起來校驗和不匹配發生在下載tarball上。 – dpp

回答

0

對不起,我在$ HOME/bin中創建了名爲'md5'的shellcript,所以導致了不正確的操作。

(請參閱〜/ .rbenv /插件/紅寶石構建/斌/紅寶石構建compute_md5())

這都是我的錯。

最後我成功'rbenv install 1.9.3-p429'。