CHEF 설치에 있어 보통 apt-get을 이용하여 편리하게 설치할 수 있지만 (ubuntu일 경우), 기능 수정을 위해서는 소스를 이용하여 설치할 수도 있습니다.
우선 git을 통하여 소스를 다운로드 받아야 하는데, 이를 위하여 git부터 설치를 해야 합니다.
# apt-get install git Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: git-man liberror-perl Suggested packages: git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-gui gitk gitweb The following NEW packages will be installed: git git-man liberror-perl 0 upgraded, 3 newly installed, 0 to remove and 51 not upgraded. Need to get 6,741 kB of archives. After this operation, 15.2 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://kr.archive.ubuntu.com/ubuntu/ precise/main liberror-perl all 0.17-1 [23.8 kB] Get:2 http://kr.archive.ubuntu.com/ubuntu/ precise/main git-man all 1:1.7.9.5-1 [630 kB] Get:3 http://kr.archive.ubuntu.com/ubuntu/ precise/main git amd64 1:1.7.9.5-1 [6,087 kB] Fetched 6,741 kB in 1s (5,123 kB/s) Selecting previously unselected package liberror-perl. (Reading database ... 49099 files and directories currently installed.) Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ... Selecting previously unselected package git-man. Unpacking git-man (from .../git-man_1%3a1.7.9.5-1_all.deb) ... Selecting previously unselected package git. Unpacking git (from .../git_1%3a1.7.9.5-1_amd64.deb) ... Processing triggers for man-db ... Setting up liberror-perl (0.17-1) ... Setting up git-man (1:1.7.9.5-1) ... Setting up git (1:1.7.9.5-1) ...
그리고 이제 CHEF 소스를 다운로드 받습니다.
# git clone https://github.com/opscode/chef.git Cloning into 'chef'... remote: Reusing existing pack: 89314, done. remote: Counting objects: 280, done. remote: Compressing objects: 100% (272/272), done. remote: Total 89594 (delta 135), reused 1 (delta 0) Receiving objects: 100% (89594/89594), 70.12 MiB | 2.17 MiB/s, done. Resolving deltas: 100% (60674/60674), done.
chef 디렉토리로 들어가서 설치를 하려고 합니다.
# bundle install The program 'bundle' is currently not installed. You can install it by typing: apt-get install ruby-bundler
뭔가 더 해야 하는군요. ruby-bundler를 설치합니다.
# apt-get install ruby-bundler Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ruby-bundler 0 upgraded, 1 newly installed, 0 to remove and 122 not upgraded. Need to get 0 B/102 kB of archives. After this operation, 664 kB of additional disk space will be used. Selecting previously unselected package ruby-bundler. (Reading database ... 50480 files and directories currently installed.) Unpacking ruby-bundler (from .../ruby-bundler_1.0.15-0ubuntu2_all.deb) ... Setting up ruby-bundler (1.0.15-0ubuntu2) ...
일단 여기까지 하고 다음에 또 계속해 보겠습니다.