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
560
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
0
26
FigmaとPHPで作る1ミリたりとも表示崩れしない最強の帳票印刷ソリューション
ttskch
47
29k
データベース/SQL超入門!完全初心者向けに世界一分かりやすく解説します
ttskch
1
4.5k
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.3k
PHPでCSVのインポート/エクスポートに立ち向かう
ttskch
1
2.2k
Other Decks in Programming
See All in Programming
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
Laravel や Symfony で手っ取り早く OpenAPI のドキュメントを作成する
azuki
2
120
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
110
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.2k
Micro Frontends Unmasked Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
110
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
170
Duckdb-Wasmでローカルダッシュボードを作ってみた
nkforwork
0
130
Jakarta EE meets AI
ivargrimstad
0
670
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
1
300
距離関数を極める! / SESSIONS 2024
gam0022
0
290
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
20
1.1k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Agile that works and the tools we love
rasmusluckow
327
21k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
It's Worth the Effort
3n
183
27k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
For a Future-Friendly Web
brad_frost
175
9.4k
The Invisible Side of Design
smashingmag
298
50k
Building Applications with DynamoDB
mza
90
6.1k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
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!ʗ