ブログ - 2008 13inch 2カテゴリのエントリ
1年,メールサーバ専用機として稼働してもらったけれど,その地位はmac mini 2010に譲って引退.
ネットワークから外し,しばらく放置していたら,なんだか熱い.電源を入れてみようと思ったら電源が入らない!
流石に購入して13年くらいになるので壊れたかな?と思ったら,バッテリ不良でした.

容量が194mAhだなんて.新しくバッテリを買いますかね.
1号機も今年の初めに交換していますね.前回この2号機のバッテリを変えたのはいつだったか...
ちなみに,うちの行政だと,パソコンのバッテリはリチウムイオンなのでモバイルバッテリと同じ捨て方で回収してくれました.
ネットワークから外し,しばらく放置していたら,なんだか熱い.電源を入れてみようと思ったら電源が入らない!
流石に購入して13年くらいになるので壊れたかな?と思ったら,バッテリ不良でした.

容量が194mAhだなんて.新しくバッテリを買いますかね.
1号機も今年の初めに交換していますね.前回この2号機のバッテリを変えたのはいつだったか...
ちなみに,うちの行政だと,パソコンのバッテリはリチウムイオンなのでモバイルバッテリと同じ捨て方で回収してくれました.
Brew Updateでosが古いからコンパイルに失敗し始めたし,このサーバでは不要なので削除した.
あっけないな.
$ brew uninstall openjdk@8🆑
Uninstalling /usr/local/Cellar/openjdk@8/1.8.0+275... (742 files, 191.9MB)
[venus:server 02:05:36 ~ ]
$ brew uninstall jenkins🆑
Uninstalling /usr/local/Cellar/jenkins/2.249... (7 files, 67.3MB)
[venus:server 02:12:59 ~ ]
$ brew uninstall openjdk@11🆑
Uninstalling /usr/local/Cellar/openjdk@11/11.0.8... (650 files, 295.8MB)
[venus:server 02:13:12 ~ ]
$
smartmontoolsをインストールして診断してみた.
稼働時間が5465時間となっているけれどMacBook 2008 LateにHigh Sierraを入れてみたのが590日前だからか,そんなもんかな.
Media_Wearout_Indicatorが気になる.初期は100から使っていくと減ってきて0になったら終わり,らしいのだけどこの数値はさっぱりわからん.
それよりも,Total_Bad_Blocksが251となっているが,この数値を追いかけたほうがいいのかなぁ...
[venus:server 16:32:39 ~ ]
$ smartctl -a /dev/disk0s3🆑
smartctl 7.2 2020-12-30 r5155 [Darwin 17.7.0 x86_64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: WD Blue / Red / Green SSDs
Device Model: WDC WDS500G2B0A-00SM50
Serial Number: 1920338xxxxx
LU WWN Device Id: 5 001b44 8b857a1d9
Firmware Version: 401000WD
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
TRIM Command: Available, deterministic, zeroed
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is: SATA 3.3, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Mar 2 16:32:52 2021 JST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 0) seconds.
Offline data collection
capabilities: (0x11) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 10) minutes.
SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0032 100 100 --- Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 --- Old_age Always - 5465🈁
12 Power_Cycle_Count 0x0032 100 100 --- Old_age Always - 2434
165 Block_Erase_Count 0x0032 100 100 --- Old_age Always - 70714123
166 Minimum_PE_Cycles_TLC 0x0032 100 100 --- Old_age Always - 1
167 Max_Bad_Blocks_per_Die 0x0032 100 100 --- Old_age Always - 24
168 Maximum_PE_Cycles_TLC 0x0032 100 100 --- Old_age Always - 41
169 Total_Bad_Blocks 0x0032 100 100 --- Old_age Always - 251
170 Grown_Bad_Blocks 0x0032 100 100 --- Old_age Always - 0
171 Program_Fail_Count 0x0032 100 100 --- Old_age Always - 0
172 Erase_Fail_Count 0x0032 100 100 --- Old_age Always - 0
173 Average_PE_Cycles_TLC 0x0032 100 100 --- Old_age Always - 9
174 Unexpected_Power_Loss 0x0032 100 100 --- Old_age Always - 8
184 End-to-End_Error 0x0032 100 100 --- Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 --- Old_age Always - 0
188 Command_Timeout 0x0032 100 100 --- Old_age Always - 0
194 Temperature_Celsius 0x0022 067 045 --- Old_age Always - 33 (Min/Max 18/45)
199 UDMA_CRC_Error_Count 0x0032 100 100 --- Old_age Always - 0
230 Media_Wearout_Indicator 0x0032 001 001 --- Old_age Always - 0x0137005a0137🈁
232 Available_Reservd_Space 0x0033 100 100 004 Pre-fail Always - 100
233 NAND_GB_Written_TLC 0x0032 100 100 --- Old_age Always - 4593
234 NAND_GB_Written_SLC 0x0032 100 100 --- Old_age Always - 9286
241 Host_Writes_GiB 0x0030 253 253 --- Old_age Offline - 8637
242 Host_Reads_GiB 0x0030 253 253 --- Old_age Offline - 4966
244 Temp_Throttle_Status 0x0032 000 100 --- Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
Selective Self-tests/Logging not supported
[venus:server 16:32:52 ~ ]
$
稼働時間が5465時間となっているけれどMacBook 2008 LateにHigh Sierraを入れてみたのが590日前だからか,そんなもんかな.
Media_Wearout_Indicatorが気になる.初期は100から使っていくと減ってきて0になったら終わり,らしいのだけどこの数値はさっぱりわからん.
それよりも,Total_Bad_Blocksが251となっているが,この数値を追いかけたほうがいいのかなぁ...
当サイトへの不正ログインモニタリングの通知メールが,SpamAssasinによってスパム扱いを受けるようになった.

スパムヘッダはこれ.
不正ログイン通知の検知本文情報によるのかなぁ.
設定ファイルは以下の通り.
どれだ?!
タイムスタンプを確認.
差分を確認.
macOS Serverの管理画面を確認.

サーバの設定を見ると,スコアが6.0なので一致.
ホワイトリストを設定するため,まずは現在設定をコピー.
ホワイトリストにしたいメアドやドメインを登録.
保存したら文法チェック.
これで様子見かな.

スパムヘッダはこれ.
X-Spam-Flag: YES
X-Spam-Score: 7.269
X-Spam-Level: *******
X-Spam-Status: Yes, score=7.269 tagged_above=2 required=6
tests=[BITCOIN_SPAM_07=3.499, BITCOIN_XPRIO=0.001,
FORGED_SPF_HELO=2.297, NORMAL_HTTP_TO_IP=0.001,
NUMERIC_HTTP_ADDR=0.001, PDS_BTC_ID=0.498, SPF_HELO_PASS=-0.001,
SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001]
autolearn=no autolearn_force=no
設定ファイルは以下の通り.
$ locate spamassassin|grep local.cf🆑
/Applications/Server.app/Contents/ServerRoot/private/etc/mail/spamassassin/local.cf.default
/Library/Server/Mail/Config/spamassassin/local.cf
/Library/Server/Mail/Config/spamassassin/local.cf.default
/Library/Server/Mail/Data/scanner/spamassassin/3.004001/updates_spamassassin_org/local.cf
$
タイムスタンプを確認.
$ ls -la /Library/Server/Mail/Config/spamassassin/local.cf🆑
-rw-r--r-- 1 root wheel 2725 5 16 2020 /Library/Server/Mail/Config/spamassassin/local.cf
$ ls -la /Library/Server/Mail/Config/spamassassin/local.cf.default
-rw-r--r-- 1 root wheel 2706 9 13 2018 /Library/Server/Mail/Config/spamassassin/local.cf.default
$
$ diff /Library/Server/Mail/Config/spamassassin/local.cf.default /Library/Server/Mail/Config/spamassassin/local.cf🆑
99a100,101
>
> required_hits 6.0
$

