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
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
1.5流エンジニアの生存戦略
ttskch
12
10k
Other Decks in Programming
See All in Programming
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
1.8k
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
【Kaigi on Rails 2024】YOUTRUST スポンサーLT
krpk1900
1
330
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.4k
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
290
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
330
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
1k
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
580
C++でシェーダを書く
fadis
6
4.1k
役立つログに取り組もう
irof
28
9.6k
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
40
2.4k
Teambox: Starting and Learning
jrom
133
8.8k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
Code Review Best Practice
trishagee
64
17k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
RailsConf 2023
tenderlove
29
900
Thoughts on Productivity
jonyablonski
67
4.3k
Designing for Performance
lara
604
68k
How STYLIGHT went responsive
nonsquared
95
5.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
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!ʗ