2013-04-15 95 views
1

我不能完全肯定,当它发生的,但在尝试我的OSX山狮机上运行自制软件现在产生一个奇怪的错误:Borked OSX Ruby安装

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- checksums (LoadError)

这是一次失败的尝试后,发现

\curl -L https://get.rvm.io | bash -s stable --ruby

% Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
100 184 100 184 0  0 136  0 0:00:01 0:00:01 --:--:-- 155 
100 13145 100 13145 0  0 6879  0 0:00:01 0:00:01 --:--:-- 6879 
Please read and follow further instructions. 
Press ENTER to continue. 
Downloading RVM from wayneeseguin branch stable 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
100 124 100 124 0  0 433  0 --:--:-- --:--:-- --:--:-- 551 
100 3263k 100 3263k 0  0 1245k  0 0:00:02 0:00:02 --:--:-- 1467k 

Installing RVM to /Users/mike/.rvm/ 
    Adding rvm PATH line to /Users/mike/.bashrc /Users/mike/.zshrc. 
    Adding rvm loading line to /Users/mike/.bash_profile /Users/mike/.zprofile. 

    * WARNING: You have RUBYOPT set in your current environment. 
    This may cause rubies to not work as you expect them to as it is not supported 
    by all of them If errors show up, please try unsetting RUBYOPT first. 


# RVM: Shell scripts enabling management of multiple ruby environments. 
# RTFM: https://rvm.io/ 
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net) 
# Cheatsheet: http://cheat.errtheblog.com/s/rvm 
# Screencast: http://screencasts.org/episodes/how-to-use-rvm 

# In case of any issues run 'rvm requirements' or read 'rvm notes' 

Installation of RVM in /Users/mike/.rvm/ is almost complete: 

    * To start using RVM you need to run `source /Users/mike/.rvm/scripts/rvm` 
    in all your open shell windows, in rare cases you need to reopen all shell windows. 

# Mike Greiling, 
# 
# Thank you for using RVM! 
# I sincerely hope that RVM helps to make your life easier and 
# more enjoyable!!! 
# 
# ~Wayne 


rvm 1.19.5 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] 

Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0. 
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. 
Installing requirements for osx, might require sudo password. 
Skipping `brew update` make sure your formulas are up to date. 
RVM autolibs is now configured with mode '2' => 'check and stop if missing', 
please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]` 
or visit https://rvm.io/rvm/autolibs for more information. 
Missing required packages: automake, libtool, pkg-config, libyaml, readline, libxml2, libxslt, libksba, openssl, sqlite. 
RVM autolibs is now configured with mode '2' => 'check and stop if missing', 
please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]` 
or visit https://rvm.io/rvm/autolibs for more information. 
There were package installation errors, make sure to read the log. 
Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation 

我不确定它是否是这样的失败attem:使用命令安装RVM pt安装RVM,它默认安装了ruby,或者如果homebrew本身以某种方式损坏,但是我想尽可能让自制软件和osx的本地ruby安装再次工作。

它可能会下降到终端路径设置或什么,但我是新来的,不知道从哪里开始。

+0

你说的* borked *是什么意思? – Shoe

+1

我的意思是不工作...抱歉的混乱。 http://www.urbandictionary.com/define.php?term=borked – mikegreiling

回答

1

我似乎已经解决了这一问题。这个问题似乎与自制本身有关。

我跑到下面的命令来修复:

$ cd /usr/local 
$ git fetch origin 
$ git reset --hard origin/master 

这项工作完成brew update的工作,因为它应该和我重新运行\curl -L https://get.rvm.io | bash -s stable --ruby得到正确安装RVM。

+0

没有帮助.. OS X Lion –

0

尝试:

rvm get head && rvm reload 

更新您的RVM安装

+0

该命令似乎运行没有错误,但自制软件仍然抛出错误“/usr/local/Library/Homebrew/formula_support.rb :2:在'require'中:没有这样的文件加载 - 校验和(LoadError)'' – mikegreiling

+0

尝试'rvm pkg install zlib' –

+0

我相信我已经找到了解决方案。非常感谢您的参与! – mikegreiling

1

你需要阅读的输出:

RVM autolibs is now configured with mode '2' => 'check and stop if missing', please run rvm autolibs enable to let RVM do its job or run and read rvm autolibs [help]

如果你是以下从rvm site installation instructions说明它会工作:

\curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby 
+0

也没有帮助。 –