UJP - Appleカテゴリのエントリ

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

ブログ - Appleカテゴリのエントリ

CHARGE + SYNC DOCK STATION DE RECHARGE ET DE SYNCHRONISATION

カテゴリ : 
Apple » iPhone
ブロガー : 
ujpblog 2019/4/22 23:58
 4年ぶりにiPhone用のドックを買って見た.あきばおーで496円.上海問屋で買った時も同じ値段というか,500円くらいになったら買ってもいいかなって.


 対応は,iPhone 5以降でパッケージにはiPhone Xまで書いてある.とりあえず,コネクタが長いのでiPhoneをケースに入れておいても十分刺さりますね.

 充電しかしてないけれど,「このケーブルは対応してません」というのも出ないで問題ないようです.
 1つ難点を言うとすると,本体が軽いので抜くときにDockを押さえる必要おがあると言うことかなぁ.あとは耐久性か.

USB3.0でRAID0のベンチマーク RS-EC32-U3RXを使って

カテゴリ : 
Apple » Mac周辺機器
ブロガー : 
ujpblog 2019/4/22 1:48
 ラトックのRS-EC32-U3RXというRAID0,RAID1を構成できるハードディスクケースを買って,RAID0を構築して,Blackmagic DesignのDisk Speed Testを使って性能を計測.
 折角なので,RAID0に構成する前のシングルドライブ状態も計測した.

 今回用いたのは,MacBook Pro 2015で,Seagateの6TBドライブを使いました.

 まずはシングルドライブから.ディスク1を選択.


Disk1

 200MB/s近く出ている模様.続いて,ディスク2.


Disk2

 同じく200MB/s程度.Disk1との差は,誤差の範囲.

 そして同じディスクを用いてRAID0にしたドライブを使ってテスト.


 300MB/s程度担っている.1.5倍か.十分速いね.

開封記録を載せておきました.

hexoをインストール

カテゴリ : 
Apple » MacBook » 2008 13inch 1
ブロガー : 
ujpblog 2019/4/19 0:26
 静的コンテンツ生成ツールで,以前HUGOを試して見たけれど,今回はHexo(ヘクソ)を試して見る.名前が,声に出して言いにくいなぁ...

 まずは,最初にnode.jsのバージョンを確認.
$ node -v🆑
v11.14.0
$ npm -v🆑
6.7.0
$
 npmを使って,インストールを実施.

$ npm install hexo-cli -g🆑
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied🈁, access '/usr/local/lib/node_modules'
npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules']
npm ERR!   stack:
npm ERR!    "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as
 the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please
 double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/server/.npm/_logs/2019-04-18T15_06_08_043Z-debug.log
$
 権限不足らしい.sudoで実行.
$ sudo npm install hexo-cli -g🆑

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo

> fsevents@1.2.8 install /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
> node install

node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.8 and node@11.14.0
 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied,
 mkdir '/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents/lib'
gyp WARN EACCES user "root" does not have permission to access the dev dir
 "/Users/server/.node-gyp/11.14.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir
 "/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir
 '/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents/.node-gyp'
gyp ERR! System Darwin 15.6.0
gyp ERR! command "/usr/local/bin/node"
 "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
 "configure" "--fallback-to-build"
 "--module=/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
/lib/binding/Release/node-v67-darwin-x64/fse.node"
 "--module_name=fse" "--module_path=/usr/local/lib/node_modules/hexo-cli
/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64"
 "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0"
 "--node_napi_label=node-v67"
gyp ERR! cwd /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
gyp ERR! node -v v11.14.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node
 /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
 configure --fallback-to-build
 --module=/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
/lib/binding/Release/node-v67-darwin-x64/fse.node --module_name=fse
 --module_path=/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
