MySQL 5.6.10がリリースされたのでHomebrewのFormulaを書いてみた
見よう見まねで書いてみた(意図がわからず削った部分もあるのでpull req.は据え置き)。書き方Formulaを書くときにはソースを落とせるURLとSHA1ハッシュが必要になる。SHA1はスクリプトを書いて計算した(適当なツールがあるのかな)。cd /usr/local/Library/Formula git checkout -B mysql_5.6.10-tmp vim mysql.rb...
View ArticlecURLのCA証明書
cURLのサイトにはmozilla製品に含まれるCA証明書が置いてある。SSLを使うのに適当な証明書がなければこれを使えばいい。Homebrewでもインストールできる。$ brew install curl-ca-bundle/usr/local/opt/curl-ca-bundle/share/ca-bundle.crtにインストールされる。
View ArticleMySQL 5.6.10を入れなおした
Homebrewの公式のFormulaが出たので、独自のFormulaで入れたものを削除して入れなおした。launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist brew update brew uninstall mysql brew install mysql --enable-memcached ln -sfv...
View Articlehomebrewで入れたImageMagickでtiffを扱う
homebrewで入れたimagemagickのconvertコマンドでtiff画像を変換しようとしたらconvert: no decode delegate for this image formatというエラーが出たので調べてみたらImagemagick can not find deletegates library for .tiff format on mac os x mountain...
View Articlehomebrewで入れたImageMagickでpdfを扱う
convert: Postscript delegate failedと言われたらghostscriptで。tiffも扱いたいので--with-libtiffも付ける。$ brew install ghostscript $ brew install imagemagick --with-libtiff --with-ghostscriptWarning: --with-ghostscript is...
View Articlebundler経由でmysql gemを入れるときの--with-mysql-configの指定方法
mysql gemをインストールするとき--with-mysql-configの値としてデフォルトでは/usr/local/mysql/bin/mysql_configで渡されるけど、Homebrewでインストールするとそこには存在しないので、手動で指定する必要がある。普通にgemコマンドからインストールするときは、次のように指定する。gem install mysql --...
View ArticleImageMagickでLittle CMSを扱った処理を行うために
こんなエラーが出たとき、Little CMSのライブラリに対応できていない。convert: delegate library support not built-in `/path/to/jpg' (LCMS) @ warning/profile.c/ProfileImage/565.対応しているdelegateは次のコマンドで確認できる。$ convert -list configure |...
View ArticleHomebrewで入れたFFmpegでaifをoggに変換する
まずインストール。色々オプションをつけてるけど、--with-libvorbisだけでいけるはず。brew install ffmpeg \ --with-fdk-aac \ --with-freetype \ --with-libvo-aacenc \ --with-libvorbis \ --with-libvpx \ --with-opencore-amr \ --with-openjpeg...
View ArticleHomebrewでmkpasswd
パスワードを生成するならmkpasswd、ということでHomebrewで入れた。mkpasswdはexpectのなかに入ってる。$ brew tap Homebrew/homebrew-dupes $ brew install expect --with-brewed-tk--with-brewed-tkを付けないとエラーが出る。$ mkpasswd...
View ArticleHomebrewで入れたmysqlを再起動するにはLaunchAgentのKeepAliveをfalseに設定しておく
~/Library/LaunchAgents/homebrew.mxcl.mysql.plistのKeepAliveがtrueになっていると、mysqlのプロセスが止まった時点でlaunchctlが頑張って起動しなおそうとする。このため、mysqlを手動で再起動しようとmysql.server...
View Articlehomebrewで入れたnginxをlaunchctlで80番ポートで起動する
$ sudo su - # ln -s /usr/local/opt/nginx/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/homebrew.mxcl.nginx.plist # launchctl load -w...
View Articlehomebrewのcurl-ca-bundleパッケージが無くなってた
新しく届いたMacの環境を構築しようとししたら無くなってた → Remove curl-ca-bundle by jacknagel · Pull Request #28658 · Homebrew/homebrew · GitHub代わりにopensslパッケージが証明書を入れるようになったので、そっちを使うようにした。export SSL_CERT_FILE=$(brew...
View Article
More Pages to Explore .....