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
540
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
FigmaとPHPで作る1ミリたりとも表示崩れしない最強の帳票印刷ソリューション
ttskch
47
27k
データベース/SQL超入門!完全初心者向けに世界一分かりやすく解説します
ttskch
1
4.2k
Symfony UX Autocompleteとかいう 顧客が本当に必要だったもの
ttskch
0
1.7k
就活生あるいは新人エンジニアさんへのお節介なアドバイス
ttskch
0
1.5k
symfony/pantherでWordleを解いてみた
ttskch
0
250
ついに、Webアプリでの帳票印刷のベストプラクティスを編み出しました💡
ttskch
16
19k
phpenvやめました🤦♂️
ttskch
0
1.2k
PHPでCSVのインポート/エクスポートに立ち向かう
ttskch
1
2.1k
1.5流エンジニアの生存戦略
ttskch
12
10k
Other Decks in Programming
See All in Programming
データフレームライブラリ徹底比較
daikikatsuragawa
2
100
Why I Choose NetBeans for Jakarta EE
ivargrimstad
0
140
Kotlin Multiplatform at Stable and Beyond (Kotlin Vienna, October 2024)
zsmb
2
360
Compose Multiplatform과 Ktor로 플랫폼의 경계를 넘어보자
kwakeuijin
0
270
Competitionsだけじゃない! Kaggle Notebooks Grandmasterのすすめ
corochann
1
340
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
0
180
Cancel Next.js Page Navigation: Full Throttle
ypresto
1
190
コードレビューと私の過去と未来
jxmtst
0
280
2024-10-01 dev2next - Observability for Modern JVM Applications
jonatan_ivanov
0
130
文化が生産性を作る
jimpei
3
570
AWS CDKを用いたセキュアなCI/CDパイプラインの構築 / Build a secure CI/CD pipeline using AWS CDK
seike460
PRO
3
610
CSC509 Lecture 02
javiergs
PRO
0
160
Featured
See All Featured
Practical Orchestrator
shlominoach
186
10k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
1
290
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Being A Developer After 40
akosma
84
590k
Making the Leap to Tech Lead
cromwellryan
131
8.8k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
43
6.5k
Building Better People: How to give real-time feedback that sticks.
wjessup
362
19k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
Speed Design
sergeychernyshev
22
490
Done Done
chrislema
181
16k
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!ʗ