2013-10-08 4 views
9

NINJA-IDE를 실행할 수 있고 사이트에서 제공되는 코드를 실행할 때마다 내 MacBook Pro에 homebrew를 설치하려고합니다. 나는 또한 철저하게 "다시 실행 sudo를 통해 루트로"아무 소용이, 그래서 난이 문제를 있으리라 믿고있어 내가 보는 지키는 NoMethodError에 놓여를 말한다 라인을 연구 한homebrew를 설치하려고 할 때 정의되지 않은 메소드`< '오류

Joshs-MacBook-Pro:~ joshua$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" 
==> This script will install: 
/usr/local/bin/brew 
/usr/local/Library/... 
/usr/local/share/man/man1/brew.1 
==> The following directories will be made group writable: 
/usr/local/share 
==> The following directories will have their group set to admin: 
/usr/local/share 

Press ENTER to continue or any other key to abort 
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/share 
Password: 
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/share 
==> Downloading and Installing Homebrew... 


Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. 


-e:84:in `git': undefined method `<' for nil:NilClass (NoMethodError) 
    from -e:153:in `block in <main>' 
    from -e:152:in `chdir' 
    from -e:152:in `<main>' 
Joshs-MacBook-Pro:~ joshua$ 

:이 얻을 . 이것에 대한 도움은 매우 감사하겠습니다!

답변

24

앱 스토어를 통해 Xcode를 아직 설치하지 않은 경우 설치하십시오. 그런 다음이를 실행하고 GUI를 통해 라이센스를 수락하십시오. 이제 Homebrew 설치 스크립트를 다시 실행하십시오. 이 문제가 해결되었습니다.

+1

내 문제가 해결되었습니다. 고맙습니다. –

3

방금 ​​Xcode를 새로 설치하고 개봉하지 않았습니다. 자작품 스크립트로 작업하기 전에 라이센스에 동의해야합니다. Xcode를 자체적으로 실행하고 문제를 해결할 수있는 라이센스에 동의하십시오.

+0

다음 명령 행을 실행하여 터미널에서이 작업을 수행 할 수도 있습니다. 'sudo xcrun cc' – Etienne

+0

@Etienne Neat! Thanks! – Nariman

관련 문제