Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
phpenv on Mac 難しすぎワロタ
Search
Takashi Kanemoto
December 12, 2020
Programming
0
570
phpenv on Mac 難しすぎワロタ
PHPカンファレンス2020 懇親会LTの発表資料です。
https://phpcon.connpass.com/event/193142/
Takashi Kanemoto
December 12, 2020
Tweet
Share
More Decks by Takashi Kanemoto
See All by Takashi Kanemoto
今年書いた技術記事で伸びたやつの自慢と自分の中では力作なのにさっぱり伸びなかったやつの供養 / My Tech Articles 2024
ttskch
2
69
FigmaとPHPで作る1ミリたりとも表示崩れしない最強の帳票印刷ソリューション
ttskch
47
31k
データベース/SQL超入門!完全初心者向けに世界一分かりやすく解説します
ttskch
1
4.7k
Symfony UX Autocompleteとかいう 顧客が本当に必要だったもの
ttskch
0
1.8k
就活生あるいは新人エンジニアさんへのお節介なアドバイス
ttskch
0
1.5k
symfony/pantherでWordleを解いてみた
ttskch
0
270
ついに、Webアプリでの帳票印刷のベストプラクティスを編み出しました💡
ttskch
16
19k
phpenvやめました🤦♂️
ttskch
0
1.4k
PHPでCSVのインポート/エクスポートに立ち向かう
ttskch
1
2.2k
Other Decks in Programming
See All in Programming
モバイルアプリにおける自動テストの導入戦略
ostk0069
0
110
フロントエンドのディレクトリ構成どうしてる? Feature-Sliced Design 導入体験談
osakatechlab
8
4.1k
RWC 2024 DICOM & ISO/IEC 2022
m_seki
0
200
テストコード文化を0から作り、変化し続けた組織
kazatohiei
2
1.5k
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
440
ソフトウェアの振る舞いに着目し 複雑な要件の開発に立ち向かう
rickyban
0
890
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
120
Full stack testing :: basic to basic
up1
1
930
testcontainers のススメ
sgash708
1
120
layerx_20241129.pdf
kyoheig3
2
290
数十万行のプロジェクトを Scala 2から3に完全移行した
xuwei_k
0
260
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
110
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
Navigating Team Friction
lara
183
15k
Six Lessons from altMBA
skipperchong
27
3.5k
Faster Mobile Websites
deanohume
305
30k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
0
94
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.2k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Automating Front-end Workflow
addyosmani
1366
200k
Writing Fast Ruby
sferik
628
61k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Transcript
/28 2020/12/12 #phpcon #࠙ձLT @ttskch 1 phpenv on Mac ͗͢͠ϫϩλ
/28 2 • ʙ2020/03 (ג)ΧϧςοτίϛϡχέʔγϣϯζCTO blog.ttskch.com/thank-you-quartet-communications • 2020/04ʙ
ϑϦʔϥϯεWebΤϯδχΞ https://kannade.jp ͖ͨͭͪʢ໊͋ͩʣ
/28 3 ͖ͨͭͪʢ໊͋ͩʣ • ϦεςΟϯάࠂͷձࣾͰWebαʔϏεΛ࡞ͬͯ·ͨ͠ • CTOͱͯ͠ࡏ੶ͨ͠8ؒͰɺࣾһ2໊ˠ60໊ɺ ച্ن5000ສԁˠ27ԯԁʹ·Ͱ
/28 4 • ͓ख͍ͨ͠ຊʢ2015/12ʣ • Schooߨࢣʢ2018/04ʣ ͖ͨͭͪʢ໊͋ͩʣ ʮGitHubΛͬͨσϓϩΠࣗಈԽ࣮ફʯ ʮجຊ͔Β͔ͬ͠ΓֶͿ Symfony2ೖʯ
/28 5 twitter.com/ ttskch ͋͞ɺ͋ͳͨࠓ͙͢ϑΥϩʔ͠Α͏ʂ 100% ͍ͯ͠Δ ͍ͯ͠ͳ͍ ϑΥϩϫʔ͞Μ100ਓʹฉ͖·ͨ͠ ͖ͨͭͪΛϑΥϩʔ͍ͯ͠Δʁ
ͨ ͭ ͖ ͪ શແྉʂ ·͞ʹ໊ݴػ ਓੜͰେͳ͜ͱ ͖͔ͯͨͭͪ͢ΒڭΘͬͨ ͖ͨͭͪΛϑΥϩʔͨ͠Β ࠊ௧͕࣏ͬͯ൴ঁͰ͖·ͨ͠ 100% φ ϯ τ!! ϑΥϩϫʔ ͔Βͷࢧ࣋
/28 2020/12/12 #phpcon #࠙ձLT @ttskch 6 phpenv on Mac ͗͢͠ϫϩλ
/28 phpenv install 7.4.13 [Success]: Built 7.4.13 successfully. 7 phpenvͱ
/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/
/28 9 Ͱ·͋͑ͯΔ͓̺͠ʂ
/28 10 ͦΜͳ͋Δ
/28 11
/28 12 Mac ಥવͷ͓͘ͳΓ
/28 13 ͔ΒͷBig Sur࠶Πϯετʔϧ
/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.0.33 ----------------- | BUILD ERROR | ----------------- 14 ݁Ռ
/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.1.33 ----------------- | BUILD ERROR | ----------------- 15 ݁Ռ
/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.2.34 ----------------- | BUILD ERROR | ----------------- 16 ݁Ռ
/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 8.0.0 ----------------- | BUILD ERROR | ----------------- 17 ݁Ռ
/28 18 7.0, 7.1, 7.2, 8.0 ͕Τϥʔ
/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.3.25 [Success]: Built 7.3.25 successfully. 19 ݁Ռ
/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. 20 ݁Ռ
/28 21 7.3, 7.4 ͳΜ͔ແࣄ
/28 22 ௐ·ͨ͠
/28 • Xcode 11.7ҎԼΛμϯϩʔυͯ͠ɺͦͷதͷSDKΛ͏Α͏ʹ͢Δ 23 ·ͣ 7.1, 7.2 ࢀߟɿhttps://blog.ttskch.com/mac-catalina-big-sur-phpenv-php-build-error-under-php72/ •
Xcode͕৽͗͢͠Δ ݪҼ ରॲ๏
/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 ͕৽͗͢͠Δ ݪҼ ରॲ๏
/28 • ͢Έ·ͤΜɺΑ͔͘Γ·ͤΜ • --with-external-gd=/usr/local/opt/gd ͰϏϧυ͢Δ ʢHomebrewͰೖΕͨgdΛ͏Α͏ʹ໌ࣔʣ 25 8.0
ࢀߟɿhttps://blog.ttskch.com/mac-phpenv-php-build-php80/ ݪҼ ରॲ๏
/28 26 ݁ɿΊͱ͚
/28 27 ௐͨ͜ͱશ෦ϒϩάʹ·ͱΊ·ͯ͋Γ·͢ blog.ttskch.com/mac-phpenv-php-build ࠷ۙͷMacͰ5.6ʙ8.0·ͰΠϯετʔϧͰ͖ΔΑ͏ʹͳΓ·͢
/28 28 @ttskch ʘThanks!ʗ