LoginSignup
1
1

More than 5 years have passed since last update.

macOS SierraでPassengerのApacheモジュールを簡単にビルドする方法

Posted at

方法

shell
brew install apr apr-util
APU_CONFIG=$(brew --prefix apr-util)/bin/apu-1-config \
passenger-install-apache2-module --auto --apr-config-path $(brew --prefix apr)/bin/apr-1-config
  • 要は環境変数の APR_CONFIG と APU_CONFIG に apr-1-config と apu-1-config へのフルパスを指定しておけばよいようです
  • passenger-install-apache2-module には APR_CONFIG を設定する --apr-config-path オプションがあるのでこれを使います
  • 一方、APU_CONFIG を設定する --apu-config-path オプションはないので自分で指定します

懸念点

ビルド後、次のようなエラーメッセージが出ますが、ほっといても問題ありませんでした。

/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!.

参考

1
1
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
1
1