Upgrade to Pro — share decks privately, control downloads, hide ads and more …

phpenv on Mac 難しすぎワロタ

phpenv on Mac 難しすぎワロタ

PHPカンファレンス2020 懇親会LTの発表資料です。
https://phpcon.connpass.com/event/193142/

Takashi Kanemoto

December 12, 2020
Tweet

More Decks by Takashi Kanemoto

Other Decks in Programming

Transcript

  1. /28 5 twitter.com/ ttskch ͋͞ɺ͋ͳͨ΋ࠓ͙͢ϑΥϩʔ͠Α͏ʂ 100% ͍ͯ͠Δ ͍ͯ͠ͳ͍ ϑΥϩϫʔ͞Μ100ਓʹฉ͖·ͨ͠ ͖ͨͭͪΛϑΥϩʔ͍ͯ͠Δʁ

    ͨ ͭ ͖ ͪ ׬શແྉʂ ·͞ʹ໊ݴ੡଄ػ ਓੜͰେ੾ͳ͜ͱ͸ 
 ͢΂͖͔ͯͨͭͪΒڭΘͬͨ ͖ͨͭͪΛϑΥϩʔͨ͠Β 
 ࠊ௧͕࣏ͬͯ൴ঁ΋Ͱ͖·ͨ͠ 100% φ ϯ τ!! ϑΥϩϫʔ ͔Βͷࢧ࣋཰
  2. /28 PKG_CONFIG_PATH="/usr/local/opt/krb5/lib/pkgconfig:/usr/local/ opt/openssl/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/ usr/local/opt/libedit/lib/pkgconfig:/usr/local/opt/libxml2/lib/ pkgconfig" \ PHP_BUILD_CONFIGURE_OPTS="--with-zlib-dir=/usr/local/opt/zlib -- with-bz2=/usr/local/opt/bzip2 --with-iconv=/usr/local/opt/

    libiconv --with-curl=/usr/local/opt/curl --with-libedit=/usr/ local/opt/libedit --with-jpeg-dir=/usr/local/opt/libjpeg --with- png-dir=/usr/local/opt/libpng" \ phpenv install 7.4.13 [Success]: Built 7.4.13 successfully. 8 ࠷ۙͷMacʹ͓͚Δݱ࣮ ࢀߟɿhttps://blog.ttskch.com/mac-phpenv-nodebrew/
  3. /28 • --without-tidy ͰϏϧυ͢Δ • ·ͨ͸ tidy-html5 ͷόʔδϣϯΛԼ͛Δ 24 7.0

    ͸͞Βʹ ࢀߟɿhttps://blog.ttskch.com/mac-phpenv-php-build-buf f i o-not-found-under-php70/ • HomebrewͰೖΕ͍ͯΔ tidy-html5 ͕৽͗͢͠Δ ݪҼ ରॲ๏