LoginSignup
0
1

More than 3 years have passed since last update.

またPHPビルドしてる

Posted at

MacでPHPをビルドできなくて困ったのでまたメモをとる

基本的に

この辺がいる。
特にconfiigureオプションとか入れないといけないものを書く。

  • oniguruma
  • curl
  • openssl
  • libxml
  • pkg-config
  • zlib
  • libiconv
  • php

openssl

configureしてmake installするのだが

./Configure --prefix=$HOME shared darwin64-x86_64-cc

と書く。

libxml2

普通にconfigureしてmake installする。
僕はインストール時にシステム領域に入れたくないので、prefix=$HOMEとしているが、それをするとシステム領域にあるPythonに書きに行くので死ぬ。
行儀は悪いが、

sudo chown -R sato /Library/Python/

とした

pkg-config

こんなかんじでconfigureする。

env LDFLAGS="-framework CoreFoundation -framework Carbon" ./configure --with-internal-glib --prefix=$HOME

PHP

本丸。こんな感じ。

./configure --prefix=$HOME --with-curl --with-zlib --with-openssl --with-iconv=$HOME --without-mysqli --without-sqlite3 --without-pdo-sqlite --enable-mbstring --enable-cli --enable-fpm
0
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
0
1