サーバの設定を見ると,スコアが6.0なので一致.
ホワイトリストを設定するため,まずは現在設定をコピー.
$ sudo cp -p /Library/Server/Mail/Config/spamassassin/local.cf /Library/Server/Mail/Config/spamassassin/local.cf.20210127🆑
$ ls -la /Library/Server/Mail/Config/spamassassin/local.cf*
-rw-r--r-- 1 root wheel 2725 5 16 2020 /Library/Server/Mail/Config/spamassassin/local.cf
-rw-r--r-- 1 root wheel 2725 5 16 2020 /Library/Server/Mail/Config/spamassassin/local.cf.20210127🈁
-rw-r--r-- 1 root wheel 2706 9 13 2018 /Library/Server/Mail/Config/spamassassin/local.cf.default
$
$ tail /Library/Server/Mail/Config/spamassassin/local.cf
# shortcircuit BAYES_00 ham
endif # Mail::SpamAssassin::Plugin::Shortcircuit
required_hits 6.0
whitelist_from *@xxxxx.or.jp🈁
whitelist_from *@yyy.jp🈁
whitelist_from *@mail.xxx.jp🈁
$
sh-3.2# spamassassin --lint🆑
sh-3.2#
これで様子見かな.
メールサーバの移行に際して,行ったこと.
新規サーバを構築する
新規FQDNを使ってメールの送受信の動作確認
メールデータの移行
移行先のメールボックスは実質10個くらいだったので,IMAP4でもあるし新旧のメールサーバにメールアプリで接続して手で移動してみた.
システムイログやらメルマガやら15年分のメールがあるので数が多い.最終的に移動したメールでは6万件もあったものがある.
Apple Mailだと1000件毎に移動させている分には問題ないが,5000件くらいを一気に移動しようとするとレインボーがでて空回りして暴走.Thunderbirdは1万件くらいで問題ないことがわかりました.
移行しつつ,絶対いらないメールとかは適宜削除しながら...
読んでないメルマガの解約
ちょっと放置していたのもあるけれど,Yahoo!オークションのために用意していたメールアドレスに,Yahoo!の新サービスからのメールがたくさん.50種類くらいのものが来ていて,一括削除できない...1つつづメールのフッタにある「解約」を押して毎回ログインさせられ解約ボタンを押して行く作業.
あまりにもメールが多いので?解約を繰り返していると途中からCAPTCHA認証がでてくるようになった.

ロボット的に解約しているからなぁ,
ロボット的だと思って自動的に出てくるようになったのか,メルマガのサイト毎に実装されているところとそうでないところがあったのかは,不明.なんせ解約祭りのスピードが遅くなる事に閉口.
MXレコードは1時間くらい
10年くらい前までは,DNS変更は伝搬のタイミングがあるので1.5日くらいを計画に入れていたけれど,今回の実績だと1時間程度の模様.これ,重要.
移行先のメールボックスは実質10個くらいだったので,IMAP4でもあるし新旧のメールサーバにメールアプリで接続して手で移動してみた.
システムイログやらメルマガやら15年分のメールがあるので数が多い.最終的に移動したメールでは6万件もあったものがある.
Apple Mailだと1000件毎に移動させている分には問題ないが,5000件くらいを一気に移動しようとするとレインボーがでて空回りして暴走.Thunderbirdは1万件くらいで問題ないことがわかりました.
移行しつつ,絶対いらないメールとかは適宜削除しながら...
ちょっと放置していたのもあるけれど,Yahoo!オークションのために用意していたメールアドレスに,Yahoo!の新サービスからのメールがたくさん.50種類くらいのものが来ていて,一括削除できない...1つつづメールのフッタにある「解約」を押して毎回ログインさせられ解約ボタンを押して行く作業.
あまりにもメールが多いので?解約を繰り返していると途中からCAPTCHA認証がでてくるようになった.

ロボット的に解約しているからなぁ,

ロボット的だと思って自動的に出てくるようになったのか,メルマガのサイト毎に実装されているところとそうでないところがあったのかは,不明.なんせ解約祭りのスピードが遅くなる事に閉口.
10年くらい前までは,DNS変更は伝搬のタイミングがあるので1.5日くらいを計画に入れていたけれど,今回の実績だと1時間程度の模様.これ,重要.
Error: nginx: no bottle available!
- カテゴリ :
- Apple » MacBook » 2008 13inch 2
- ブロガー :
- ujpblog 2021/1/3 23:38
nginxをbrewから落としてこようとしたら,エラーになった.
引用: OSが古いからボトルは置いてない.コンパイルしろって.
仕方ないのでソースからコンパイル.
引用:
Warning: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
Error: nginx: no bottle available!
You can try to install from source with e.g.
brew install --build-from-source nginx🈁
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
仕方ないのでソースからコンパイル.
High SierraにServer.appでメールサーバをオンにすると,/var/log/mail.logを使わなくなる.
場所やフォーマットが変わる.
とりあえず,変なIDでログイン試行していくるIPはこれで特定できそうだ.
そして既存のアカウントへのログイン失敗は,このログをウォッチすれば良い模様.
場所やフォーマットが変わる.
venus:Mail server$ pwd🆑
/Library/Logs/Mail
venus:Mail server$ grep "no auth attempts" mail-info.log|more
そして既存のアカウントへのログイン失敗は,このログをウォッチすれば良い模様.
mail-err.log
macOS High SierraへのHomeBrew環境整備2
- カテゴリ :
- Apple » MacBook » 2008 13inch 2
- ブロガー :
- ujpblog 2021/1/3 13:21
追加でパッケージを追加.
どうもApple Siliconがリリースされた影響か? configureから実行されるので全コンパイルが走る.マシンが古いせいもあるけれど,12時間くらいかかった.
もしかしてOpenSSLの脆弱性とかが関係あるのか・・・?
git clone http://github.com/possatti/pokemonsay
brew install figlet
brew install mrtg
もしかしてOpenSSLの脆弱性とかが関係あるのか・・・?
macOS High SierraへのHomeBrew環境整備
- カテゴリ :
- Apple » MacBook » 2008 13inch 2
- ブロガー :
- ujpblog 2020/5/17 14:57
新たに環境を作ろと思って,再度HomeBrew環境を整理.
そして1年前に比べると,Java環境が変わっていました.
Jenkinsを導入しようとすると,JavaのJREが必要なのですが,Oracle JavaじゃなくてIBM系のAdoptOpenJDKになっていました.
AdoptOpenJDK
https://adoptopenjdk.net
そしてPHP7.2も.
1年前はPHP7.2.17でしたが,7.2.31で,これは5月14日にリリースされたばかりの模様.今年の11月末に7.2のサポートは切れるそうです.
brew update
brew install tree
brew install wget
brew install cask
brew install gnu-sed
brew install coreutils
brew install imagemagick
brew install openjpeg
brew install fontconfig
brew install nkf
brew install cowsay
brew install ffmpeg
brew install httpd
brew info mariadb
brew install mariadb
brew install mysql-connector-c
brew install mariadb-connector-c
Jenkinsを導入しようとすると,JavaのJREが必要なのですが,Oracle JavaじゃなくてIBM系のAdoptOpenJDKになっていました.
AdoptOpenJDK
https://adoptopenjdk.net
brew cask install homebrew/cask-versions/adoptopenjdk8
brew install jenkins
brew install php@7.2
MacBook 2008 LateにHigh Sierraを入れてみた
- カテゴリ :
- Apple » MacBook » 2008 13inch 2
- ブロガー :
- ujpblog 2020/5/16 14:01
件名の通り,12年前発売のMacBook 2008 Lateに,3年前にリリースされたOSをインストールしてみました.

本来は対象外の機種なのでインストールできないけれど,パッチを適用したOSインストーラを用意して,インストールを行えば良いです.
macOS High Sierra Patcher Tool for Unsupported Macs
http://dosdude1.com/highsierra/
昔ダウンロードしておいたHigh Sierraのインストーラは,証明書の期限切れで利用できず.ただし,Patcherを使うとダウンロードできます.
12年前のマシンとはいえ,サーバ利用だったので見た目は綺麗だし液晶に不具合もなくメモリも8GBで,SSD 512GBに交換しているので,そこそこ快適に動作してますが,OSが古いとWebブラウザのSafariのバージョンが古く,インターネットができません.
昔はブラウザが古いとレイアウトが崩れて見るに耐えない状態があったけれど,現在はTLSが古いとアクセス自体を禁止しているページも多く,そうなるとアクセスすらできない.
LinuxをいれるとかWindowsを入れるとか考えたけれど,動くならこれが一番現実的かなと思いm,High Sierraにしました.
とにかく,セットアップに時間がかかったけれど,これでしばらく使えそうです.

