2014-10-22 13 views
14

Dopo installato Homebrew, quando corro alcun brew ***, continuo a ricevere questo errore:Homebrew su Mac OS 10.10 o 10.11 non funziona

Homebrew requires Leopard or higher. For Tiger support, see: 
https://github.com/mistydemeo/tigerbrew 

mio Env: Mac OS 10.10 (Yosemite)

I controllò la fonte brew.rb, ha:

if MACOS and MACOS_VERSION < 10.5 
    abort <<-EOABORT.undent 
    Homebrew requires Leopard or higher. For Tiger support, see: 
    http://github.com/sceaga/homebrew/tree/tiger 
    EOABORT 
end 

non ho idea del perché il Yosemite attiverà questo controllo versione.

+4

Perché 10.1 <10.5 –

risposta

42

Modificare il file brew.rb per ottenere questo:

# 10.10 stands for Mac OS Yosemite 
# 10.11 stands for Mac OS El Capitan 
if MACOS and MACOS_VERSION < 10.5 and MACOS_VERSION != 10.1 and MACOS_VERSION != 10.11 
    abort <<-EOABORT.undent 
    Homebrew requires Leopard or higher. For Tiger support, see: 
    http://github.com/sceaga/homebrew/tree/tiger 
    EOABORT 
end 

Sarà quindi installare bene.

Questo perché 10.10 è lo stesso di quello che è al di sotto 10.110.5

+1

Dove si trova brew.rb? – Tone

+1

@Tono il file è qui: '/ usr/local/Library/brew.rb' –

+0

Grazie a @Thomas ho guardato sembra che non sia stato impostato correttamente e reinstallato homebrew. – Tone

4

Sopra il cambiamento non ha funzionato per me .. ha dato l'errore Errore : Mac OS X 10.1' `non è valido

ho dovuto cambiare il brew.rb a:

if MACOS_VERSION == 10.10 
     MACOS_VERSION = 10.99 
end 

prima

if MACOS and MACOS_VERSION < 10.5 
Problemi correlati