Skip to content

Activator installation #

Find similar titles

2회 업데이트 됨.

Edit
  • 최초 작성자
    yang4851
  • 최근 업데이트
    JehongLee

Structured data

Category
Programming

ActivatorScala 기반의 프로젝트를 생성할 때 유용하게 사용할 수 있는 Scala용 빌드 도구이다. 자바(Java)언어의 경우 경우 Maven 이란 빌드 도구를 이용해 의존성 관리 및 일관된 프로젝트 구성을 할 수가 있다. ActivatorMaven과 유사한 프로그램이라고 생각하면 된다.

ActivatorScala를 위한 빌드 툴이기 때문에 Scala 공식 홈페이지(http://www.scala-lang.org)에서 다운로드 받을 수 있으며, 설치된 Scala 버전에 맞는 Activator를 다운받아 설치하면 된다.

Windows 7 운영체제에 Scala 2.10.5 가 설치되었다는 가정하에 Activator 설치 방법을 알아보도록 하겠다.

Scala 공식 홈페이지의 다운로드 페이지에서 해당 Activator를 다운로드 받는다. 다운로드 주소는 다음과 같다. (http://www.scala-lang.org/download/2.10.5.html)

Activator download

다운로드 받은 Activator 설치 파일은 압축파일로 제공되며, 압축을 해제한 후 폴더를 원하는 경로에 붙혀 넣기만 하면 설치가 끝난다. 압축을 풀게 되면 다음과 같은 구조로 되어 있으며, 윈도우나 유닉스 계역 OS에서 실행할 수 있는 .bat 이나 .sh 파일을 확인할 수 있다.

Activator 폴더 구조

설치가 완료되면 Activator 실행을 위해 시스템 환경 설정을 해야 한다. 운영체제가 Windows 인 경우는 "제어판 > 시스템 및 보안 > 시스템 > 고급 시스셈 설정" 을 선택해 "시스템 속성" 창의 "고급" 탭에 있는 "환경 변수"를 클릭해 작업을 진행하면 된다. Unix 계열의 운영체제의 경우는 .bashrc 파일이나 .profiled 파일에 변수를 추가하면 된다.

시스템 환경 변수 설정

환경 변수 창의 시스템 변수 영역의 "새로 만들기" 버튼을 클릭해 Activator 설치 디렉토리를 시스템 변수에 추가한다. 변수 이름을 ACTIVATOR_HOME 으로 하고 변수 값은 Activator가 설치된 폴더 전체경로를 입력한다.

Activator 시스템 환경 변수 추가

환경 변수 추가가 완료되면 "Path"설정에 Activator 실행 파일 폴더를 추가한다.

시스템 환경 변수 추가

환경 변수 설정이 완료되면 콘솔 창을 열어 설치가 제대로 되었는지 다음과 같이 확인한다.

C:\>activator
Did not detect an activator project in this directory.
- activator
Load an existing project (has to be executed from the project directory) or print this help message if no project is found

Sub-commands
- activator ui
Open the project in the UI if executed from an existing project directory, otherwise open a project-creation UI.

- activator new [project-name] [template-name]
Create a new project, prompting for project-name if missing and helping you find a template if template-name is not provided.

- activator list-templates
Fetch the latest template list and print it to the console.

윈도우의 경우 간혹 시스템 텍스트 에디트 도구가 시스템 경로 설정이 되지 않아 Activator가 실행되지 않을 때가 있다. 그런 경우 시스템 환경설정의 시스템 경로(Path)에 "C:\WINDOWS\system32" 를 추가하면 문제가 해결된다.

시스템 환경 변수 변경

Suggested Pages #

0.0.1_20230725_7_v68