hasen's tech life

Twitter: @hasen

Homebrew

HomebrewでPHPを7.1から7.2にアップデート.

# HomebrewでPHPを7.1から7.2にアップデート. $ brew unlink php@7.1 $ brew link php@7.2 $ 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 $ …

bundle installでエラーが出たので対応した.

# bundle installでエラーが出たので対応した. $ ./bin/bundle i Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /PATH/TO/vendor/bundle/ruby/2.5.0/gems/mysql2-0.5.2/ext/mysql2 checking for rb_absint_size(…

MySQLのインストールに失敗したので対応した.

# MySQLのインストールに失敗したので対応した. # なにかで過去にインストールしたが使っていないとのことで削除した.(ひとの環境) $ brew reinstall mysql@5.7 > --initialize specified but the data directory has files in it. Aborting. > [ERROR] Ab…

ERROR! The server quit without updating PID fileというエラーが出たので対応した.

# ERROR! The server quit without updating PID fileというエラーが出たので対応した. # brew upgradeしたことでバージョンが変わっていることが原因だった. $ mysql.server start > .. ERROR! The server quit without updating PID file (/usr/local/va…

brew upgradeをしたらPHPのエラーが出たので対応した.

# brew upgradeをしたらPHPのエラーが出たので対応した. $ php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): Library not loaded: /us…

brew upgrade後にVimを使うとエラーになったので対応した.

# brew upgrade後にVimを使うとエラーになったので対応した. $ vi hoge> dyld: Library not loaded: /usr/local/opt/perl/lib/perl5/5.24.0/darwin-thread-multi-2level/CORE/libperl.dylib> Referenced from: /usr/local/bin/vim> Reason: image not found…

Homebrewでインストールしたアプリケーションを自動起動するようにした.

# Homebrewでインストールしたアプリケーションを自動起動するようにした. # なにを使っているか意識するために毎回起動していたけれど,もういいかなと. $ brew tap homebrew/services > .. (略) .. $ brew install homebrew-services > .. (略) .. $ bre…

HomebrewでMySQLをupgradeした時に実行しておくコマンド.

# HomebrewでMySQLをupgradeした時に実行しておくコマンド.# MySQLWorkbenckがエラーになる.$ brew upgrade mysql $ mysql_upgrade -u USER_NAME -p > Enter password: > Checking if update is needed. > Checking server version. > Running queries to …

ngrokを使って,localの開発環境でFacebookのOAuthをテストする.

# localで開発をしていると,FacebookのOAuthがテストできなくて困っていた. # ngrokを使うことで回避できた. # 参考: Using Localhost For Facebook App Development $ brew install ngrok $ brew install caskroom/cask/ngrok $ ngrok version > ngrok v…

El Capitan GMでbrew updateに失敗したので対応した.

# El Capitan GMでbrew updateに失敗したので対応した. # 元々Yosemiteで, El Capitanにアップデートしている. # error $ brew update> brew error: unable to unlink old '.gitignore' (Permission denied) 参考: Failed `brew update` on El Capitan (OS…

composer installで"the requested PHP extension intl is missing from your system."というエラーが出たので対応した.

# composer installで"the requested PHP extension intl is missing from your system."というエラーが出たので対応した. # HomebrewでPHP7を入れている人向け. # error $ composer install > Loading composer repositories with package information > …

HomebrewでPHP7を入れた.

# HomebrewでPHP7を入れた. # 今のところ,まだRC3. $ brew install php70 $ php -v > PHP 7.0.0RC3 (cli) (built: Sep 22 2015 10:26:28) > Copyright (c) 1997-2015 The PHP Group > Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies

Homebrewでxhprofを入れる時に,"Error: Formulae found in multiple taps"というエラーが出たので対応.

# Homebrewでxhprofを入れる時に,"Error: Formulae found in multiple taps"というエラーが出たので対応. # josegonzalez/phpからhomebrew/phpに切り替えた. # また,xhprofを入れる時には'--build-from-source'オプションが必要. # error$ brew install…

Homebrewで入れたPHPでxhprof.soのエラーが出たので対応.

# Homebrewで入れたPHPでxhprof.soのエラーが出たので対応. # error $ php -v > Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php56/5.6.12/lib/php/extensions/no-debug-non-zts-20131226/xhprof.so' - dlopen(/usr/local/Ce…

brewでPHP v5.6が入らなかったので対応した.

# brewでPHP v5.6が入らなかったので対応した. # 最終的にオプションを3つ付けた. # error $ brew install josegonzalez/php/php56 > "_TLSv1_2_server_method", referenced from: > _php_openssl_setup_crypto in xp_ssl.old: symbol(s) not found for ar…

HomebrewでインストールしたGoをv1.5にアップデートした.

# HomebrewでインストールしたGoをv1.5にアップデートした. # go $ go version > go version go1.4.2 darwin/amd64 # brew # error $ brew update error: The following untracked working tree files would be overwritten by merge: ... (以下略) $ cd /u…