2013-04-15 5 views
1

Я не совсем уверен, когда это произошло, но попытка запустить доморощенного на моей машине OSX Mountain Lion дает теперь странную ошибку:BORKED OSX Рубин Установка

/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)

Это было замечено после неудачной попытки установить RVM с помощью команды:

\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 pt, чтобы установить RVM, который урезал мою рубиновую установку по умолчанию, или если сам доморощенный был каким-то образом поврежден, но я хотел бы, если это возможно, получить внутреннюю рубину homebrew и osx.

Это может спуститься до терминала PATH или что-то еще, но я новичок в этом и понятия не имею, с чего начать.

+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, чтобы получить установлен РВМ правильно.

+0

Не помогло .. OS X Lion –

0

Try:

rvm get head && rvm reload 

обновить ваш РВМ установить

+0

эта команда появилась без ошибок, но доморощенный все еще выкидывает ошибку '' /usr/local/Library/Homebrew/formula_support.rb : 2: in 'require ': нет такого файла для загрузки - контрольные суммы (LoadError)' ' – mikegreiling

+0

try' 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

Не помогло. –

Смежные вопросы