컴퓨터 안에 있는 gem파일을 설치할 수 있나요?

조회수 1722회

제 컴퓨터에 .gem파일을 다운로드 받았는데 이걸 나중에 gem install로 설치할 수 있나요?

1 답변

  • 좋아요

    0

    싫어요
    채택 취소하기

    네 가능합니다.

    gem install은 제일 먼저 현재 디렉토리에서 파일을 찾습니다. gem reference를 보면

    gem install will install the named gem. It will attempt a local installation (i.e. a .gem file in the current directory), and if that fails, it will attempt to download and install the most recent version of the gem you want.

    gem install은 local install을 먼저 시도하고, 실패할 경우 최신버전 다운로드를 시도합니다.

    그리고 .gem이 다른 디렉토리에 있는 경우라도

    gem install --local 경로/filename.gem
    

    로 설치할 수 있습니다.

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)