5
5

More than 5 years have passed since last update.

berkshelf のインストール

Posted at

Chef のRepositoryからrecipeを撮ってくる場合、
そのrecipeの依存関係等があるので、結局、
依存関係の管理が必要になってくる。
それを、gem や、apt の様に良い感じに、解決してくれるのが、
berkshelf というものらしい。

Berkshelf で Chef Cookbook の管理

このページを参考にさせていただいて、インストールしようとしたのだが、NativeのコンパイルでError

% sudo gem install berkshelf                         [~/Development/connect/ChefRepoSoftetherServer]
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing berkshelf:
ERROR: Failed to build gem native extension.
...
linking shared-object hitimes/2.0/hitimes.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]

どうやら、Xcode 5.1のバージョンアップに対応していないらしい。

【Mac】clang によるビルドエラー【Xcode 5.1】

上記ページを参考にして、

% sudo -s
# ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install berkshelf

として、コンパイルオプションをつければ、インストールできる。

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5