本来は対象外の機種なのでインストールできないけれど,パッチを適用したOSインストーラを用意して,インストールを行えば良いです.
macOS High Sierra Patcher Tool for Unsupported Macs
http://dosdude1.com/highsierra/
昔ダウンロードしておいたHigh Sierraのインストーラは,証明書の期限切れで利用できず.ただし,Patcherを使うとダウンロードできます.
12年前のマシンとはいえ,サーバ利用だったので見た目は綺麗だし液晶に不具合もなくメモリも8GBで,SSD 512GBに交換しているので,そこそこ快適に動作してますが,OSが古いとWebブラウザのSafariのバージョンが古く,インターネットができません.
昔はブラウザが古いとレイアウトが崩れて見るに耐えない状態があったけれど,現在はTLSが古いとアクセス自体を禁止しているページも多く,そうなるとアクセスすらできない.
LinuxをいれるとかWindowsを入れるとか考えたけれど,動くならこれが一番現実的かなと思いm,High Sierraにしました.
とにかく,セットアップに時間がかかったけれど,これでしばらく使えそうです.
MacBook 2008 Lateに付属していたHDDを,ウエスタンデジタルのSSD 500GB 3D NANOにクローンしました.
使用したのはガチャベイというUSB接続のHDDドックも兼ねている製品です.
複製自体は以前1回やっているのですが,今回はエラーが出たのでその記録がてらに.
元のHDDにセクタエラーがあったようで,25%のゲージのところが高速に点滅していますが,一応,その後クロンを取ることができて問題なく動いているように思います.
ただし,元のHDDが130GBでしたが,500GBのSSDにクローンすると,クローン先も130GBになりました.

もったいないけれど,まぁ今回は我慢するかな.
使用したのはガチャベイというUSB接続のHDDドックも兼ねている製品です.
複製自体は以前1回やっているのですが,今回はエラーが出たのでその記録がてらに.
元のHDDにセクタエラーがあったようで,25%のゲージのところが高速に点滅していますが,一応,その後クロンを取ることができて問題なく動いているように思います.
ただし,元のHDDが130GBでしたが,500GBのSSDにクローンすると,クローン先も130GBになりました.

もったいないけれど,まぁ今回は我慢するかな.
今回はずいぶん呑気な話.そして偶然にも助かった件.
Time Machineを使ってバックアップを設定しているサーバに,前のハードディスクが壊れたので,新しくカクうす HDPX-UTA1.0Kという外付けHDDを交換したのが2017年2月8日.なので2年4ヶ月ほど前.そこからだ.
]
4ヶ月は動いていたようだけれど,その後2年間,バックアップができていなかった.問題は,mdsというSpotlightの全文検索インデックス作成の失敗.
Time Machineはそのバックアップ先のストレージ空き容量は監視していたけれど,こうなると最終バックアップの実行日時を取得して,止まっているようだったらアラートをあげる的な仕組みが必要かな.
Time Machineを使ってバックアップを設定しているサーバに,前のハードディスクが壊れたので,新しくカクうす HDPX-UTA1.0Kという外付けHDDを交換したのが2017年2月8日.なので2年4ヶ月ほど前.そこからだ.

