IT이야기/Gradle

Homebrew를 이용한 손쉬운 Gradle 설치(HomeBrew 설치, 그래들 설치)

FelixShin 2015. 8. 10. 01:37
반응형


Homebrew는 패키지 관리자툴이다. 

- Unix 기반으로 만들어진 OS X에 기본으로 설치되지 않은 Unix 명령어 패키지를 쉽게 설치할 수 있게 해주는 패키지 관리툴로 맥에서 유용한 패키지 관리 툴이다.

- Homebrew를 이용하여 Apple이 제공하지 않는 패키지 관리자를 설치할 수 있다  





1. Gradle 최신버전 다운로드

: gradle.org/downloads


2. homebrew 다운로드 및 설치

: 쉬운 그래들 설치를 위해,,, terminal이 덜 익숙해서 사용..

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

터미널에서 위와 같이 입력 후 엔터 누른후 PC 비번 치면 설치 완료료


3. homebrew를 이용하여 gradle 설치

터미널에서 : brew install gradle 





4. 버전 확인 

터미널서 : gradle -version


실행 예 below


=============================================


UserID-minui-MacBook-Pro:gradle-2.5 Felix$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

==> 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/.

==> The following directories will have their group set to admin:

/usr/local/.


Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/.

Password:

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/.

==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew

==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew

==> Downloading and installing Homebrew...

remote: Counting objects: 3691, done.

remote: Compressing objects: 100% (3524/3524), done.

remote: Total 3691 (delta 37), reused 508 (delta 26), pack-reused 0

Receiving objects: 100% (3691/3691), 3.03 MiB | 358.00 KiB/s, done.

Resolving deltas: 100% (37/37), done.

From https://github.com/Homebrew/homebrew

 * [new branch]      master     -> origin/master

HEAD is now at 4a9e815 caddy: update 0.7.5 bottle.

==> Installation successful!

==> Next steps

Run `brew help` to get started

UserID-minui-MacBook-Pro:gradle-2.5 Felix$ brew install gradle

==> Downloading https://downloads.gradle.org/distributions/gradle-2.5-bin.zip

######################################################################## 100.0%

🍺  /usr/local/Cellar/gradle/2.5: 163 files, 47M, built in 66 seconds

UserID-minui-MacBook-Pro:gradle-2.5 Felix$ gradle -version


------------------------------------------------------------

Gradle 2.5

------------------------------------------------------------


Build time:   2015-07-08 07:38:37 UTC

Build number: none

Revision:     093765bccd3ee722ed5310583e5ed140688a8c2b


Groovy:       2.3.10

Ant:          Apache Ant(TM) version 1.9.3 compiled on December 23 2013

JVM:          1.8.0_51 (Oracle Corporation 25.51-b03)

OS:           Mac OS X 10.10.4 x86_64


==================================================================


# 참고 :


Homebrew 주소 : http://brew.sh/

Homebrew 한국어 주소 : http://brew.sh/index_ko.html



'IT이야기 > Gradle' 카테고리의 다른 글

[Googld Udacity 강의] Gradle for Android and JAVA  (0) 2015.08.16