/lib/binding/Release/node-v67-darwin-x64 --napi_version=4
 --node_abi_napi=napi --napi_build_version=0
 --node_napi_label=node-v67' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous>
 (/usr/local/lib/node_modules/hexo-cli/node_modules
/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:193:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:999:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit
 (internal/child_process.js:266:5)
node-pre-gyp ERR! System Darwin 15.6.0
node-pre-gyp ERR! command "/usr/local/bin/node"
 "/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
/node_modules/node-pre-gyp/bin/node-pre-gyp" "install"
 "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
node-pre-gyp ERR! node -v v11.14.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm
/node_modules/node-gyp/bin/node-gyp.js
 configure --fallback-to-build --module=/usr/local/lib/node_modules
/hexo-cli/node_modules/fsevents/lib/binding/Release
/node-v67-darwin-x64/fse.node --module_name=fse
 --module_path=/usr/local/lib/node_modules/hexo-cli/node_modules
/fsevents/lib/binding/Release/node-v67-darwin-x64 --napi_version=4
 --node_abi_napi=napi --napi_build_version=0
 --node_napi_label=node-v67' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8
 (node_modules/hexo-cli/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8
 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ hexo-cli@1.1.0
added 225 packages from 434 contributors in 11.876s
$
 まだまだエラー出ているなぁ...
 unsafe-permオプションをつける.
$ sudo npm install hexo-cli -g --unsafe-perm🆑
/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo

> fsevents@1.2.8 install /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
> node install

node-pre-gyp WARN Using needle for node-pre-gyp https download
[fsevents] Success: "/usr/local/lib/node_modules
/hexo-cli/node_modules/fsevents/lib/binding/Release
/node-v67-darwin-x64/fse.node" is installed via remote
+ hexo-cli@1.1.0
added 68 packages from 33 contributors and updated 1 package in 6.508s
$
 問題なくインストール完了した模様.

 ちなみに,最初からsudoのunsafe-permオプションつけて実行したものがこちら.

$ sudo npm install hexo-cli -g --unsafe-perm🆑
Password:🆑
/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo

> fsevents@1.2.8 install /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
> node install

node-pre-gyp WARN Using needle for node-pre-gyp https download
[fsevents] Success: "/usr/local/lib/node_modules/hexo-cli/node_modules
/fsevents/lib/binding/Release/node-v67-darwin-x64
/fse.node" is installed via remote
+ hexo-cli@1.1.0
added 293 packages from 458 contributors in 11.245s
$
 軽くワーニング出ているけど,まぁいいか.

Node.js 11.14.0 インストール

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/19 0:04
 作業ログ的な.

https://nodejs.org/ja/













 インストールを確認.
$ node -v🆑
v11.14.0🈁
$ npm -v🆑
6.7.0🈁
$

pokemonsay

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/18 23:49
 やりすぎだと思うは,この世界.SLコマンドあたりから相当な発展?が行われているようだ.

 cowsayのポケモン版があるというので.流石に?Brewには入ってなかったので,Githubからクローンしてインストール.
$ git clone http://github.com/possatti/pokemonsay🆑
Cloning into 'pokemonsay'...
warning: redirecting to https://github.com/possatti/pokemonsay/
remote: Enumerating objects: 423, done.
remote: Total 423 (delta 0), reused 0 (delta 0), pack-reused 423
Receiving objects: 100% (423/423), 257.11 KiB | 87.00 KiB/s, done.
Resolving deltas: 100% (358/358), done.
$
 無事クローンできたので,インストール.
$ cd pokemonsay🆑
$ ./install.sh🆑
The files were installed to '/Users/server/.pokemonsay/'.
A 'pokemonsay' script was created in '/Users/server/bin/'.
A uninstall script was created in '/Users/server/.pokemonsay/'.
It may be necessary to logout and login back again in order to have the
 'pokemonsay' available in your path.
$
 /usr/local/binじゃなくて,ユーザのローカルに入るのね.ご利用に注意ってことかなぁ.
 そして実行して見る.
$ ~/bin/pokemonsay Hello🆑
 _______
< Hello >
 -------
           \
            \
             \
              \
   ▄▄▄▄▄▄▄▄
 ▄▄
 ▄▄▄ ▄▄▄
 ▀▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄
   ▄▄▄▄
   ▀▄▄▄ ▄▀
     ▀▄▄▀

Kakuna
$ ~/bin/pokemonsay Hello🆑
 _______
< Hello >
 -------
           \
            \
             \
              \
             ▄▄▄
            ▄▄ ▄▄▄
     ▄▄▄       ▄▄▀
   ▄▄  ▄▄▄▄▄▄▄▄▄▀
    ▄ ▄▄▄▄ ▄▄▄  ▄▄
     ▄▄▄▄   ▄    ▄▄
  ▄▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄  ▄  ▄▀
 ▀▀▀  ▄▄▄▄▄▄ ▄   ▄ ▄▄
          ▄▄▄▄▄▄▄▀
     ▀▄▄▄▄ ▄▀▀   ▄▄▄▀
       ▀▀ ▀▀     ▀▄▀

Magikarp
$
 おおおお.ランダムか.


 英語でスペルを知っていれば,-pオプションで指定できるそうだ...

asciiquarium

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/18 23:31
 いいのを教えてもらった第2弾.これは実用的ではない,とおもうけど.

 まずは,どんなものか確認.
$ brew info asciiquarium🆑
asciiquarium: stable 1.1 (bottled)
Aquarium animation in ASCII art
https://robobunny.com/projects/asciiquarium/html/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/asciiquarium.rb
==> Analytics
install: 203 (30 days), 628 (90 days), 2,189 (365 days)
install_on_request: 201 (30 days), 626 (90 days), 2,166 (365 days)
build_error: 0 (30 days)
$
 これもサクッとHomeBrewでインストール.
$ brew install asciiquarium🆑
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://homebrew.bintray.com
/bottles/asciiquarium-1.1_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring asciiquarium-1.1_1.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/asciiquarium/1.1_1: 17 files, 369.2KB
$
 実行して見る.


 んー,動いてないと寂しい...海上や海中に時より特殊生物やイベントが発生したりして,意外と目が離せないよ.

figlet

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/18 23:26
 いいのを教えてもらった.このツール.
$ brew info figlet🆑
figlet: stable 2.2.5 (bottled)
Banner-like program prints strings as ASCII art
http://www.figlet.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/figlet.rb
==> Analytics
install: 1,327 (30 days), 4,256 (90 days), 13,780 (365 days)
install_on_request: 1,317 (30 days), 4,237 (90 days), 13,732 (365 days)
build_error: 0 (30 days)
$
 brewに対応しているのでサクッとインストール.
$ brew install figlet🆑
Updating Homebrew...
==> Auto-updated Homebrew!

〜略〜

==> Downloading https://homebrew.bintray.com/bottles/figlet-2.2.5.el_capitan.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/94/943067dae95de58518b20334aec4
01cf5fd24866ff77315c0d7bd8b5d4ab0011?__gda__=exp=1555597549~hm
######################################################################## 100.0%
==> Pouring figlet-2.2.5.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/figlet/2.2.5: 676 files, 9.4MB
$
 パスを確認して.
$ which figlet🆑
/usr/local/bin/figlet🈁
$
 早速使って見る.
$ figlet Hello🆑
 _   _      _ _
| | | | ___| | | ___
| |_| |/ _ \ | |/ _ \
|  _  |  __/ | | (_) |
|_| |_|\___|_|_|\___/

$
 昔,いや今もbannerコマンドというのがあって,こういうアスキーアートをログイン前画面に出していたりしたけれど,現在の?bannerコマンドだと横断幕印刷用みたいな感じになってしまう.
$ /usr/local/bin/figlet `hostname`🆑
       _       _         _                 _
 _ __ | |_   _| |_ ___  | | ___   ___ __ _| |
| '_ \| | | | | __/ _ \ | |/ _ \ / __/ _` | |
| |_) | | |_| | || (_) || | (_) | (_| (_| | |
| .__/|_|\__,_|\__\___(_)_|\___/ \___\__,_|_|
|_|
$
 NetCommons3をインストルしようとしたのだけれど,エラーが.
$ cd /netcommons/htdocs/app/Console🆑
$ ./cake install.install🆑
---------------------------------------------------------------
NetCommons Install
---------------------------------------------------------------
[S]tart
[H]elp
[Q]uit
What would you like to do? (S/H/Q)
[Q] > S🆑
Please entry base url.
> netcommons.test.jp🆑
Current language? (en/ja)
[ja] > ja🆑
Success: PHP(7.2.17) 正常
Success: pdo_mysql(7.2.17) 正常
Database configuration's datasource? (Mysql)
[Mysql] >🆑
Database configuration's host?
[localhost] >🆑
Database configuration's port?
[3306] >🆑
Database configuration's database?
[nc3] >🆑
Database configuration's prefix?
[] >🆑
Database configuration's login?
> root🆑
Database configuration's password?
> password🆑
2019-04-14 14:35:29 Info: DB Connected
2019-04-14 14:35:29 Info: Database nc3 for Database/Mysql created successfully
2019-04-14 14:35:29 Info: [Migrations.migration] Start migrating all plugins
2019-04-14 14:35:29 Info: [migration] Start migrating "Files" for master connection
2019-04-14 14:35:29 Info: [migration]   cd /netcommons/htdocs/app &&
 Console/cake Migrations.migration run all -p Files -c master -i master 2>&1
2019-04-14 14:35:30 Info: [migration]   Cake Migration Shell
2019-04-14 14:35:30 Info: [migration]   -------------------------------------------
--------------------
2019-04-14 14:35:30 Info: [migration]   PHP Fatal error:
  Cannot use 'object' as class name as it is reserved in
 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Core/Object.php on line 18
2019-04-14 14:35:30 Info: [migration]   Fatal Error Error: Cannot use 'object'
 as class name as it is reserved in [/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Core/Object.php, line 18]
2019-04-14 14:35:30 Info: [migration]
2019-04-14 14:35:30 Info: [migration]   2019-04-14 14:35:30 Error: Cannot use
 'object' as class name as it is reserved in [/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Core/Object.php, line 18]
2019-04-14 14:35:30 Info: [migration]
2019-04-14 14:35:30 Info: [migration] Failure migrated "Files" for master connection
2019-04-14 14:35:30 Info: [migration] Start migrating "Users" for master connection

〜略〜

2019-04-14 14:35:42 Info: [migration]
   2019-04-14 14:35:42 Error: Cannot use 'object' as class name as it is reserved in
 [/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Core/Object.php, line 18]
2019-04-14 14:35:42 Info: [migration]
2019-04-14 14:35:42 Info: [migration] Failure migrated "Wysiwyg" for master connection
Error: SQLSTATE[42S02]: Base table or view not found: 1146 Table
 'nc3.site_settings' doesn't exist
#0
/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Datasource/DboSource.php(502):
 PDOStatement->execute(Array)
#1 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Datasource/Database/Mysql.php
(348): DboSource->_execute('SHOW FULL COLUM...')
#2 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Model.php(1397):
 Mysql->describe(Object(SiteSetting))
#3 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Datasource/DboSource.php(2199):
 Model->schema()
#4 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Datasource/Database/Mysql.php
(409): DboSource->_prepareUpdateFields(Object(SiteSetting), Array, false, true)
#5 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Model/Model.php(2672):
 Mysql->update(Object(SiteSetting), Array, NULL, Array)
#6 /netcommons/htdocs/app/Plugin/Install/Utility/InstallUtil.php(616):
 Model->updateAll(Array, Array)
#7 /netcommons/htdocs/app/Plugin/Install/Console/Command/Task/InstallMigrationsTask.php(48):
 InstallUtil->installMigrations('master', Array)
#8 /netcommons/htdocs/app/Plugin/Install/Console/Command/InstallShell.php(90):
 InstallMigrationsTask->execute()
#9 /netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Console/Shell.php(462):
 InstallShell->main()
#10 
/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Console/ShellDispatcher.php(219):
 Shell->runCommand(NULL, Array)
#11 
/netcommons/htdocs/vendors/cakephp/cakephp/lib/Cake/Console/ShellDispatcher.php(66):
 ShellDispatcher->dispatch()
#12 /netcommons/htdocs/app/Console/cake.php(35): ShellDispatcher::run(Array)
#13 {main}
$
 これはNetCommons3が使っているフレームワーク,CakePHP2のクラス名が重複してしまっているからだそうです.  これは,次のファイルを編集.
app/Plugin/Migrations/Lib/CakeMigration.php
 この変更.
  1 <?php
  2 /**
  3  * Copyright 2009 - 2014, Cake Development Corporation (http://cakedc.com)
  4  *
  5  * Licensed under The MIT License
  6  * Redistributions of files must retain the above copyright notice.
  7  *
  8  * @copyright Copyright 2009 - 2014, Cake Development Corporation (http://cakedc.com)
  9  * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 10  */
 11
 12 App::uses('CakeSchema', 'Model');
 13
 14 /**
 15  * Base Class for Migration management
 16  */
 17 class CakeMigration extends CakeObject { 🈁 ObjectからCakeObjectに変更した
 18
 19 /**
 インストールをリトライしてみる.
2019-04-15 13:37:19 Info: [bower] Successfully bower install angular-nvd3#>=0.1.1 for Registrations
2019-04-15 13:37:19 Info: [bower] Start bower install visualcaptcha.jquery#>=0.0.5 for VisualCaptcha
sh: --allow-root: command not found
<?php
2019-04-15 13:37:19 Info: [bower] Successfully bower install visualcaptcha.jquery#>=0.0.5 for VisualCaptcha
2019-04-15 13:37:19 Info: [bower] Start bower install components/MathJax#>=2.6 for Wysiwyg
sh: --allow-root: command not found
2019-04-15 13:37:19 Info: [bower] Successfully bower install components/MathJax#>=2.6 for Wysiwyg
2019-04-15 13:37:19 Info: [bower] Start bower install jquery.simplePagination#* for Wysiwyg
sh: --allow-root: command not found
2019-04-15 13:37:19 Info: [bower] Successfully bower install jquery.simplePagination#* for Wysiwyg
NetCommons Login id?
> administrator🆑
NetCommons Login password?
> password🆑
Actival languages? (en,ja/en/ja)
[ja] > ja🆑
<?php
Warning Error: get_class() expects parameter 1 to be object, null given in
 [/netcommons/htdocs/app/Plugin/Auth/Model/AutoUserRegistMail.php, line 54]

2019-04-15 13:38:32 Warning: get_class() expects parameter 1 to be object, null given in
 [/netcommons/htdocs/app/Plugin/Auth/Model/AutoUserRegistMail.php, line 54]
Install success.
$
 いくつかワーニングは出ているけれど,インストールはできた模様.
 NetCommons3をインストールしようとたら,次のようなエラーがでた.

$ ./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] >
 ImageMagickはHomeBrewでインストールしたはずなのだが.
$ 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🈁
$
 ありました.PHP.INIも変更したと書いてあるので,確認.
$ 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] >
 エラーが出なくなった.これで先に進めるかなぁ.

PHP7.2が使えるまで

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/12 20:19
 brewでインストールしたphp7.2の詳細情報を確認.
$ 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)
$
 DirectoryIndexの付け替え.phpの優先度を先にするのと,PHPのモジュールと拡張子の設定を追加.
 作業前にファイルのバックアップを.
$ cp /usr/local/etc/httpd/httpd.conf /usr/local/etc/httpd/httpd.conf.v001🆑
$
 編集した結果のdiffをとる.
$ 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
$
 PHPが動くか確認.
$ 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();
?>
$
 test.txtに結果を保存するようにして,curlコマンドを実行する.
$ 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でインストールしたhttpdを起動する

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/12 19:46
 brew infoで,インストールした時の情報を確認.
$ 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)
$
 nghttp2が入ってない.今回はコンパイルできないのだから仕方ない.
 ドキュメントを配置する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🈁
 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>
$
SSLの設定を確認.
$ 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コマンドでアクセスしてみる.
$ curl localhost:8080🆑
<html><body><h1>It works!</h1></body></html>
$
It worksが返ってきた.ログを確認.
$ 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
$
 問題なくアクセスログが記録されていました.

mysql_secure_installationを実行する

カテゴリ : 
Apple » MacBook » 2008 13inch 1
ブロガー : 
ujpblog 2019/4/11 23:19
 Rasberry Piにmariadbをインストールした時にも実行したmysql_secure_installationを実行する.
 まずはコマンドの場所を確認.
$ find /usr/local/Cellar/mariadb/10.3.14|grep secure🆑
/usr/local/Cellar/mariadb/10.3.14/bin/mysql_secure_installation🈁
/usr/local/Cellar/mariadb/10.3.14/share/man/man1/mysql_secure_installation.1
$
 あった.
$ /usr/local/Cellar/mariadb/10.3.14/bin/mysql_secure_installation🆑

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):🈁
 rootのパスワードを入力.インストール直後は入ってないので,カラでエンター.
Enter current password for root (enter for none):🆑
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n]🈁
 rootユーザのパスワードをセットするので,yを返答.
Set root password? [Y/n] y🆑
New password:🆑
Re-enter new password:🆑
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]🈁
 匿名ユーザがあるらしいので,それを削除する.
Remove anonymous users? [Y/n] y🆑
 ... Success!🈁

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]🈁
 rootユーザはリモートから接続できないようにするので,yを選択.
Disallow root login remotely? [Y/n] y🆑
 ... Success!🈁

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]
 testという名前のデータベースがあるようなので,削除するのでyを選択.
Remove test database and access to it? [Y/n] y🆑
 - Dropping test database...
 ... Success!🈁
 - Removing privileges on test database...
 ... Success!🈁

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]
 testデータベースを削除した際に,権限も削除したので権限情報をリロードするというので,yを選択.
Reload privilege tables now? [Y/n] y🆑
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!🈁
$
 最低限のセキュアセットアップができた模様.
 接続してみる.
$ mysql -uroot -p🆑
Enter password:🆑
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 19
Server version: 10.3.14-MariaDB Homebrew

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>
 存在しているデータベースを確認.
MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.003 sec)

MariaDB [(none)]>
 ユーザを確認.
MariaDB [(none)]> select host,user from user;
ERROR 1046 (3D000): No database selected
MariaDB [(none)]>
 データベースが選択されてないとエラーが.データベースを指定して実行.
MariaDB [(none)]> select host,user from mysql.user;
+-----------+------+
| host      | user |
+-----------+------+
| 127.0.0.1 | root |
| ::1       | root |
| localhost | root |
+-----------+------+
3 rows in set (0.010 sec)

MariaDB [(none)]>
 それでプロンプトがnoneになっているのか.
 ではデータベースを変更してもう一回.
MariaDB [(none)]> use mysql🆑
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [mysql]> select host,user from user;🆑
+-----------+------+
| host      | user |
+-----------+------+
| 127.0.0.1 | root |
| ::1       | root |
| localhost | root |
+-----------+------+
3 rows in set (0.008 sec)

MariaDB [mysql]>
 抜けて終了.
MariaDB [mysql]> quit🆑
Bye
$
 前回はパスワード長の指定などがあったけれど今回はそれがありませんでした.今時のトレンドなのかな.
 バージョンを確認.
$ 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)
$
 my.cnfを確認.
$ cat /etc/my.cnf🆑
cat: /etc/my.cnf: No such file or directory
$
 ない.my.cnfの場所を確認.まずはヘルプを見てみる.
$ 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
$
 ready for connections.と出ているので,問題ない模様.
 この時代にEl Capitanに無理やりbrewでインストールしたPHP7.2のバージョンを確認.
$ 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
$
 CakePHPを動かすには,compserというものが必要らしい.Brewにあるか確認.
$ 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.
$

brew

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/11 22:06
今回は,次のようなモジュールをインストール.
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"

$
 Apache httpd 2.4とPHP7.2をインストールする際に,nghttp2が依存関係になっているので,前の記事にあった通り依存関係からnghttp2を全部消す.httpd,php以外のモジュール(.rbファイル)もチェックすることを忘れないように.
 El Capitan上にHomeBrewでhttpd(Apache httpd 2.4)をインストールしようとすると,エラーがでた.

/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
 解決策は・・・OSをバージョンアップしてコンパイラのxcodeも新しくすること.らしいけれど,それができないので問題なのである.

 よくみると,httpdに依存関係があるとされているnghttp2(HTTP2.0対応の次世代Webサーバのリファレンス)のコンパイルエラー担っている.今回はこれを使わないので,依存関係から外してしまえば良い.

 ビルドの定義は,以下のファイルに書いてある.
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/httpd.rb
 ここのnghttpd2の部分を消せば良いです.2箇所あった....バックアップ取ってないので差分が出せない〜...

MacBook 2008 LateのHDDをSSD(CSSD-S6i512HG7V)に交換する

カテゴリ : 
Apple » MacBook » 2008 13inch 1
ブロガー : 
ujpblog 2019/4/8 0:02
 カミさん専用で2009年に購入したMacBook 2008 Lateですが,ずっと眠っているのでテコ入れすることに.再活性化か.
 それで,メモリは最大の8GBに搭載済みだったので,HDDをSSDしてみることに.


 特にこだわりはなかったのだけれど,秋葉原のTSUKUMOで一番安かったCFDのもので512GBが7,538円(税込)でした.1GBあたり14.7円でした.店頭で「中身は,まんまIntelです」と書いてあったけれど,実際インテルでした.
 内容物は本体以外に,7.5mm→9.5mmスペーサーと2.5インチを3.5インチに変換する金属製のマウンターも.デスクトップ用として買うにも良いってことか.


 MacBook 2008のハードディスクの交換は,バッテリパックのケースを外して,固定している3本のネジをとるだけだけど,PH000というドライバが必要です.
 取り出してみたHDDと今回購入したSSDを比べてみたけれど,サイズに差がありました.重量も差がある.SSDは軽い.


 1〜2年前に秋葉原で購入したデジタルノギスを取り出してみました.SR44という電池が2つ付属.早速測ってみます.


 写真左上からHDDが9.67mm,SSDが6.15mm.HDDは9.5mmサイズの中ではオーバー気味で,SSDは7.5mmより小さいと言うことでした.
 スペーサは2.4mmで,SSDにスペーサを取り付けても8.5mmでした.


 HDDについていたネジをSSDに移植して再度セットして蓋を閉めたら終了.

4年ぶり

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/7 16:40
 すっかりiPadしか使わなくなったカミさんのMacBook 2008をスリープから解除してみた.
pluto:~ kamisan$ uptime
17:09  up 1472 days,  5:22, 2 users, load averages: 0.98 0.60 0.47
pluto:~ kamisan$
 1472日前! まるまる4年前か.

Apple初売り,Apple Storeのギフトカードの謎

カテゴリ : 
Apple
ブロガー : 
ujpblog 2019/3/10 23:00
 去年の正月に「2018年のApple初売り」でMacBook Proを購入したのだけれど,クレジットカードの決済の明細が2つに別れていた.
1件目 302,184円
2件目   9,500円
 何故2つに別れているのか...意味がわからん.
 明細を見ると,こうなっている.
注文合計 320,184円
 当然,302,184+9,500は320,184ではなくて,支払い方法に書いてある311,684となるが,じゃぁ,320,184は何なのか...

 今回の購入は,Macを買うと18,000円分のギフトカードがもらえると言う事だったけれど,整理するとこういう事らしい.
・Macの本体から18,000円引きの金額
・18,000円分のギフトカードを買わせられている
 この時,2017年のApple初売りで買った時のギフト券5,500円と3,000円,合計8,500円を使っているのです.

 8,500円は18,000円のギフトの購入代金として相殺されていて,それで9,500円が請求されていると言う事.その前のギフト合計8,500円分の相殺は良いとして,
・18,000円引きのMacを購入
・18,000円分のギフトを購入
 こうなっていると,支払金額は変わらないのでは?! 腑に落ちん...
 ちょっとづつ復旧させているiPhoneだけれど,結局アメリカンエキスプレスのApple Payの再登録はメールが届かないので強制的に削除されてしまった.


 そして,一度は復帰したApple Pay対応のモバイルSuicaだけれど,何度パスワードを入力してもログインできない.アカウントがロックされてしまった.
 色々と調べると,こういう感じ.

・モバイルSuicaでは,8文字以上のパスワードを設定できる.
・ただし,8文字までしかチェックしてなかった.
・2018年9月のアップデートで,8文字以上をチェックするようになった.
・それまでに8文字以上のパスワードを入れていた場合,9文字目以降は切り捨て.
・元々設定したパスワードを入力すると,エラーになる.
・試行回数が5回以上になるとアカウントがロックされる.
・このパスワード長のことは,Q&Aに一時的に掲載されていたが,現在は削除済み.

 この画像を見てもわかる通り,URLを書いたダイアログを表示してもリンクでもないのでこの長いURLを入力してどうしろというのだろう.

 それでアカウントロックを解除するためには電話連絡が必要ということで,電話を.30秒21円かかる050の電話番号に電話して,なかなか通じず7分ほど待って通じてアカウントロックまでに10分ほど.360円の電話代がかかってしまった.東京から川崎に行けちゃう料金だ.

 PASMOがApple Payに対応したら速攻でやめるんだけどなぁ.モバイルSuica.

Apple Payが使えなくて困った

カテゴリ : 
Apple » iPhone
ブロガー : 
ujpblog 2019/2/1 2:01
 iPhone 7 Plusをバッテリ交換にだして一番影響を受けたのは,実はApple Payが使えなかったこと.

 電車に乗り降り,コンビニで買い物.これが制限されただけなのだけれど,

・Suicaチャージがいつでもどこででもできる.(夜中はできない)
・Suicaのカードを持ち歩かなければならない.

 実質,Suicaを持って歩いていれば,数千円以下の決済に困らなくなった感があるけれど,Suicaにチャージするには駅の端末に行かなければならない.これが必要ない.それと,朝,家を出る時に定期入れを持ち歩かない生活になっていたので,忘れる.3回ほど忘れた.1回は駅について気づいた.これはきつい...

 そして修理から戻ってきたのでWalletに登録してあるデータを復帰させう用としているけれど,これが困難になっている.

 Suicaの場合,iCloudにデータをバックアップしておいて,それをリストアするだけで使えるようになった.パスワードをいれろという画面が出ていれてもエラーになって認証されない状態で,パスワードリクエストを送ってもメールが来なかったが,いつの間にかログインできるようになっていた.


 そしてAMEX.最初に登録するときもAMEXの認証メールが来ない現象があったけれど,今もその状態は続いている模様で,10分しか有効でないワンタイムパスワードが3時間遅れで来る.電話認証するしかない模様.

 そして新しくdカードを入手したので,それを登録して観た.iPhoneのカメラでクレジットカードの表面を映し出すと番号が認識されて登録.あっという間にSMSで認証コードが送られてきて決済可能になった.とりあえず,モバイルSuicaに576円しかなかったのでdカードでチャージできた.

 でもちょっと,Suicaの認証エラーがいつの間にか勝手に解消されている件があるので,電車に乗る時にこれが改札をスムースに通れるかがきになる...

iPhone 7 Plusをバッテリ修理にだしてみた その3

カテゴリ : 
Apple » iPhone
ブロガー : 
ujpblog 2019/1/25 1:06
38日前にバッテリ交換依頼をしたiPhone 7 Plusだけれど,全く音沙汰がなかったけれど,3日前に修理開始連絡がきてからは速くて,届きました.


 その前にバッテリの交換を行ったiPhone 6 Plusの時と同じように表面の保護シートが剥がされていました.1700円ほどだった高級保護シートなので,現在のバッテリ交換費用より2000円安いが40日近く待ったことを考えたら,マイナスだろうな.

 当初7日程度予定が38日もかかったのに,詫び文の1つでも入っているかと思ったらそんなこともなく.気になったのは,今回の化粧箱に入っていたAssembled in Chinaというシート.もしかして中国に移送されて修理されたのかな?

iPhone 7 Plusをバッテリ修理にだしてみた その2

カテゴリ : 
Apple » iPhone
ブロガー : 
ujpblog 2019/1/22 23:31
 去年の12月18日にバッテリ交換修理を申し込んだiPhone 7 Plusですが,7〜10日の工期だったので年末に受け取れるかな?と思っていたら,ずっと動きがなく.

 あまりにも遅いのでステータスを確認しても箱を発送したままになっていたけれど,やっと動きがあったとメール通知が来た.


 1月22日に修理センターに到着? 時間通りに取りに来たヤマトが配送に1ヶ月かかったというのか.
 修理の状況を確認するリンクがあったのでクリックしてみた.


 なんと修理が終わった模様.明日くらいには到着しそうだな.

 2017年末に導入され2018年12月31日に終了した29ドルでのバッテリ交換プログラムで 1,100万台のiPhoneのバッテリを交換.これによって新型のiPhoneが売れないのでは無いかという事,業績の下方修正の影響とか言われているけれど,旧型のiPhoneを売り出したりもしているので,やっぱりtouch IDがなくなって顔面認証は使いづらい&値段が高い説が有力なのだと思う.

VirtualBoxでハードディスクの容量を増やす

カテゴリ : 
Apple » Macソフト
ブロガー : 
ujpblog 2019/1/11 23:09
 現在テスト中のWindows 10では,Reserved storage機能というのがあって,更新用に7GBのディスク容量を確保するらしい.こういう場合に64GBマシンを買うと,OSとかソフトで半分の32GBくらい消費してしまうでしょう.

 そして現在,2年前にインストールしてそのまま放置していたVirtualBox上で動かしているWindows 10を順次Windows Updateしているのだけれど,容量が足りなくなった.



 2年前だと32GB程度あれば良いと思ったんだろうな.

 拡張するにはコマンドラインから次のように.
 VBOXManage modifyhdで--resizeでMegabyte単位で拡張するサイズを設定.65535MByteの場合,64GBということ

$ VBOXManage modifyhd /Users/ujpadmin/VirtualBox\ VMs/Windows8.1Pro20160727/名称未設定-disk1.vdi --resize 65535
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

$
 一瞬で終わった. 仮想メディアマネージャで確認してみる.


 よーござんした.
 csrutil disableしてSIP機能をオフにしてVirtual Boxを再インストールしたら,問題なく動きました.
 macOS X 10.13.6 High SierraのMacBook Proに,Virtual Boxをインストールしたのだけれど,仮想サーバを作って起動すると次のようなエラーダイアログが.



 これはmacOSがセキュリティ強化した結果「システム整合性保護 System Integrity Protection (SIP)」の機能によってブロックされている模様.この状態になっていると,そもそも,VirtualBoxのインストールも失敗していることから,アンインストールした上でSIPをオフにする必要があるそう.

 SIPをオフにするには,macOSをリカバリモードで起動した上でターミナルからcsrutil disableとしてオフにする必要がある.ちょっと面倒だなぁ.

BODYGUARDZという保護シートを300円で買ってみた

カテゴリ : 
Apple » Apple Watch
ブロガー : 
ujpblog 2019/1/9 23:00
 秋葉館でストレージを買った時に,ジャンクコーナーがあったので覗いてみたら,Apple Watch用の保護シートが売られていました.


 1550円が300円で.サイズも38mmだし300円ということで他に選択肢もないし迷わず買ってみました.
 パッケージを開けると意外と色々なものが入っていて,タオルとか洗浄のなにかと,ちょっと高級そうなクリーニングクロスと,本体の保護シートが二枚.意外と1550円はぼったくり価格じゃなかったのかもしれない.


 そして貼り付けてみました.これがなんというか,ウェットな触り心地.ねちゃねちゃする.しっとり?.貼り付けも気泡が入ってどうしようもない.厚みがあるので保護シートとしては価値がありそうなんだけれど,画面が点灯している時には違和感は軽減されるけれど,何も表示されてない時は気泡が目立って汚らしい.
 ファッションの一部だと考えたら,ちょっと無いのかもしれない.
 自作の机の角に,ダイソーのクッション材をつけたのだけれど,1ヶ月ほど前からつなぎ目が剥がれるようになってきた.


 机の端っこから設置したら,つなぎ目が,偶然ちょうど腕が当たる部分になったので負荷が高かった模様.なので少し中央からずらした状態で設置し直し.接着剤をとって,これもダイソーで調達した強力スポンジ両面テープを使ってみました.両面テープにあまりがあるから,また剥がれてきても接着しやすいかな.

Appleの初売り2019

カテゴリ : 
Apple
ブロガー : 
ujpblog 2019/1/2 23:00
 たった1日,24時間しか時間がないのだけれど,1月2日は毎年Appleの初売りを楽しみにしていた.2年前は当時最新機種のiPhone 7 PlusとiPhone SEを買ったし,去年はMacBook Pro 15インチを買ったのだけれど,今年は,何も買わなかった.



 買わなかったというか,欲しいものがなかった.買いたいものがなかったので悩むことがなかった.

 元々,初売り福袋は在庫処分的な使われ方をするのが正しいのだけれど,ヨドバシカメラとかビックカメラの福袋を考えると,24時間限定の割に内容がしょぼい.

 iPhoneは最新機種は置いてなくて,iPhone 7やiPhone 8が6000円引き(Apple Storeで使える割引券)なだけだし,最新のApple Watch 4はなくてApple Watch 3だし,他のMacも大胆に値下げしているわけでもない模様.家電量販店で買えば付くはずのポイントもないわけだしね.

iPhone 7 Plusをバッテリ修理にだしてみた

カテゴリ : 
Apple » iPhone
ブロガー : 
ujpblog 2018/12/20 23:00
 約半年前にiPhone 6 Plusのバッテリ交換をしてみたのだけれど,3200円(税別)で交換できるのは2018年12月末までだし,代替えのiPhoneSEも手に入ったので,修理交換に送ってみた.前回はバッテリ交換は3日で返って来たけれど,今回はどうも時間がかかりそうという話.

 それで,以前と同じように応募してみたのだけれど,変なところで引っかかる.


 過去の履歴から,電話番号090-xxxx-yyyyが下敷きで出ているのだけれど,これがエラーになる.090xxxxyyyyにしたりハイフンを入れなおしたりしたが,「有効な電話番号を入れてください」と.
 それでネットで調べたら,なんと先頭のゼロを取れば良いらしい.


 つまり,90-xxxx-yyyyで入力する.正しい電話番号なのか?と思うけれど,まぁ一旦これで進んでみた.


 そして,12月18日に依頼した集荷が,12月20日午前中にクロネコヤマトが来て渡したので,あとは年内に戻ってくるかどうか...
 特別措置で,iPhoneの特定機種のバッテリ交換が3200円でできる期限が12月末に迫っている.ほぼ毎日Apple Store銀座の前を(ポケモンのために)通るので,持ち込めたら嬉しいんだけれど,ジーニアスバーが空いていることがない.iPhone 6 Plusを交換した夏もそうだったので,今もその状況は変わりない.

 そして,何よりもiPhone 6 Plusのバッテリ交換修理した時と状況が違う.以前はバッテリ交換は8800円だったが,現在は3200円に値下げされている.そして2019年1月1日から,5400円に値上げされる.

 8800円が3200円なのでバッテリは劣化しているから交換すべきなのだけれど,3200円から5400円になるだけならその差2200円.

 約2000円で液晶保護シートを買ってつけたのだけれど,前回のiPhone 6 Plusの時に剥がされたので,そう考えると差がなくなってしまう.現在の液晶保護シートは全く問題ないし.

High Sierra環境にmilkocdeを使ってみる

カテゴリ : 
Apple » MacBook Pro » 2011 13inch
ブロガー : 
ujpblog 2018/12/12 1:17
 インストールしたmilkodeがパスが効いているか確認.

gaia:source server$ milk -h🆑
Commands:
  milk add PATH                                         # Add package(s) to milkode Samples: 
milk add /path/to/dir1 milk add /path/to/dir2 /path/to/dir3 milk add /path/to/dir1 -...
  milk cleanup keyword_or_path1 [keyword_or_path2 ...]  # Cleanup garbage records
  milk config [options] KEY VALUE                       # Config package settings. $ milk 
coinfig no_auto_ignore true Configs: no_auto_ignore # Not add package's .gitignore upda...
  milk dir [package1 package2]                          # Print project root directory
  milk dump                                             # Dump records
  milk fav [package1 package2 ...]                      # Add favorite
  milk files                                            # Display package files
  milk grep                                             # Search projects
  milk help [COMMAND]                                   # Describe available commands or one 
specific command
  milk ignore [path ...]                                # Ignore a file or directory
  milk info [package]                                   # Display package information
  milk init [db_dir]                                    # Initialize database directory. If 
db_dir is omitted
  milk list [package1 package2 ...]                     # List package
  milk mcd                                              # Generate `mcd' command
  milk plugins                                          # Display plugins
  milk pwd                                              # Display the current database
  milk rebuild [keyword1 keyword2]                      # Rebuild database
  milk remove keyword_or_path1 [keyword_or_path2 ...]   # Remove package
  milk rm keyword_or_path1 [keyword_or_path2 ...]       # Remove package
  milk setdb [dbpath]                                   # Set default db to dbpath
  milk update [keyword1 keyword2 ...]                   # Update database
  milk web                                              # Startup web interface

Options:
  -h, [--help], [--no-help]        # Help message.
      [--version], [--no-version]  # Show version.
 問題ない模様.
 まず最初に,データベースを作成する.
gaia:source server$ milk init --default🆑
create     : /Users/server/.milkode/milkode.yaml
create     : /Users/server/.milkode/db/milkode.db created.
gaia:source server$
 秒で終わった.

 今回は,適当なソースコードがないので,Apache httpdのソースコードを用意してみた.
gaia:source server$ ls -la🆑
total 0
drwxrwxrwx   8 server  staff  256 12 12 00:50 .
drwx------+  5 server  staff  160 12 12 00:50 ..
drwxr-xr-x@ 19 server  staff  608  6  2  1998 apache_1.3.0
drwxr-xr-x@ 18 server  staff  576  7 19  1998 apache_1.3.1
drwxr-xr-x@ 20 server  staff  640  2 24  2000 apache_1.3.12
drwxr-xr-x@ 20 server  staff  640 10 11  2000 apache_1.3.14
drwxr-xr-x@ 20 server  staff  640  1 27  2001 apache_1.3.17
drwxr-xr-x  31 server  staff  992 12 12 00:50 db
gaia:source server$
 これらのソースコードを登録していく.
gaia:source server$ milk add apache_1.3.0🆑
package    : apache_1.3.0
result     : 1 packages, 416 records, 416 add. (2.2sec)
*milkode*  : 1 packages, 416 records in /Users/server/.milkode/db/milkode.db.
gaia:source server$ milk add apache_1.3.1🆑
package    : apache_1.3.1
result     : 1 packages, 419 records, 419 add. (2.2sec)
*milkode*  : 2 packages, 835 records in /Users/server/.milkode/db/milkode.db.
gaia:source server$ milk add apache_1.3.12🆑
package    : apache_1.3.12
result     : 1 packages, 558 records, 558 add. (2.96sec)
*milkode*  : 3 packages, 1393 records in /Users/server/.milkode/db/milkode.db.
gaia:source server$ milk add apache_1.3.14🆑
package    : apache_1.3.14
result     : 1 packages, 605 records, 605 add. (3.07sec)
*milkode*  : 4 packages, 1998 records in /Users/server/.milkode/db/milkode.db.
gaia:source server$ milk add apache_1.3.17🆑
package    : apache_1.3.17
result     : 1 packages, 631 records, 631 add. (3.27sec)
*milkode*  : 5 packages, 2629 records in /Users/server/.milkode/db/milkode.db.
gaia:source server$
 登録したプロジェクトを確認.
gaia:source server$ milk list🆑
apache_1.3.0
apache_1.3.1
apache_1.3.12
apache_1.3.14
apache_1.3.17
*milkode*  : 5 packages, 2629 records in /Users/server/.milkode/db/milkode.db.
gaia:source server$
 パッケージを登録したら,インデックスを更新.今回は初めてなので,全部更新.
gaia:source server$ milk update --all🆑
package    : apache_1.3.0
package    : apache_1.3.1
package    : apache_1.3.12
package    : apache_1.3.14
package    : apache_1.3.17
result     : 5 packages, 2629 records. (0.52sec)
*milkode*  : 5 packages, 2629 records in /Users/server/.milkode/db/milkode.db.
gaia:source server$
 インデックス化が終了したら,なんでもいいんだけれど,とりあえずNDIGというキーワードを検索してみる.
gaia:source server$ gmilk -a NDIG | head -n 10🆑
apache_1.3.0/src/ap/ap_snprintf.c:110:#define	NDIG	80
apache_1.3.0/src/ap/ap_snprintf.c:112:/* buf must have at least NDIG bytes */
apache_1.3.0/src/ap/ap_snprintf.c:119:    if (ndigits >= NDIG - 1)
apache_1.3.0/src/ap/ap_snprintf.c:120:	ndigits = NDIG - 2;
apache_1.3.0/src/ap/ap_snprintf.c:129:    p1 = &buf[NDIG];
apache_1.3.0/src/ap/ap_snprintf.c:134:	p1 = &buf[NDIG];
apache_1.3.0/src/ap/ap_snprintf.c:140:	while (p1 < &buf[NDIG])
apache_1.3.0/src/ap/ap_snprintf.c:157:    while (p <= p1 && p < &buf[NDIG]) {
apache_1.3.0/src/ap/ap_snprintf.c:162:    if (p1 >= &buf[NDIG]) {
apache_1.3.0/src/ap/ap_snprintf.c:163:	buf[NDIG - 1] = '\0';
gaia:source server$
 どのソースコードの何行目に記載があるか確認できた.

High Sierra環境にmilkocdeをインストールする

カテゴリ : 
Apple » MacBook Pro » 2011 13inch
ブロガー : 
ujpblog 2018/12/11 20:36
 先日,El Captitanにmilkocdeのインストールしようとしたら,Rubyが古くて苦労して結
局groongaがビルドできずに1時間かけて調べて面倒になったので,まっさらにOSを新規イン
ストール.
 そしてリトライ.

 まずは,Rubyのバージョンを確認.
gaia:~ server$ ruby -v🆑
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17]🈁
gaia:~ server$
 パッケージマネージャのGemのバージョンを確認.
gaia:~ server$ gem -v🆑
2.5.2.3🈁
gaia:~ server$
 問題なさそうなのでインストール.

...続きを読む

Jenkinsをいれる

カテゴリ : 
Apple » MacBook Pro » 2011 13inch
ブロガー : 
ujpblog 2018/12/10 22:34
 Jenkinsというと,北朝鮮拉致被害者の,曽我ひとみさんの旦那さんのことをいつも思い出すのだけれど,CI(継続的インテグレーション)のツールのJenkinsが今回のテーマ.
 そういえば!?と思って調べてみたら,チャールズ・ジェンキンスさんはちょうど1年前に亡くなっていました...

 取り急ぎ,インストールを.

JenkinsをBrewでインストール

 Mac用のパケージマネージャ,HomeBrewでインストール.
gaia:~ server$ brew install jenkins🆑
Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.
jenkins: Java 1.8 is required to install this formula.
JavaRequirement unsatisfied!
You can install with Homebrew Cask:
 brew cask install homebrew/cask-versions/java8🈁
You can download from:
 https://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.
gaia:~ server$
 なんと,Java8が必要だと言われて失敗した.Javaのバージョンを調べてみた.
gaia:~ server$ java -version🆑
openjdk version "11.0.1" 2018-10-16🈁
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
gaia:~ server$
 Java 11が入っていた.最新が入るので仕方ない.

Java8を追加でインストール

 指示通りに,Java8をインストールする.
gaia:~ server$  brew cask install homebrew/cask-versions/java8🆑
Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.
==> Tapping homebrew/cask-versions
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions
'...
remote: Enumerating objects: 231, done.
remote: Counting objects: 100% (231/231), done.
remote: Compressing objects: 100% (223/223), done.
remote: Total 231 (delta 15), reused 45 (delta 6), pack-reused 0
Receiving objects: 100% (231/231), 92.56 KiB | 59.00 KiB/s, done.
Resolving deltas: 100% (15/15), done.
Tapped 210 casks (251 files, 352.1KB).
==> Caveats
This Cask makes minor modifications to the JRE to prevent issues with
packaged applications, as discussed here:

  https://bugs.eclipse.org/bugs/show_bug.cgi?id=411361

If your Java application still asks for JRE installation, you might need
to reboot or logout/login.

Installing java8 means you have AGREED to the license at
  https://www.oracle.com/technetwork/java/javase/terms/license/index.html

==> Satisfying dependencies
==> Downloading https://download.oracle.com/otn-pub/java/jdk/8u192-b12/
750e1c8617c5452694857ad95c3ee230/jdk-8u192-macosx-x64.dmg
==> Downloading from https://download.oracle.com/otn-pub/java/jdk/8u192-b12/
750e1c8617c5452694857ad95c3ee230/jdk-8u192-macosx-x64.dmg?AuthParam=1544447252
_2e8b408e6952cde7166b5ad0e
######################################################################## 100.0
%
==> Verifying SHA-256 checksum for Cask 'java8'.
==> Installing Cask java8
==> Running installer for java8; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are 
ignored.
Password:
installer: Package name is JDK 8 Update 192
installer: Installing at base path /
installer: The install was successful.
🍺  java8 was successfully installed!
gaia:~ server$
 Java8のインストールは問題なく完了.

Javaを切り替える

 入っているJavaの一覧を.
gaia:~ server$ /usr/libexec/java_home -V🆑
Matching Java Virtual Machines (2):
    11.0.1, x86_64:	"OpenJDK 11.0.1"	/Library/Java/JavaVirtualMachines/openjdk-11.0.1.jdk/Contents/Home
    1.8.0_192, x86_64:	"Java SE 8"	/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/openjdk-11.0.1.jdk/Contents/Home
gaia:~ server$
 2つ入っている事が確認できた.Java7は1.8.xのやつなので,環境変数JAVA_HOMEに1.8を設定する.

gaia:~ server$ export JAVA_HOME=`/usr/libexec/java_home -v "1.8"`
gaia:~ server$
 パスが通ったか確認.
gaia:~ server$ java -version
java version "1.8.0_192"
Java(TM) SE Runtime Environment (build 1.8.0_192-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode)
gaia:~ server$
 ちゃんとJava8になった.

Jenkinsをインストール

gaia:~ server$  brew install jenkins🆑
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.

==> Downloading http://mirrors.jenkins.io/war/2.154/jenkins.war
==> Downloading from http://ftp.yz.yamagata-u.ac.jp/pub/misc/jenkins/war/2.154
/jenkins.war
######################################################################## 100.0
%
==> jar xvf jenkins.war
==> Caveats
Note: When using launchctl the port will be 8080.

To have launchd start jenkins now and restart at login:
  brew services start jenkins
Or, if you don't want/need a background service you can just run:
  jenkins
==> Summary
🍺  /usr/local/Cellar/jenkins/2.154: 7 files, 76MB, built in 5 minutes 15 
seconds
gaia:~ server$
 問題なくインストールできた模様.

Jenkinsを起動する

 特に苦労もなく,サービスコマンドで実行.

gaia:~ server$ brew services start jenkins🆑
==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 14 (delta 0), reused 10 (delta 0), pack-reused 0
Unpacking objects: 100% (14/14), done.
Tapped 1 command (44 files, 58.7KB).
==> Successfully started `jenkins` (label: homebrew.mxcl.jenkins)
gaia:~ server$

iPhone SEからiPhone 6sにデータ移行

カテゴリ : 
Apple » iPhone
ブロガー : 
ujpblog 2018/12/8 19:03
 ドコモオンラインショップで購入したiPhone 6sが届いたので,2日間寝かせた後セットアップ開始.


 まずは外箱でスペックを確認.32GBなので多くはないけれど,カミさんの使い方だと問題ない.


 今回購入したのはスペースグレイ.いつものように使われないイヤホンが.アクティベーションするためにドコモのSIMをセット.


 アクティベーションが終わったら,iPhone SEをiPhone 6sに近づけるとサインインされます.そこで,Apple Watchと同じようなQRコードの動画版みたいなやつを以降元のiPhone SEのカメラで読み込ませて認証完了.


 しばらく悶々としているのだけれど,データの移行は別途実施.事前にiTunesでバックアップ取っていたものから復元します.


 新しいiPhone 6sを接続すると,自動的にiPhone SEのバックアップが選択されて,しばらく待ちます.


 復元されるのだけれど,アプリは新しいものがあったら,再インストールされる模様.


 初期設定を引き続き行って.


 せっかく画面が大きくなってので,アイコンも大きく表示するように設定.これで終了.

 ただし,アプリのアップデートに時間がかかりますね.

MKPlayer

カテゴリ : 
Apple » Macソフト
ブロガー : 
ujpblog 2018/12/7 0:09
 makeMKVにて取り出したデータをVLCで再生すると,主音声,,,というか主人公のセリフが張っているチャンネル?の音声が再生できないことがある.比較的最近の映画にそれは多い.

 たぶん,吹き替え編集を考えて,あらかじめ手前の人間のセリフ,町の雑音,BGMくらいな感じでチャンネルが分けて放送されていて,それは普段意識することがないけれどVLCだと手前の人間のセリフが聞き取れない感じ.

 これをエンコーディングの問題とか設定の問題かなと思っていたのだけれど,mkvファイルを再生できるプレイヤを使うと再生できるので,VLCの問題だと認識.

 代わりにmkvファイルを再生できるプレイヤを探したけれど,5KPlayerとかの調べれば調べるほどインストールしたくないソフトにばかり辿り着いてしまう.
 そんな中でやっと出会えたのが,Mac App Storeにも登録されているMKPlayerというソフトを発見.


 んー.いい評判も悪い評判も見つからない.Store上でも評判はあまり書かれてないけれど,悪くはなさそうなのでダウンロードして使ってみた.

 結果的には,ちょっと不安定そうな雰囲気はあるけれど,音声も問題なく再生できて良い感じです.あとは,アプリ内課金があるそうなのだけれど,どこでどう何が課金されるかわからない点.
 これまで購入したSSDは,ADATAのものばかりだったと思うけれど,今回はウェスタンデジタルのもの.


 ウェスタンデジタルのストレージは,外装によって推奨用途があるということだけ知っていたので,この青色は何だろう?と思って調べて見たのだけれど,普通に「一般用」でした.ハイパフォーマンス用とか監視カメラ用とか,用途があるそうです.今回このWD SDDを購入した理由は,「一番安かった」ただそれだけのこと.7,899円(税別)でした.見た当時は,ヨドバシカメラより安かった.秋葉原のTSUKUMO 12号店で,夜20時までのタイムセール中で5%引きだったし.


 1年半前にメモリを16GBに増設して以来の開腹.マシン自体は去年の12月以来起動して見ました...
 ハードディスクドライブを取り外すのは,本体に固定する金具があるのだけれど,これを2本のネジをPH00ドライバで緩めれば良いです.ぽろっと取れてサクッと抜けます.


 取り出して刺せば完成.とても簡単.このモデル以降くらいから,メモリは半田付け,HDDは専用形状のSSDになって増設しづらい.メモリ増設とSSDに交換の実施だけで生まれ変わったようです. 

 そして恒例のベンチマークテスト.

...続きを読む

 先日購入したハードディスクのデュプリケータ.実際に使ってみました.


 2つのドライブを接続できますが,AからBに複製するという方向は固定.この場合白いHDDから青いSSDに複製されます.CLONEボタンを押すだけ.
 押すだけなんだけれど,長押しをすると100%表示部分が点滅し始めるので,一度指を離して消灯する前に再度CLONEボタンを押すという技を実施することで,複製が始まります.これだと,誤操作がないですね.よく考えられている.


 あとは,データの複製を待つだけ.いつ頃終わるかは全くわからないけれど,500GBの容量で空きが280GB程度だったけれど,1時間後に75%まで終わっていました.

 コピー先がSSDということもあるけれど,2時間もあれば終わるんじゃなかろうか.
HDDケースを買おうとヨドバシカメラへ.ケースを毎回買うのも大変だし,HDDをSDカードのように使おうということで,裸族のなんたらシリーズを10年ぶりに買おうとしたら,1300円アップすればハードディスクデュプリケータ付きになるというので,高機能な方を買って見た.


 単体でHDDの複製を取ることができるのだけれど,これ,使い方間違えると削除機能になってしまうところが怖いな.そんなことにはならないだろうけれど.

 クローン機能は,HDDをセットしたあと,左下にあるCLONEボタンを長押しすることで始まるそうです.

Apple Watch アクティビティ メダル 201810

カテゴリ : 
Apple » Apple Watch
ブロガー : 
ujpblog 2018/10/2 1:36
 今日は歩数が少なかったので夜23時前からポケモンのジム占領も兼ねて散歩へ.


 ジムは落とせたのだけれど,エクササイズがゴールできませんでした.あと1分足り無い.かなり早歩きし無いとカウントされ無いので,ポケモンしながらの徒歩だと不利なんだなぁ...一駅半くらい歩いたのだけれど.

 月の初めから達成できなかったのでもうやる気なし...
 この夏に,時間があったのでパソコン用机をDIYで作ってみたのだけれど,使っていると机の角が痛い.じわじわと痛みが効いてくる.
 市販の机だと角っこが丸まっているので,削ろうかと考えてみたけれど,面倒なのでダイソーでクッションを買って来た.


 小さい子供が家具の角に頭をぶつけてもダメージが少なくなるようにするためのグッズだけれど,ちょっと分厚いかと思ったら,なんとMacBook Proのパームレストの高さに一致するのでとても良い具合になりました.
 ニトリルゴムとあったのでダイソーなのにニトリ?と思ったのだけれど,これは手袋などに使われている合成ゴムなのだそうです.

Apple Thunderbolt - ギガビットEthernetアダプタ

カテゴリ : 
Apple » Mac周辺機器
ブロガー : 
ujpblog 2018/9/30 17:47
 Time Machineによる初回バックアップやデータコピーをするときは,やっぱり有線LANの方が高速.ということで,Apple Thunderbolt - ギガビットEthernetアダプタを1つ持っていたのだけれど,使い回すのが面倒なのでもう2つ買いました.


 新品は3200円のところ,じゃんぱらの新古品が1500円,パレットプラザの中古品が980円でした.このアダプタ,100Mbitと1Gbitモデルが混在していて,新古の方は箱付きだったので問題なかったのだけれど,パレットプラザのお店の人にどっちか確認してもらったら1Gbitだというので信じて購入.


 家にあったやつと3つ並べてみたけれど,ちゃんとA1433と記載がありました.
 ちょいちょい,記載されている文言が異なっているので,製造時期が異なるのかな.
 iPhone 6 Plusを購入した直後に有楽町ビックカメラで購入したエレコムのケースが破れてきたので,新調しました.秋葉原の名もなき(というか知らないお店)で,190円.多分,これも発売当時は1900円程度したのだろうけれど,4年も経てば十分の一でもおかしくないでしょう.


 4年使ったエレコムのケースは,TPU部分が変色してきたのだけれど,ハイブリッド構造のほとんどを占めるポリカボーネート部分は変色もなく問題ありませんでした.強度も問題なかったしね.

 今回のケースは全体がTPUなのですが,これだけだと外れやすい感じなのでちょっと不安.安く買ったのでとりあえず使って見て,ダメなら捨てればよいのだけれど.また新しく古いのを探しに行く楽しみが増えたかな.

 ここまででわかったことはTPUという素材はナイロンのように柔軟性があるが強い素材だけれど,紫外線で変色してしまう欠点がある.茶色のケースだと思えば,気にならない? ちゃんと高いお金を出して買うときには,TPUはよく考えないといけないな.

過去の自分との戦い

カテゴリ : 
Apple » iPhone
ブロガー : 
ujpblog 2018/9/19 23:37
 Windows XPが普及した後,新しくWindows Vistaが発売されても乗り換えが進まなかった.乗り換える理由がないからだ. Windows VistaのライバルはmacでもLinuxはライバルじゃなくて,Windows XPだった.
 新しいiPhoneのiPhone XSとかiPhone XRとか,性能は良いのだろうけれど,ポケモンGOが快適に動いているiPhone 7 Plusからは乗り換えの理由がない.値段が高いし.

 iPhone 3GSが発売された頃は,普通のガラケーの5万円より安い3万円だよ!という安さを売りにしていたけれど,普及しちゃってブランド化されたらどんどん値段が高くなるなぁ.これがアップル税というやつだ.

VLCで主音声?がでない

カテゴリ : 
Apple » Macソフト
ブロガー : 
ujpblog 2018/8/14 23:16
 ブルーレイのデータをmakemkvで取り出してVLCで再生しようとすると,主音声がでない.BGMとか遠くの音みたいなのは聞こえるけれど,画面上でセリフを言っている人の声が聞こえてこない.
 音声がマルチチャンネルなのだろうとは思うけれど,これをどう表現すれば良いのか分からないが,VLCじゃないデコーダだと再生できているので,何かデコードのコーデックが不足しているのかなぁ.
 でも,VLCはコーデックを入れなくても結構いけるのが売りなはずで.

VLC 3.0.3が不安定

カテゴリ : 
Apple » Macソフト
ブロガー : 
ujpblog 2018/8/9 23:36
 タイトル通り.なんだか,mkvファイルを再生するだけなのに,アプリが落ちたりレインボーになったりと不安定すぎて.

 そんな時は,バージョンダウンすれば良いそうだ.

https://get.videolan.org/vlc/2.2.8/macosx/vlc-2.2.8.dmg

 VLC 2.2.8は,macOS X 10.13.6 High Sierraでも問題なく動いています.

mac mini 2010をDLNAサーバに仕立てる その2

カテゴリ : 
Apple » mac mini » 2010
ブロガー : 
ujpblog 2018/7/31 23:00
 前回,DLNAサーバのminiDLNAをmacOSのEl Capitanが入っているmac mini 2010にインストールしたけれど,エラーがでてうまく動かなかった件.

 こんなエラーが出ていました.
minissdp.c:261: error: sendto(udp): Can't assign requested address
 ネットで調べると,sudoで起動すれば良いとあったのだけれど,sudoで起動すると接続できることがあるけれど,不安定なのとメディアリストや再生を行う通信を行う都度,先のエラーログが出てくるので,ログファイルサイズがとんでもないことになります.
 
 実際の解決策は,brew update/brew upgradeでその他のライブラリをアップデートしたら,問題なく動くようになりました.
 ほぼ電話もメールでもやりとりしないので,あらかじめそれらの手段で連絡が来ると言われたときにしか気にしない生活を送っているけれど,本当にメールに気づかないようになった.
 家に帰って充電を始めた途端,メールが到着して朝10時ごろとかに来ている車屋からのメールに気づくけれど,もう営業時間外・・・みたいなことが続いていた.普段はiMessageだけれど先月はメールでやりとりしなければいけないことが多かったカミさんからも苦情がでて,

 で,調べたところ,結局iOS11から追加された設定の影響で,そういうことになっていた.

 iPhoneのメールを取りに行く方法は,プッシュとフェッチがある.プッシュはメールサーバがiPhoneに「メールきたよ」と通知を出し,それを受けてメールを受信する.フェッチは定期的,あるいは手動でメールを取りに行く方法.パソコンのPOPを使っているイメージ.うちの場合はIMAPなのでプッシュでよかったのだけれど,これだとiOS11からは次のような制限がある.


 電源とWi-FIに接続している時だけメールを取りに行くそうだ.つまり,家に帰って充電を始めると条件が揃うから,その日1日中のメールを受け取れる.夜中はメールが来ないから問題ない.ということになる.
 iPhoneでメールを受け取らないから,Apple Watchでもメール受信通知がない.これじゃぁ意味がない.

 これを改善して,日中でもメール受信を定期的にチェックするには,次のようにする.


 「プッシュ」のチェックを外して,手動で好きな時間に設定する.

mac mini 2010をDLNAサーバに仕立てる

カテゴリ : 
Apple » mac mini » 2010
ブロガー : 
ujpblog 2018/7/25 23:57
 映像データファイルを,家の東芝のテレビ,レグザとかパソコンとかでいつでも見ることができるようにしようとすると,DLNAサーバがぴったり.DLNAに対応したファイルサーバを買うという手もあるけれど,今回はサーバを作って見ることにした.
 macOS用のDNLAサーバは,昔はMediaTombだったけれど,最近はMiniDLNAが良いということなので,あまり考えずにそれを選択.

 最初に,HomeBrew上でのステータスを確認.
Last login: Wed Jul 25 23:23:53 on ttys000
macmini2010:~ ujpadmin$ brew info minidlna🆑
minidlna: stable 1.1.5 (bottled), HEAD
Media server software, compliant with DLNA/UPnP-AV clients
https://sourceforge.net/projects/minidlna/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/minidlna.rb
==> Dependencies
Required: libexif ✘, jpeg ✔, libid3tag ✘, flac ✘, libogg ✘, libvorbis ✘, sqlite ✔, ffmpeg ✔
==> Caveats
Simple single-user configuration:

mkdir -p ~/.config/minidlna
cp /usr/local/opt/minidlna/share/minidlna/minidlna.conf ~/.config/minidlna/minidlna.conf
ln -s YOUR_MEDIA_DIR ~/.config/minidlna/media
minidlnad -f ~/.config/minidlna/minidlna.conf -P ~/.config/minidlna/minidlna.pid
macmini2010:~ ujpadmin$ 
 リクエストされているライブラリはわかるけれど,設定ファイルをコピーするところまでやってくれる模様.親切だなぁ
 問題なさそうなので,インストールする.

macmini2010:~ ujpadmin$ brew install minidlna🆑
==> Installing dependencies for minidlna: libexif, libid3tag, flac, libogg, libvorbis
==> Installing minidlna dependency: libexif
==> Downloading https://homebrew.bintray.com/bottles/libexif-0.6.21.el_capitan.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring libexif-0.6.21.el_capitan.bottle.1.tar.gz
🍺  /usr/local/Cellar/libexif/0.6.21: 30 files, 789.6K
==> Installing minidlna dependency: libid3tag
==> Downloading https://homebrew.bintray.com/bottles/libid3tag-0.15.1b.el_capitan.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring libid3tag-0.15.1b.el_capitan.bottle.1.tar.gz
🍺  /usr/local/Cellar/libid3tag/0.15.1b: 12 files, 210.5K
==> Installing minidlna dependency: flac
==> Downloading https://homebrew.bintray.com/bottles/flac-1.3.1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring flac-1.3.1.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/flac/1.3.1: 52 files, 2.2M
==> Installing minidlna dependency: libogg
==> Downloading https://homebrew.bintray.com/bottles/libogg-1.3.2.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libogg-1.3.2.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/libogg/1.3.2: 96 files, 457.2K
==> Installing minidlna dependency: libvorbis
==> Downloading https://homebrew.bintray.com/bottles/libvorbis-1.3.5.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libvorbis-1.3.5.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/libvorbis/1.3.5: 158 files, 2.3M
==> Installing minidlna
==> Downloading https://homebrew.bintray.com/bottles/minidlna-1.1.5_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring minidlna-1.1.5_1.el_capitan.bottle.tar.gz
==> Caveats
Simple single-user configuration:

mkdir -p ~/.config/minidlna
cp /usr/local/opt/minidlna/share/minidlna/minidlna.conf ~/.config/minidlna/minidlna.conf
ln -s YOUR_MEDIA_DIR ~/.config/minidlna/media
minidlnad -f ~/.config/minidlna/minidlna.conf -P ~/.config/minidlna/minidlna.pid
==> Summary
🍺  /usr/local/Cellar/minidlna/1.1.5_1: 9 files, 296.6K
macmini2010:~ ujpadmin$
 サンプルは,シングルユーザで使うときの設定となっていて,設定ファイルを配置するディレクトリを作成し,元となるテンプレートファイルを作って,メディアデータへのリンクを貼って,プロセスを起動という手順となっている.

macmini2010:~ ujpadmin$ mkdir -p ~/.config/minidlna🆑
macmini2010:~ ujpadmin$ cp /usr/local/opt/minidlna/share/minidlna/minidlna.conf ~/.config/minidlna/minidlna.conf🆑
macmini2010:~ ujpadmin$ ln -s /Volumes/Media4TB/DLNA用 ~/.config/minidlna/media🆑
 設定したのでプロセスを起動.

macmini2010:~ ujpadmin$ minidlnad -f ~/.config/minidlna/minidlna.conf -P ~/.config/minidlna/minidlna.🆑
-bash: minidlnad: command not found🈁
macmini2010:~ ujpadmin$
 普通にパスが通ってない.minidlnadの場所を確認.
macmini2010:~ ujpadmin$ ls -la  /usr/local/opt/minidlna/sbin/minidlnad 🆑
-r-xr-xr-x  1 ujpadmin  admin  275468  7 25 23:37 /usr/local/opt/minidlna/sbin/minidlnad🆑
macmini2010:~ ujpadmin$
 ついでに設定ファイルの中身を確認.
macmini2010:~ ujpadmin$ cat ~/.config/minidlna/minidlna.conf🆑
friendly_name=Mac DLNA Server
media_dir=/Users/ujpadmin/.config/minidlna/media🈁
db_dir=/Users/ujpadmin/.config/minidlna/cache
log_dir=/Users/ujpadmin/.config/minidlna
macmini2010:~ ujpadmin$ 
 最小限設定だとわかる.そして,メディアを置いてあるリンク先を確認.
macmini2010:~ ujpadmin$ ls -la ~/.config/minidlna/media🆑
lrwxr-xr-x  1 ujpadmin  staff  25  7 26 00:21 /Users/ujpadmin/.config/minidlna/media
 -> /Volumes/Media4TB/DLNA用🈁
macmini2010:~ ujpadmin$ 
 情報が揃っているので,これで起動して見る.
macmini2010:~ ujpadmin$ /usr/local/opt/minidlna/sbin/minidlnad  -f
 ~/.config/minidlna/minidlna.conf -P ~/.config/minidlna/minidlna.pid🆑
macmini2010:~ ujpadmin$ 
 プロセスを確認.
macmini2010:~ ujpadmin$ cat ~/.config/minidlna/minidlna.pid🆑
1638
macmini2010:~ ujpadmin$ 
macmini2010:~ ujpadmin$ ps -ef|grep 1638🆑
  501  1638     1   0 12:26AM ??         0:00.03 /usr/local/opt/minidlna/sbin/minidlnad
 -f /Users/ujpadmin/.config/minidlna/minidlna.conf -P /Users/ujpadmin/.config/minidlna/minidlna.pid
  501  1643   972   0 12:26AM ttys001    0:00.00 grep 1638
macmini2010:~ ujpadmin$
 プロセスは稼働しているようだ.そして問題のログファイル.

macmini2010:~ ujpadmin$ ls -la /Users/ujpadmin/.config/minidlna🆑
total 88
drwxr-xr-x  7 ujpadmin  staff    238  7 26 00:26 .
drwxr-xr-x  3 ujpadmin  staff    102  7 26 00:21 ..
drwxr-xr-x  3 ujpadmin  staff    102  7 26 00:26 cache
lrwxr-xr-x  1 ujpadmin  staff     25  7 26 00:21 media -> /Volumes/Media4TB/DLNA用
-rw-r--r--  1 ujpadmin  staff    163  7 26 00:21 minidlna.conf
-rw-r-----  1 ujpadmin  staff  32622  7 26 00:29 minidlna.log🈁
-rw-r-----  1 ujpadmin  staff      5  7 26 00:26 minidlna.pid
macmini2010:~ ujpadmin$
 ログファイルを見て見る.
macmini2010:~ ujpadmin$ head  /Users/ujpadmin/.config/minidlna/minidlna.log🆑
[2018/07/26 00:26:24] minidlna.c:1030: warn: Starting MiniDLNA version 1.1.5.
[2018/07/26 00:26:24] minidlna.c:355: warn: Creating new database at /Users/ujpadmin/.config/minidlna/cache/files.db
[2018/07/26 00:26:24] minidlna.c:1070: warn: HTTP listening on port 8200
[2018/07/26 00:26:24] scanner.c:726: warn: Scanning /Volumes/Media4TB/DLNA用
[2018/07/26 00:26:24] minissdp.c:261: error: sendto(udp): Can't assign requested address
[2018/07/26 00:26:25] minissdp.c:261: error: sendto(udp): Can't assign requested address
[2018/07/26 00:26:25] minissdp.c:261: error: sendto(udp): Can't assign requested address
[2018/07/26 00:26:26] minissdp.c:261: error: sendto(udp): Can't assign requested address
[2018/07/26 00:26:26] minissdp.c:261: error: sendto(udp): Can't assign requested address
[2018/07/26 00:26:27] minissdp.c:261: error: sendto(udp): Can't assign requested address
macmini2010:~ ujpadmin$ 
 おー.エラーが出まくっている.一旦プロセスを落とす.
macmini2010:~ ujpadmin$ kill 1638
macmini2010:~ ujpadmin$ 
 この続きは,また次回で.

iPhone 6 Plusをバッテリ交換にだしてみた その2

カテゴリ : 
Apple » iPhone
ブロガー : 
ujpblog 2018/6/17 20:02
 iPhone 6 Plusのバッテリ交換を回収して交換依頼しました.預けたのが6月9日午前中ギリギリ.
 当日入れて4日目の6/12(火)に,夜家に帰ったら不在票が入っていたので実質1営業日程度でしょう.交換だけだし.再配達をお願いしていたのが今日到着しました.


 到着したら白い箱に当たり前だけど本体だけ整然と入っていたのですが,新品と同じように本体に透明な保護シールが貼ってある.これは新品交換かな?速かったし.

 同封されていた書類には,次のように書かれています.


 新品または新品と同等品との交換....とあったけれど,シリアル番号を調べたら同じだったので,普通にバッテリだけ交換されたのでしょう.カバーをつけていたので綺麗に使っていたので傷もついておらず.よーく見ると背面のカメラ付近の擦り傷や表面も液晶保護シールを剥がした跡が残っています.液晶保護シート剥がされるのか...衝撃対応高級ガラスシートみたいなのを付けている人は,気をつけないと.と言っても保護シート剥がせないしね...


 データもすっかりリセットされていて初期化されていました.アクティベーションから始めなければいけなかったのだけれど,初期設定はiOS11以降だと別の同じ設定をしているiPhoneを近づけるだけで終わりました.すごいね.
 念のためにバッテリの状態も確認してみました.当たり前だけど最大容量100%です.

 メイン使いのiPhoneのバッテリ修理を配送修理にすると手元から3〜4日離れることになるけれど,リアル店舗のApple Storeの高飛車不快感を体験するよりは非常にストレスなくスムース.
 液晶保護シートが取り外されることが気になる人は,Apple Storeだと過去実績的に融通は利かない気がするので,予約が取れないけれどApple Store以外の修理センターに持ち込むのもいいのかもしれない.保証はできないけど,修理担当に一言,申し送りしてくれるでしょう.

広告スペース
Google