4ヶ月は動いていたようだけれど,その後2年間,バックアップができていなかった.問題は,mdsというSpotlightの全文検索インデックス作成の失敗.
Time Machineはそのバックアップ先のストレージ空き容量は監視していたけれど,こうなると最終バックアップの実行日時を取得して,止まっているようだったらアラートをあげる的な仕組みが必要かな.
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' tried: /usr/local/lib/php/pecl/20170718/imagick
- カテゴリ :
- Apple » MacBook » 2008 13inch 2
- ブロガー :
- ujpblog 2019/4/14 23:51
NetCommons3をインストールしようとたら,次のようなエラーがでた.
ImageMagickはHomeBrewでインストールしたはずなのだが.
インストール済みを確認.ライブラリを検索.
入ってない.
PHPの拡張ライブラリ管理ツールのpeclを使って,インストールする.
自動検出なので,空でエンタキーを押下.
コンパイルできた模様.
ファイルを確認.
ありました.PHP.INIも変更したと書いてあるので,確認.
再度実行してみる.
エラーが出なくなった.これで先に進めるかなぁ.
$ ./cake install.install🆑
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick'
(tried: /usr/local/lib/php/pecl/20170718/imagick
(dlopen(/usr/local/lib/php/pecl/20170718/imagick, 9): image not found),
/usr/local/lib/php/pecl/20170718/imagick.so
(dlopen(/usr/local/lib/php/pecl/20170718/imagick.so, 9): image not found))
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'imagick'
(tried: /usr/local/lib/php/pecl/20170718/imagick
(dlopen(/usr/local/lib/php/pecl/20170718/imagick, 9): image not found),
/usr/local/lib/php/pecl/20170718/imagick.so
(dlopen(/usr/local/lib/php/pecl/20170718/imagick.so, 9): image not found))
in Unknown on line 0
---------------------------------------------------------------
NetCommons Install
---------------------------------------------------------------
[S]tart
[H]elp
[Q]uit
What would you like to do? (S/H/Q)
[Q] >
$ brew info imagemagick🆑
imagemagick: stable 7.0.8-35, HEAD
Tools and libraries to manipulate images in many formats
https://www.imagemagick.org/
/usr/local/Cellar/imagemagick/7.0.8-35 (1,477 files, 23.7MB) *
Built from source on 2019-04-10 at 01:52:17
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/imagemagick.rb
==> Dependencies
Build: pkg-config ✔
Required: freetype ✔, jpeg ✔, libheif ✔, libomp ✔, libpng ✔,
libtiff ✔, libtool ✔, little-cms2 ✔, openexr ✔, openjpeg ✔,
webp ✔, xz ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 100,125 (30 days), 339,156 (90 days), 1,337,647 (365 days)
install_on_request: 70,180 (30 days), 237,303 (90 days), 891,786 (365 days)
build_error: 0 (30 days)
$
$ find /usr/local/Cellar/ |grep imagick.so🆑
$
PHPの拡張ライブラリ管理ツールのpeclを使って,インストールする.
$ pecl install imagick🆑
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick'
(tried: /usr/local/lib/php/pecl/20170718/imagick
(dlopen(/usr/local/lib/php/pecl/20170718/imagick, 9):
image not found), /usr/local/lib/php/pecl/20170718/imagick.so
(dlopen(/usr/local/lib/php/pecl/20170718/imagick.so, 9):
image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'imagick'
(tried: /usr/local/lib/php/pecl/20170718/imagick
(dlopen(/usr/local/lib/php/pecl/20170718/imagick, 9):
image not found), /usr/local/lib/php/pecl/20170718/imagick.so
(dlopen(/usr/local/lib/php/pecl/20170718/imagick.so, 9):
image not found)) in Unknown on line 0
downloading imagick-3.4.3.tgz ...
Starting to download imagick-3.4.3.tgz (245,410 bytes)
...................................................done: 245,410 bytes
19 source files, building
Warning: preg_match(): Unknown modifier '7' in Builder.php on line 310
PHP Warning: preg_match(): Unknown modifier '7'
in /usr/local/Cellar/php@7.2/7.2.17/share/php@7.2/pear/PEAR/Builder.php on line 310
Warning: preg_match(): Unknown modifier '7' in
/usr/local/Cellar/php@7.2/7.2.17/share/php@7.2/pear/PEAR/Builder.php on line 310
running: phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
Please provide the prefix of Imagemagick installation [autodetect] :🈁
自動検出なので,空でエンタキーを押下.
Please provide the prefix of Imagemagick installation [autodetect] :🆑
building in /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3
running: /private/tmp/pear/temp/imagick/configure
--with-php-config=/usr/local/opt/php@7.2/bin/php-config --with-imagick
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/local/opt/gnu-sed/libexec/gnubin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking target system type... x86_64-apple-darwin15.6.0
checking for PHP prefix... /usr/local/Cellar/php@7.2/7.2.17
checking for PHP includes... -I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/php@7.2/7.2.17/pecl/20170718
checking for PHP installed headers prefix... /usr/local/Cellar/php@7.2/7.2.17/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable the imagick extension... yes, shared
checking for pkg-config... /usr/local/bin/pkg-config
checking ImageMagick MagickWand API configuration program...
checking Testing /usr/local/bin/MagickWand-config... It exists
found in /usr/local/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 7.0.8 Q16 HDRI
checking for MagickWand.h or magick-wand.h header...
/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7/MagickWand/MagickWand.h
checking PHP version is at least 5.1.3... yes. found 7.2.17
libs
-L/usr/local/Cellar/imagemagick/7.0.8-35/lib -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI
checking for MagickGetVersion... yes
checking for MagickSetImageInterpolateMethod... yes
checking for ld used by cc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/Library/Developer/CommandLineTools/usr/bin/ld)
supports shared libraries... yes
checking dynamic linker characteristics... darwin15.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=compile cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagick_file.c -o imagick_file.lo
mkdir .libs
cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagick_file.c -fno-common -DPIC
-o .libs/imagick_file.o
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=compile cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagick_class.c -o imagick_class.lo
cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H -g
-O2 -c /private/tmp/pear/temp/imagick/imagick_class.c -fno-common -DPIC -o .libs/imagick_class.o
/private/tmp/pear/temp/imagick/imagick_class.c:2436:56: warning: incompatible
pointer types passing 'zend_long *' (aka 'long long *') to parameter of type
'long *' [-Wincompatible-pointer-types]
long_array = php_imagick_zval_to_long_array(pixels, &num_elements TSRMLS_CC);
^~~~~~~~~~~~~
/private/tmp/pear/temp/imagick/php_imagick_helpers.h:33:63: note: passing argument
to parameter 'num_elements' here
long *php_imagick_zval_to_long_array(zval *param_array, long *num_elements TSRMLS_DC);
^
/private/tmp/pear/temp/imagick/imagick_class.c:2446:56: warning: incompatible pointer
types passing 'zend_long *' (aka 'long long *') to parameter of type 'long *'
[-Wincompatible-pointer-types]
char_array = php_imagick_zval_to_char_array(pixels, &num_elements TSRMLS_CC);
^~~~~~~~~~~~~
/private/tmp/pear/temp/imagick/php_imagick_helpers.h:35:72: note: passing argument to parameter
'num_elements' here
unsigned char *php_imagick_zval_to_char_array(zval *param_array, long *num_elements TSRMLS_DC);
^
/private/tmp/pear/temp/imagick/imagick_class.c:7731:79: warning: incompatible pointer
types passing 'long *' to parameter of type 'zend_long *' (aka 'long long *')
[-Wincompatible-pointer-types]
if (!php_imagick_thumbnail_dimensions(magick_wand, 1, box_width, box_height,
&new_width, &new_height, legacy)) {
^~~~~~~~~~
/private/tmp/pear/temp/imagick/php_imagick_helpers.h:27:144: note: passing argument
to parameter 'new_width' here
zend_bool php_imagick_thumbnail_dimensions(MagickWand *magick_wand, zend_bool bestfit,
im_long desired_width, im_long desired_height, im_long *new_width, im_long *new_height,
zend_bool legacy);
^
/private/tmp/pear/temp/imagick/imagick_class.c:7731:91: warning: incompatible pointer
types passing 'long *' to parameter of type 'zend_long *' (aka 'long long *')
[-Wincompatible-pointer-types]
if (!php_imagick_thumbnail_dimensions(magick_wand, 1, box_width, box_height,
&new_width, &new_height, legacy)) {
^~~~~~~~~~~
/private/tmp/pear/temp/imagick/php_imagick_helpers.h:27:164: note: passing argument
to parameter 'new_height' here
zend_bool php_imagick_thumbnail_dimensions(MagickWand *magick_wand, zend_bool bestfit,
im_long desired_width, im_long desired_height, im_long *new_width, im_long *new_height,
zend_bool legacy);
/private/tmp/pear/temp/imagick/imagick_class.c:8510:14: warning: address of array
'trim->val' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (trim->val) {
~~ ~~~~~~^~~
5 warnings generated.
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=compile cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I. -I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick -I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/imagick/imagickdraw_class.c
-o imagickdraw_class.
lo
cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I. -I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick -I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagickdraw_class.c -fno-common -DPIC
-o .libs/imagickdraw_class.o
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=compile cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagickpixel_class.c -o imagickpixel_clas
s.lo
cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagickpixel_class.c -fno-common -DPIC
-o .libs/imagickpixel_class.o
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=compile cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagickpixeliterator_class.c -o imagickpi
xeliterator_class.lo
cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagickpixeliterator_class.c
-fno-common -DPIC -o .libs/imagickpixeliterator_class.o
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=compile cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagick_helpers.c -o imagick_helpers.lo
cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagick_helpers.c -fno-common -DPI
C -o .libs/imagick_helpers.o
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=compile cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/imagick/imagick.c -o imagick.lo
cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H -g
-O2 -c /private/tmp/pear/temp/imagick/imagick.c -fno-common -DPIC -o .libs/imagick.o
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=compile cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagickkernel_class.c -o imagickkernel_cl
ass.lo
cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/imagickkernel_class.c -fno-common
-DPIC -o .libs/imagickkernel_class.o
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=compile cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/shim_im6_to_im7.c -o shim_im6_to_im7.lo
cc -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7
-I.
-I/private/tmp/pear/temp/imagick -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -c /private/tmp/pear/temp/imagick/shim_im6_to_im7.c -fno-common -DPIC
-o .libs/shim_im6_to_im7.o
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=link cc -DPHP_ATOM_INC
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/include
-I/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/main
-I/private/tmp/pear/temp/imagick
-I/usr/local/Cellar/php@7.2/7.2.17/include/php
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/main
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/TSRM
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/Zend
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
-I/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/date/lib
-I/usr/local/Cellar/imagemagick/7.0.8-35/include/ImageMagick-7 -DHAVE_CONFIG_H
-g -O2 -o imagick.la -export-dynamic -avoid-version -prefer-pic -module
-rpath /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/modules
imagick_file.lo imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo
imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo
imagickkernel_class.lo shim_im6_to_im7.lo -Wl,-rpath,/usr/loc
al/Cellar/imagemagick/7.0.8-35/lib -L/usr/local/Cellar/imagemagick/7.0.8-35/lib
-lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/imagick.so
-bundle .libs/imagick_file.o .libs/imagick_class.o .libs/imagickdraw_class.o
.libs/imagickpixel_class.o .libs/imagickpixeliterator_class.o .libs/imagick_helpers.o
.libs/imagick.o .libs/imagickkernel_class.o .libs/shim_im6_to_im7.o
-L/usr/local/Cellar/imagemagick/7.0.8-35/lib
/usr/local/Cellar/imagemagick/7.0.8-35/lib/libMagickWand-7.Q16HDRI.dylib
-L/usr/local/Cellar/little-cms2/2.9/lib -L/usr/local/opt/freetype/lib
-L/usr/local/Cellar/xz/5.2.4/lib
/usr/local/Cellar/imagemagick/7.0.8-35/lib/libMagickCore-7.Q16HDRI.dylib
-Wl,-rpath -Wl,/usr/local/Cellar/imagemagick/7.0.8-35/lib
dsymutil .libs/imagick.so || :
creating imagick.la
(cd .libs && rm -f imagick.la && ln -s ../imagick.la imagick.la)
/bin/sh /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/libtool
--mode=install cp ./imagick.la /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/modules
cp ./.libs/imagick.so /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/modules/imagick.so
cp ./.libs/imagick.lai /private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/modules/imagick.la
----------------------------------------------------------------------
Libraries have been installed in:
/private/tmp/pear/temp/pear-build-serverbmLHSj/imagick-3.4.3/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
running: make INSTALL_ROOT="/private/tmp/pear/temp/pear-build-serverbmLHSj/install-imagick-3.4.3" install
Installing shared extensions:
/private/tmp/pear/temp/pear-build-serverbmLHSj/install-imagick-3.4.3
/usr/local/Cellar/php@7.2/7.2.17/pecl/20170718/
Installing header files:
/private/tmp/pear/temp/pear-build-serverbmLHSj/install-imagick-3.4.3
/usr/local/Cellar/php@7.2/7.2.17/include/php/
running: find "/private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3" | xargs ls -dils
1589706 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3
1590097 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr
1590098 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local
1590099 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local/Cellar
1590100 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local/Cellar/php@7.2
1590101 0 drwxr-xr-x 4 server wheel
136 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local/Cellar/php@7.2/7.2.17
1590107 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHS
j/install-imagick-3.4.3/usr/local/Cellar/php@7.2/7.2.17/include
1590108 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local/Cellar/php@7.2/7.2.17/include/php
1590109 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local/Cellar/php@7.2/7.2.17/include/php/ext
1590110 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/imagick
1590111 4 -rw-r--r-- 1 server wheel
1828 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/imagick/php_imagick_shared.h
1590102 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local/Cellar/php@7.2/7.2.17/pecl
1590103 0 drwxr-xr-x 3 server wheel
102 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHS
j/install-imagick-3.4.3/usr/local/Cellar/php@7.2/7.2.17/pecl/20170718
1590104 416 -rwxr-xr-x 1 server wheel
422560 4 14 23:07 /private/tmp/pear/temp/pear-build-serverbmLHSj
/install-imagick-3.4.3/usr/local/Cellar/php@7.2/7.2.17/pecl/20170718/imagick.so
Build process completed successfully
Installing '/usr/local/Cellar/php@7.2/7.2.17/include/php/ext/imagick/php_imagick_shared.h'
Installing '/usr/local/Cellar/php@7.2/7.2.17/pecl/20170718/imagick.so'🈁
install ok: channel://pecl.php.net/imagick-3.4.3
Extension imagick enabled in php.ini🈁
$
ファイルを確認.
$ ls -la /usr/local/Cellar/php@7.2/7.2.17/pecl/20170718/imagick.so🆑
-rw-r--r-- 1 server admin 422560 4 14 23:07 /usr/local/Cellar/php@7.2/7.2.17/pecl/20170718/imagick.so🈁
$
$ grep imagick /usr/local/etc/php/7.2/php.ini🆑
extension="imagick.so"🈁
$
$ ./cake install.install🆑
PHP Warning: Module 'imagick' already loaded in Unknown on line 0
Warning: Module 'imagick' already loaded in Unknown on line 0
---------------------------------------------------------------
NetCommons Install
---------------------------------------------------------------
[S]tart
[H]elp
[Q]uit
What would you like to do? (S/H/Q)
[Q] >
brewでインストールしたphp7.2の詳細情報を確認.
DirectoryIndexの付け替え.phpの優先度を先にするのと,PHPのモジュールと拡張子の設定を追加.
作業前にファイルのバックアップを.
編集した結果のdiffをとる.
文法間違いがないか確認.
問題ないので,停止して,起動する.
PHPが動くか確認.
test.txtに結果を保存するようにして,curlコマンドを実行する.
中身を確認.
動きました.
$ brew info php72🆑
php@7.2: stable 7.2.17 [keg-only]
General-purpose scripting language
https://secure.php.net/
/usr/local/Cellar/php@7.2/7.2.17 (509 files, 75.7MB)
Built from source on 2019-04-11 at 01:27:23
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/php@7.2.rb
==> Dependencies
Build: httpd ✔, pkg-config ✔
Required: apr ✔, apr-util ✔, argon2 ✔, aspell ✔, autoconf ✔, curl-openssl ✔,
freetds ✔, freetype ✔, gettext ✔, glib ✔, gmp ✔, icu4c ✔, jpeg ✔, libpng ✔,
libpq ✔, libsodium ✔, libzip ✔, openldap ✔, openssl ✔, sqlite ✔,
tidy-html5 ✔, unixodbc ✔, webp ✔
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php7_module /usr/local/opt/php@7.2/lib/httpd/modules/libphp7.so🈁
<FilesMatch \.php$>🈁
SetHandler application/x-httpd-php🈁
</FilesMatch>🈁
Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html🈁
The php.ini and php-fpm.ini file can be found in:
/usr/local/etc/php/7.2/
php@7.2 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have php@7.2 first in your PATH run:
echo 'export PATH="/usr/local/opt/php@7.2/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/opt/php@7.2/sbin:$PATH"' >> ~/.bash_profile
For compilers to find php@7.2 you may need to set:
export LDFLAGS="-L/usr/local/opt/php@7.2/lib"
export CPPFLAGS="-I/usr/local/opt/php@7.2/include"
To have launchd start php@7.2 now and restart at login:
brew services start php@7.2
Or, if you don't want/need a background service you can just run:
php-fpm
==> Analytics
install: 17,123 (30 days), 53,229 (90 days), 70,669 (365 days)
install_on_request: 16,922 (30 days), 52,686 (90 days), 70,069 (365 days)
build_error: 0 (30 days)
$
作業前にファイルのバックアップを.
$ cp /usr/local/etc/httpd/httpd.conf /usr/local/etc/httpd/httpd.conf.v001🆑
$
$ diff /usr/local/etc/httpd/httpd.conf.v001 /usr/local/etc/httpd/httpd.conf🆑
279c279,280
< DirectoryIndex index.html
---
> # DirectoryIndex index.html
> DirectoryIndex index.php index.html
531a533,537
> #for PHP72
> LoadModule php7_module /usr/local/opt/php@7.2/lib/httpd/modules/libphp7.so
> <FilesMatch \.php$>
> SetHandler application/x-httpd-php
> </FilesMatch>
[pluto:server 20:08:49 /usr/local/etc/httpd/extra ]
$
$ apachectl configtest🆑
Syntax OK
$
$ apachectl stop🆑
$ apachectl start🆑
$ ps -ef|grep httpd🆑
501 77440 1 0 8:11PM ?? 0:00.05 /usr/local/opt/httpd/bin/httpd -k start
501 77441 77440 0 8:11PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77442 77440 0 8:11PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77443 77440 0 8:11PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77444 77440 0 8:11PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77445 77440 0 8:11PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77450 77050 0 8:12PM ttys002 0:00.00 grep httpd
$
$ ls -la /usr/local/var/www/🆑
total 8
drwxr-xr-x 5 server admin 170 4 12 20:02 .
drwxrwxr-x 8 server admin 272 4 10 23:36 ..
drwxr-xr-x 6 server admin 204 4 10 23:36 cgi-bin
-rw-r--r-- 1 server admin 45 6 12 2007 index.html
-rw-r--r-- 1 server admin 22 4 12 20:02 index.php🈁
$ cat /usr/local/var/www/index.php🆑
<?php
phpinfo();
?>
$
$ curl -o test.txt localhost:8080/index.php🆑
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 101k 0 101k 0 0 8478k 0 --:--:-- --:--:-- --:--:-- 9249k
$
$ tail test.txt🆑
<p>
This program is free software; you can redistribute it and/or modify it under
the terms of the PHP License as published by the PHP Group and included in
the distribution in the file: LICENSE
</p>
<p>This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
</p>
<p>If you did not receive a copy of the PHP license, or have any questions
about PHP licensing, please contact license@php.net.
</p>
</td></tr>
</table>
</div></body></html>
$
brew infoで,インストールした時の情報を確認.
nghttp2が入ってない.今回はコンパイルできないのだから仕方ない.
ドキュメントを配置するhtdocの場所を確認.
index.htmlファイルを確認.
一番軽いやつだ.
次に,httpd.confを確認.ブランク行やコメント行を削除する.
SSLの設定を確認.
そのまま起動できそう.
apachectlの場所を確認して,起動してみる.
起動しました.ログを確認.
ゼロバイト.curlコマンドでアクセスしてみる.
It worksが返ってきた.ログを確認.
問題なくアクセスログが記録されていました.
$ brew info httpd🆑
httpd: stable 2.4.38
Apache HTTP server
https://httpd.apache.org/
/usr/local/Cellar/httpd/2.4.38 (1,613 files, 26.4MB) *
Built from source on 2019-04-10 at 23:36:23
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/httpd.rb
==> Dependencies
Required: apr ✔, apr-util ✔, brotli ✔, nghttp2 ✘, openssl ✔, pcre ✔
==> Caveats
DocumentRoot is /usr/local/var/www.🈁
The default ports have been set in /usr/local/etc/httpd/httpd.conf🈁 to 8080 and in
/usr/local/etc/httpd/extra/httpd-ssl.conf🈁 to 8443 so that httpd can run without sudo.
To have launchd start httpd now and restart at login:
brew services start httpd
Or, if you don't want/need a background service you can just run:
apachectl start🈁
==> Analytics
install: 12,837 (30 days), 45,067 (90 days), 174,047 (365 days)
install_on_request: 10,475 (30 days), 34,852 (90 days), 132,302 (365 days)
build_error: 0 (30 days)
$
ドキュメントを配置するhtdocの場所を確認.
$ ls -la /usr/local/var/www🆑
total 4
drwxr-xr-x 4 server admin 136 4 10 23:36 .
drwxrwxr-x 8 server admin 272 4 10 23:36 ..
drwxr-xr-x 6 server admin 204 4 10 23:36 cgi-bin
-rw-r--r-- 1 server admin 45 6 12 2007 index.html🈁
$ cat /usr/local/var/www/index.html🆑
<html><body><h1>It works!</h1></body></html>
$
次に,httpd.confを確認.ブランク行やコメント行を削除する.
$ grep -v -e '^\s*#' -e '^\s*$' /usr/local/etc/httpd/httpd.conf🆑
ServerRoot "/usr/local/opt/httpd"
Listen 8080
LoadModule mpm_prefork_module lib/httpd/modules/mod_mpm_prefork.so
LoadModule authn_file_module lib/httpd/modules/mod_authn_file.so
LoadModule authn_core_module lib/httpd/modules/mod_authn_core.so
LoadModule authz_host_module lib/httpd/modules/mod_authz_host.so
LoadModule authz_groupfile_module lib/httpd/modules/mod_authz_groupfile.so
LoadModule authz_user_module lib/httpd/modules/mod_authz_user.so
LoadModule authz_core_module lib/httpd/modules/mod_authz_core.so
LoadModule access_compat_module lib/httpd/modules/mod_access_compat.so
LoadModule auth_basic_module lib/httpd/modules/mod_auth_basic.so
LoadModule reqtimeout_module lib/httpd/modules/mod_reqtimeout.so
LoadModule filter_module lib/httpd/modules/mod_filter.so
LoadModule mime_module lib/httpd/modules/mod_mime.so
LoadModule log_config_module lib/httpd/modules/mod_log_config.so
LoadModule env_module lib/httpd/modules/mod_env.so
LoadModule headers_module lib/httpd/modules/mod_headers.so
LoadModule setenvif_module lib/httpd/modules/mod_setenvif.so
LoadModule version_module lib/httpd/modules/mod_version.so
LoadModule unixd_module lib/httpd/modules/mod_unixd.so
LoadModule status_module lib/httpd/modules/mod_status.so
LoadModule autoindex_module lib/httpd/modules/mod_autoindex.so
<IfModule !mpm_prefork_module>
</IfModule>
<IfModule mpm_prefork_module>
</IfModule>
LoadModule dir_module lib/httpd/modules/mod_dir.so
LoadModule alias_module lib/httpd/modules/mod_alias.so
<IfModule unixd_module>
User _www
Group _www
</IfModule>
ServerAdmin you@example.com
<Directory />
AllowOverride none
Require all denied
</Directory>
DocumentRoot "/usr/local/var/www"
<Directory "/usr/local/var/www">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "/usr/local/var/log/httpd/error_log"
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "/usr/local/var/log/httpd/access_log" common🈁
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/var/www/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "/usr/local/var/www/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule headers_module>
RequestHeader unset Proxy early
</IfModule>
<IfModule mime_module>
TypesConfig /usr/local/etc/httpd/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule proxy_html_module>
Include /usr/local/etc/httpd/extra/proxy-html.conf
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
$
$ grep -v -e '^\s*#' -e '^\s*$' /usr/local/etc/httpd/extra/httpd-ssl.conf🆑
Listen 8443
SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES
SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES
SSLHonorCipherOrder on
SSLProtocol all -SSLv3
SSLProxyProtocol all -SSLv3
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/usr/local/var/run/httpd/ssl_scache(512000)"
SSLSessionCacheTimeout 300
<VirtualHost _default_:8443>
DocumentRoot "/usr/local/var/www"
ServerName www.example.com:8443
ServerAdmin you@example.com
ErrorLog "/usr/local/var/log/httpd/error_log"
TransferLog "/usr/local/var/log/httpd/access_log"
SSLEngine on
SSLCertificateFile "/usr/local/etc/httpd/server.crt"
SSLCertificateKeyFile "/usr/local/etc/httpd/server.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/local/var/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "/usr/local/var/log/httpd/ssl_request_log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
$
apachectlの場所を確認して,起動してみる.
$ which apachectl🆑
/usr/local/bin/apachectl🈁
$ apachectl start🆑
$ ps -ef|grep httpd🆑
501 77099 1 0 7:39PM ?? 0:00.01 /usr/local/opt/httpd/bin/httpd -k start
501 77100 77099 0 7:39PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77101 77099 0 7:39PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77102 77099 0 7:39PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77103 77099 0 7:39PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77104 77099 0 7:39PM ?? 0:00.00 /usr/local/opt/httpd/bin/httpd -k start
501 77106 77050 0 7:39PM ttys002 0:00.00 grep httpd
$
$ ls -la /usr/local/var/log/httpd/🆑
total 4
drwxr-xr-x 4 server admin 136 4 12 19:39 .
drwxr-xr-x 4 server admin 136 4 11 01:27 ..
-rw-r--r-- 1 server admin 0 4 12 19:39 access_log🈁
-rw-r--r-- 1 server admin 254 4 12 19:39 error_log
$
$ curl localhost:8080🆑
<html><body><h1>It works!</h1></body></html>
$
$ ls -la /usr/local/var/log/httpd/🆑
total 8
drwxr-xr-x 4 server admin 136 4 12 19:39 .
drwxr-xr-x 4 server admin 136 4 11 01:27 ..
-rw-r--r-- 1 server admin 61 4 12 19:42 access_log🈁
-rw-r--r-- 1 server admin 254 4 12 19:39 error_log
$ cat /usr/local/var/log/httpd/access_log🆑
::1 - - [12/Apr/2019:19:41:59 +0900] "GET / HTTP/1.1" 200 45
$
brewでインストールしたmariadb10.3.14の状態確認と起動
- カテゴリ :
- Apple » MacBook » 2008 13inch 2
- ブロガー :
- ujpblog 2019/4/11 22:52
バージョンを確認.
my.cnfを確認.
ない.my.cnfの場所を確認.まずはヘルプを見てみる.
指定されたファイルを確認.
ありました.中身を確認.
中身がないね...
とりあえず,指示通りに起動してみる.
プロセスを確認.
データフォルダを確認してみる.
エラーログを確認.
ready for connections.と出ているので,問題ない模様.
$ brew info mariadb🆑
mariadb: stable 10.3.14
Drop-in replacement for MySQL
https://mariadb.org/
Conflicts with:
mariadb-connector-c (because both install plugins)
mysql (because mariadb, mysql, and percona install the same binaries.)
mysql-cluster (because mariadb, mysql, and percona install the same binaries.)
mysql-connector-c (because both install MySQL client libraries)
mytop (because both install `mytop` binaries)
percona-server (because mariadb, mysql, and percona install the same binaries.)
/usr/local/Cellar/mariadb/10.3.14 (653 files, 173.5MB) *🈁
Built from source on 2019-04-10 at 21:58:51
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mariadb.rb
==> Dependencies
Build: cmake ✔
Required: openssl ✔
==> Caveats
A "/etc/my.cnf"🈁 from another install may interfere with a Homebrew-built
server starting up correctly.
MySQL is configured to only allow connections from localhost by default
To connect:
mysql -uroot
To have launchd start mariadb now and restart at login:
brew services start mariadb🈁
Or, if you don't want/need a background service you can just run:
mysql.server start
==> Analytics
install: 19,276 (30 days), 49,267 (90 days), 165,865 (365 days)
install_on_request: 18,357 (30 days), 47,053 (90 days), 155,100 (365 days)
build_error: 0 (30 days)
$
$ cat /etc/my.cnf🆑
cat: /etc/my.cnf: No such file or directory
$
$ mysql --help|grep cnf
/usr/local/etc/my.cnf ~/.my.cnf
order of preference, my.cnf, $MYSQL_TCP_PORT,
$ ls -la /usr/local/etc/my.cnf🆑
-rw-r--r-- 1 server admin 212 4 10 21:58 /usr/local/etc/my.cnf
$ ls -la ~/.my.cnf🆑
ls: cannot access '/Users/ujpadmin/.my.cnf': No such file or directory
$
$ cat /usr/local/etc/my.cnf🆑
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]
#
# include all files from the config directory
#
!includedir /usr/local/etc/my.cnf.d
$
とりあえず,指示通りに起動してみる.
$ brew services start mariadb🆑
==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Enumerating objects: 17, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 17 (delta 0), reused 12 (delta 0), pack-reused 0
Unpacking objects: 100% (17/17), done.
Tapped 1 command (50 files, 62.8KB).
==> Successfully started `mariadb` (label: homebrew.mxcl.mariadb)🈁
$
$ ps -ef|grep mariadb🆑
501 16043 1 0 10:41PM ?? 0:00.03 /bin/sh /usr/local/opt/mariadb/bin/mysqld_safe
--datadir=/usr/local/var/mysql
501 16140 16043 0 10:41PM ?? 0:00.31 /usr/local/opt/mariadb/bin/mysqld
--basedir=/usr/local/opt/mariadb
--datadir=/usr/local/var/mysql🈁
--plugin-dir=/usr/local/opt/mariadb/lib/plugin
--log-error=/usr/local/var/mysql/plute.local.err🈁
--pid-file=plute.local.pid
$
$ ls -la /usr/local/var/mysql🆑
total 122936
drwxr-xr-x 16 server admin 544 4 11 22:41 .
drwxrwxr-x 8 server admin 272 4 10 23:36 ..
-rw-rw---- 1 server admin 16384 4 10 21:59 aria_log.00000001
-rw-rw---- 1 server admin 52 4 10 21:59 aria_log_control
-rw-r----- 1 server admin 972 4 10 21:59 ib_buffer_pool
-rw-rw---- 1 server admin 50331648 4 11 22:41 ib_logfile0
-rw-rw---- 1 server admin 50331648 4 10 21:59 ib_logfile1
-rw-rw---- 1 server admin 12582912 4 10 21:59 ibdata1
-rw-rw---- 1 server admin 12582912 4 11 22:41 ibtmp1
-rw-rw---- 1 server admin 0 4 11 22:41 multi-master.info
drwx------ 91 server admin 3094 4 10 21:59 mysql
drwx------ 3 server admin 102 4 10 21:59 performance_schema
-rw-rw---- 1 server admin 1607 4 11 22:41 plute.local.err
-rw-rw---- 1 server admin 6 4 11 22:41 plute.local.pid
-rw-rw---- 1 server admin 24576 4 11 22:41 tc.log
drwx------ 3 server admin 102 4 10 21:59 test
$
$ cat /usr/local/var/mysql/plute.local.err🆑
2019-04-11 22:41:41 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-04-11 22:41:41 0 [Note] InnoDB: Uses event mutexes
2019-04-11 22:41:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.5
2019-04-11 22:41:41 0 [Note] InnoDB: Number of pools: 1
2019-04-11 22:41:41 0 [Note] InnoDB: Using generic crc32 instructions
2019-04-11 22:41:41 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances
= 1, chunk size = 128M
2019-04-11 22:41:41 0 [Note] InnoDB: Completed initialization of buffer pool
2019-04-11 22:41:41 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-04-11 22:41:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-04-11 22:41:41 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically
writing the file full; Please wait ...
2019-04-11 22:41:42 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-04-11 22:41:42 0 [Note] InnoDB: 10.3.14 started; log sequence number 1630815;
transaction id 21
2019-04-11 22:41:42 0 [Note] InnoDB: Loading buffer pool(s) from
/usr/local/var/mysql/ib_buffer_pool
2019-04-11 22:41:42 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-04-11 22:41:42 0 [Note] InnoDB: Buffer pool(s) load completed at 190411 22:41:42
2019-04-11 22:41:42 0 [Note] Server socket created on IP: '::'.
2019-04-11 22:41:42 0 [Note] Reading of all Master_info entries succeded
2019-04-11 22:41:42 0 [Note] Added new Master_info '' to hash table
2019-04-11 22:41:42 0 [Note] /usr/local/opt/mariadb/bin/mysqld: ready for connections.🈁
Version: '10.3.14-MariaDB' socket: '/tmp/mysql.sock' port: 3306 Homebrew
$
PHP7.2の詳細バージョンを確認してcomposerをインストール
- カテゴリ :
- Apple » MacBook » 2008 13inch 2
- ブロガー :
- ujpblog 2019/4/11 22:36
この時代にEl Capitanに無理やりbrewでインストールしたPHP7.2のバージョンを確認.
CakePHPを動かすには,compserというものが必要らしい.Brewにあるか確認.
存在していた.インストール.
ダウンロードしただけでインストールされた模様.
バージョンを確認.
$ php -v🆑
PHP 7.2.17 (cli) (built: Apr 11 2019 01:25:03) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.17, Copyright (c) 1999-2018, by Zend Technologies
$
$ brew info composer🆑
composer: stable 1.8.5🈁
Dependency Manager for PHP
https://getcomposer.org/
Not installed🈁
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/composer.rb
==> Analytics
install: 22,659 (30 days), 77,861 (90 days), 285,530 (365 days)
install_on_request: 21,683 (30 days), 73,363 (90 days), 261,200 (365 days)
build_error: 0 (30 days)
$
$ brew install composer🆑
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this old version.
==> Downloading https://getcomposer.org/download/1.8.5/composer.phar
######################################################################## 100.0%
🍺 /usr/local/Cellar/composer/1.8.5: 3 files, 1.8MB, built in 36 seconds
$
バージョンを確認.
$ composer -v🆑
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 1.8.5 2019-04-09 17:46:47
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--profile Display timing and memory usage information
--no-plugins Whether to disable plugins.
-d, --working-dir=WORKING-DIR If specified, use the given directory as working directory.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output,
2 for more verbose output and 3 for debug
Available commands:
about Shows the short information about Composer.
archive Creates an archive of this composer package.
browse Opens the package's repository URL or homepage in your browser.
check-platform-reqs Check that platform requirements are satisfied.
clear-cache Clears composer's internal package cache.
clearcache Clears composer's internal package cache.
config Sets config options.
create-project Creates new project from a package into given directory.
depends Shows which packages cause the given package to be installed.
diagnose Diagnoses the system to identify common errors.
dump-autoload Dumps the autoloader.
dumpautoload Dumps the autoloader.
exec Executes a vendored binary/script.
global Allows running commands in the global composer dir ($COMPOSER_HOME).
help Displays help for a command
home Opens the package's repository URL or homepage in your browser.
i Installs the project dependencies from the composer.lock file if present,
or falls back on the composer.json.
info Shows information about packages.
init Creates a basic composer.json file in current directory.
install Installs the project dependencies from the composer.lock file if present,
or falls back on the composer.json.
licenses Shows information about licenses of dependencies.
list Lists commands
outdated Shows a list of installed packages that have updates available, including
their latest version.
prohibits Shows which packages prevent the given package from being installed.
remove Removes a package from the require or require-dev.
require Adds required packages to your composer.json and installs them.
run-script Runs the scripts defined in composer.json.
search Searches for packages.
self-update Updates composer.phar to the latest version.
selfupdate Updates composer.phar to the latest version.
show Shows information about packages.
status Shows a list of locally modified packages, for packages installed from
source.
suggests Shows package suggestions.
u Upgrades your dependencies to the latest version according to
composer.json, and updates the composer.lock file.
update Upgrades your dependencies to the latest version according to
composer.json, and updates the composer.lock file.
upgrade Upgrades your dependencies to the latest version according to
composer.json, and updates the composer.lock file.
validate Validates a composer.json and composer.lock.
why Shows which packages cause the given package to be installed.
why-not Shows which packages prevent the given package from being installed.
$
今回は,次のようなモジュールをインストール.
環境変数はこちら.
Apache httpd 2.4とPHP7.2をインストールする際に,nghttp2が依存関係になっているので,前の記事にあった通り依存関係からnghttp2を全部消す.httpd,php以外のモジュール(.rbファイル)もチェックすることを忘れないように.
brew install tree
brew install wget
brew install cask
brew install cask
brew install gnu-sed
brew install coreutils
brew install app-engine-java
brew install imagemagick
brew install openjpeg
brew install fontconfig
brew install jenkins
brew install nkf
brew install fontconfig
brew install homebrew/apache/httpd24
brew install mariadb
brew install mysql-connector-c
brew install mariadb-connector-c
brew install httpd
brew install php@7.2
brew install cowsay
brew install ffmpeg
環境変数はこちら.
$ cat .bash_profile🆑
PS1='\[\e[0;36m\][\h:\u \t \w ]\[\e[0m\]\n\$ '
export COWPATH=/usr/local/Cellar/cowsay/3.04/share/cows
cowsay -f ghostbusters `hostname`
export PATH="/usr/local/opt/gettext/bin:$PATH"
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/sqlite/bin:$PATH"
export PATH="/usr/local/opt/sphinx-doc/bin:$PATH"
#php7.2
export PATH="/usr/local/opt/curl-openssl/bin:$PATH"
export PATH="/usr/local/opt/icu4c/bin:$PATH"
export PATH="/usr/local/opt/icu4c/sbin:$PATH"
export PATH="/usr/local/opt/libpq/bin:$PATH"
export PATH="/usr/local/opt/php@7.2/bin:$PATH"
export PATH="/usr/local/opt/php@7.2/sbin:$PATH"
$
memory:2628:35: note: candidate template ignored: could not match 'auto_ptr' against 'unique_ptr'
- カテゴリ :
- Apple » MacBook » 2008 13inch 2
- ブロガー :
- ujpblog 2019/4/10 23:42
El Capitan上にHomeBrewでhttpd(Apache httpd 2.4)をインストールしようとすると,エラーがでた.
解決策は・・・OSをバージョンアップしてコンパイラのxcodeも新しくすること.らしいけれど,それができないので問題なのである.
よくみると,httpdに依存関係があるとされているnghttp2(HTTP2.0対応の次世代Webサーバのリファレンス)のコンパイルエラー担っている.今回はこれを使わないので,依存関係から外してしまえば良い.
ビルドの定義は,以下のファイルに書いてある.
ここのnghttpd2の部分を消せば良いです.2箇所あった....バックアップ取ってないので差分が出せない〜...
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2613:9:
note: candidate constructor [with _Up = shrpx::Http2DownstreamConnection,
_Ep = std::__1::default_delete<shrpx::Http2DownstreamConnection>] not viable:
no known conversion from 'std::__1::unique_ptr<shrpx::Http2DownstreamConnection,
std::__1::default_delete<shrpx::Http2DownstreamConnection> >' to
'unique_ptr<shrpx::Http2DownstreamConnection,
std::__1::default_delete<shrpx::Http2DownstreamConnection> > &&'
for 1st argument
unique_ptr(unique_ptr<_Up, _Ep>&& __u,
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2628:35: note:
candidate template ignored: could not match 'auto_ptr' against 'unique_ptr'
_LIBCPP_INLINE_VISIBILITY unique_ptr(auto_ptr<_Up>&& __p,
^
1 error generated.
make[3]: *** [libnghttpx_a-shrpx_client_handler.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/libnghttpx_a-shrpx_config.Tpo .deps/libnghttpx_a-shrpx_config.Po
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
よくみると,httpdに依存関係があるとされているnghttp2(HTTP2.0対応の次世代Webサーバのリファレンス)のコンパイルエラー担っている.今回はこれを使わないので,依存関係から外してしまえば良い.
ビルドの定義は,以下のファイルに書いてある.
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/httpd.rb
すっかりiPadしか使わなくなったカミさんのMacBook 2008をスリープから解除してみた.
1472日前! まるまる4年前か.
pluto:~ kamisan$ uptime
17:09 up 1472 days, 5:22, 2 users, load averages: 0.98 0.60 0.47
pluto:~ kamisan$
HomeBrewでインストールしたパッケージに関連するパスを設定.MANPATHも.
MANPATH設定してもマニュアルなんて見ないような気がするけどね.インターネットがあるからさ.
export PATH="/usr/local/opt/openssl/bin:$PATH"
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/apr-util/bin:$PATH"
export PATH="/usr/local/opt/apr/bin:$PATH"
export PATH="/usr/local/opt/openssl/bin:$PATH"
export PATH="/usr/local/opt/gettext/bin:$PATH"
export PATH="/usr/local/opt/curl/bin:$PATH"
export MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:$MANPATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
export MANPATH="/usr/local/opt/gnu-tar/libexec/gnuman:$MANPATH"
エンジニアっぽい環境を作るためにインストールしたものメモ.パッケージマネージャはHomeBrewです.
今回,inetutilsが追加.macOS High Sierraからは,TELNETとFTPを喋るコマンドラインツールが排除されたので,それらを入れるため.iTerm2があればいいんじゃないかと思うけれど,まだまだTELNET/FTPは必要です.うちのYAMAHA RTX1100に接続するにはTELNET必要だしね.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install tree
brew install wget
brew install curl
brew install cask
brew install gnu-sed
brew install coreutils
brew install imagemagick
brew install openjpeg
brew install fontconfig
brew install nkf
brew install homebrew/apache/httpd24
brew install gnu-sed
brew install gnu-tar
brew install openjpeg
brew install inetutils
brew tap
brew tap homebrew/apache
brew cask install java
brew cask install iterm2
修理したMacBookが返ってきました.
1.8日にAppleStoreで注文
Storeといってもオンライン店舗で嫁さんの許可を取って深夜に注文.
2.10日午前中に到着
サーバOSを入れる為にDVDメディアを入れたら,高周波の異音が.
3.13日の午前中に電話
連休が明けてから電話連絡.
前回書いた通り,電話かけて24分弱で手続き終了.
4.ステータスメール到着
電話が終わってから30分以内くらいに修理依頼を受け付けたとメールが到着.
5.15日の午前中に集荷
この時,クロネコでしたが専用の箱が未だ届いてないということで,名刺サイズの受取チケットを置いて本体だけ持って帰りました.
6.16日の17時
修理完了して配送したとメールが到着.
7.17日の午前中
修理から戻ってきました. 修理伝票を見るとドライブ異常音が確認され,交換したとかいてありました. ドライブの交換だけならすぐですが,最初に電話した時に聞いたのですが,その他の部分も一通りテストするのだそうです.(その家庭でHDDの中身が消える可能性もあるので,説明を受けた後同意が必要)
アップルが利用している業者は昔は福山通運でしたが,今はクロネコヤマトで,今回ノートパソコン輸送船用の梱包状態を初めて見たのですが,最低限の資材で十分な精密機械のガードが行われていますね.感心しました.
色々なものを修理してきましたが,ツインバードとアップルは好印象です. 三洋電機も少し保証期間切れている洗濯機を無料で修理してくれた事があるので気持ちよかったなぁ.
1.8日にAppleStoreで注文
Storeといってもオンライン店舗で嫁さんの許可を取って深夜に注文.
2.10日午前中に到着
サーバOSを入れる為にDVDメディアを入れたら,高周波の異音が.
3.13日の午前中に電話
連休が明けてから電話連絡.
前回書いた通り,電話かけて24分弱で手続き終了.
4.ステータスメール到着
電話が終わってから30分以内くらいに修理依頼を受け付けたとメールが到着.
5.15日の午前中に集荷
この時,クロネコでしたが専用の箱が未だ届いてないということで,名刺サイズの受取チケットを置いて本体だけ持って帰りました.
6.16日の17時
修理完了して配送したとメールが到着.
7.17日の午前中
修理から戻ってきました. 修理伝票を見るとドライブ異常音が確認され,交換したとかいてありました. ドライブの交換だけならすぐですが,最初に電話した時に聞いたのですが,その他の部分も一通りテストするのだそうです.(その家庭でHDDの中身が消える可能性もあるので,説明を受けた後同意が必要)
アップルが利用している業者は昔は福山通運でしたが,今はクロネコヤマトで,今回ノートパソコン輸送船用の梱包状態を初めて見たのですが,最低限の資材で十分な精密機械のガードが行われていますね.感心しました.
色々なものを修理してきましたが,ツインバードとアップルは好印象です. 三洋電機も少し保証期間切れている洗濯機を無料で修理してくれた事があるので気持ちよかったなぁ.
オンラインのAppleStoreでMacBookを2台購入し,先週土曜日10/10に届いたのですが,うち一台のDVDドライブにメディアを挿入すると異音が・・・

異音は高周波の不快な回転音で明らかにおかしく,同じ機種が2台あって正常状態と比べられるので,Appleに修理を依頼する事にしました.
Appleの初期不良交換は初めてです.DE×Lは初期不良に頻繁に遭遇しましたね...
電話で修理サポートに電話すると「iPodの方は1を.iPhoneの方は2を.その他の方は3を」という音声ガイダンスが流れます. Macは「その他」扱いか・・・
結局電話が通じてから手続きが終わるまで23分28秒かかりました.
システム構成等を確認する為にシリアル番号が必要なのですが,アップルメニューから[詳しい情報]ボタンを押してシステムプロファイラを呼び出し,ハードウェアを選択するとシリアルが表示されるので,これを準備しておくと良いでしょう.(OSが起動する場合に限られますが)
実際の修理ですが,次の様な2つの選択肢が有りました.
1.銀座か渋谷のアップルストアに持ち込むと,修理が必要かどうか判断してもらえる.
2.そのまま修理工場に送っても修理が必要と判断されない場合がある.
店舗のある渋谷にも銀座にも行く用事が無いので,取りに来てもらう事にしました. 最短が明後日の15日という事でそれでお願いしました.
ピックアップは,業者が専用のケース?を持ってくるらしいので,箱等は不要との事でした.
DE×Lには何度も故障修理連絡した事があるのですが,融通が利かなくて頭に来る事も多かったのですが,今回はスムースに事が進みました.思ったより時間がかかってましたがイライラすることもない対応でした.
あとはちゃんと修理交換されるか否かでしょうか. 修理となれば,ピックアップ後7日〜10日ということでした.

異音は高周波の不快な回転音で明らかにおかしく,同じ機種が2台あって正常状態と比べられるので,Appleに修理を依頼する事にしました.
Appleの初期不良交換は初めてです.DE×Lは初期不良に頻繁に遭遇しましたね...
電話で修理サポートに電話すると「iPodの方は1を.iPhoneの方は2を.その他の方は3を」という音声ガイダンスが流れます. Macは「その他」扱いか・・・
結局電話が通じてから手続きが終わるまで23分28秒かかりました.
システム構成等を確認する為にシリアル番号が必要なのですが,アップルメニューから[詳しい情報]ボタンを押してシステムプロファイラを呼び出し,ハードウェアを選択するとシリアルが表示されるので,これを準備しておくと良いでしょう.(OSが起動する場合に限られますが)
実際の修理ですが,次の様な2つの選択肢が有りました.
1.銀座か渋谷のアップルストアに持ち込むと,修理が必要かどうか判断してもらえる.
2.そのまま修理工場に送っても修理が必要と判断されない場合がある.
店舗のある渋谷にも銀座にも行く用事が無いので,取りに来てもらう事にしました. 最短が明後日の15日という事でそれでお願いしました.
ピックアップは,業者が専用のケース?を持ってくるらしいので,箱等は不要との事でした.
DE×Lには何度も故障修理連絡した事があるのですが,融通が利かなくて頭に来る事も多かったのですが,今回はスムースに事が進みました.思ったより時間がかかってましたがイライラすることもない対応でした.
あとはちゃんと修理交換されるか否かでしょうか. 修理となれば,ピックアップ後7日〜10日ということでした.