同僚がGoを始める上で、案外まとまった資料が無さそうだったので書いてみることにしました。 Macでhomebrewが入っていることが前提です。事前に brew update をおこない formula を最新のものにしておくと躓くことが少ないでしょう。 Goのインストール % brew install go エントリ執筆時点では、1.6.2 が入ります。Goはメジャーバージョンが同じ場合は、後方互換が保たれているので、基本的に新しいやつを入れて問題ありません。 環境変数の設定 $GOPATH だけを決めればOKです。$GOPATH はどこでも良いのですが、ここでは $HOME/dev を $GOPATH に設定します。また、 $GOPATH/bin に $PATH も通しておきます。 export GOPATH=$HOME/dev export PATH=$GOPATH/bin:$PATH
Rubyでmin_magick使おうとしたらimagemagickが動かなくなってることに気がついた. Mavericksにアップデートする前は使えてたのでアップデートしたのが原因と思ってます(確定ではないすが). コマンド実行するとこんな感じのエラーがでる。 $ convert dyld: Library not loaded: /usr/local/lib/libltdl.7.dylib Referenced from: /usr/local/Cellar/imagemagick/6.8.9-5/bin/convert Reason: image not found Trace/BPT trap: 5 $ brew uninstall imagemagick $ brew install imagemagick --build-from-source ==> Installing im
B! 89 0 0 0 この前、Macで /usr/local/binの所有権が勝手に変わってしまって困っている という事を書きましたが、 一応原因が分かって回避できる様になったのでそれについて。 起こっていた問題 原因 まとめ 起こっていた問題 El CapitanからはSIPと呼ばれる新たなセキュリティーシステムが導入されていて、 これによって/usr以下は通常rootでも操作出来ないようになりましたが、 /usr/local以下だけはこのディレクトリがあれば この保護から外して使う事が出来ます。 OS X 10.11 El CapitanのSystem Integrity Protection(SIP) (rootless)についてちょっと詳しく El Capitanにアップデート後、 $ sudo chown -R $(whoami):admin /usr/local によって/u
(毎度のことですが)私はまだ El Capitan をインストールしてません(2015/10/22に El Capitan v10.11.1 Update が出ましたしヒトバシラーの時期も過ぎた気配なので、そろそろ入れても安心かも)。 Homebrew 周辺に関するメモ書きです。 El Capitan を入れる前に OS X 10.11 El Capitanにアップデートするさいの注意点まとめ。 も一読されることをお勧めします。 SIP/rootlessの影響 米国時間 2015/9/30 から提供され始めた OS X 10.11/El Capitan では、新しいセキュリティである System Integrity Protection (SIP、別名 rootless)が動作しています。 SIP/rootless に関しては、末尾に解説記事などの参考リンクを列挙しておきます。簡単に言え
自分のiOSデバイスなら開発者ライセンスなして、アプリを動かせるようになるので、自動でコードを落してきてビルドして転送するタイプのアプリ配布補助をだれか初めてほしい。「brew install ios/hoge」でイスントールできる感じ— mzp (@mzp) 2015, 6月 10 Xcode7 からApple Developer Programに参加しなくて、iOSアプリの実機デバッグが可能になった。 これを利用し、Github等で公開されているソースコードをダウンロードし、自分のiPhoneにインストールするHomebrew拡張を作った。 例えば brew sparkling install SparkingSample でサンプル用のアプリケーションがインストールされる。 主な用途としては、次のようなアプリケーションの配布を想定している。 進捗時計のような雑なアプリケーション。Ap
3月20日に13″ rMBP early 2015が手元に届いたので、以下の様なツイートをしながらPlaybookを作っていました。 GUIアプリも含めて全部Homebrewで管理してみようかな。 — まわたりなおと (@mawatarin) 2015, 3月 20 んー?Brewfileで管理できないのか? http://t.co/g8eBr2tInk — まわたりなおと (@mawatarin) 2015, 3月 20 うん。Brewfileの代替はこれがよさそうだな。今夜やってみよう。 http://t.co/mxXRd3IGK2 — まわたりなおと (@mawatarin) 2015, 3月 20 例のごとく、そのとき取り組んだことを整理した上で公開しようとしていたわけですが、その日の夕方、@t_wadaさんによって、Mac の開発環境構築を自動化する (2015 年初旬編)という
B! 61 0 0 0 OS X Yosemiteの配布が始まったので 手元のMacをアップグレードしてみました。 アップデート前にすること アクセシビリティが外れてる? メニューバーが黒く出来る様になった Homebrew doctor Powの再インストールが必要だった アイコン Mavericksの途中から出てきた問題 Ruby1.8が完全に消された Spotlightが独立して中央に表示されるようになった コマンドラインメール(postfix)の設定 インターネットが遅い? このアプリケーションで開く、が遅くなった Yosemiteの高速化等 アップデート前にすること 色々な所で言われてますが、Yosemiteにアップグレードしようとする際、 /usr/localフォルダに色々と物が入っていると異常に時間がかかる、 といった現象が起こる様です。 アップグレードする際にそこに入ってる
今更ですが、Lion から Mavericks にアップグレードしました。OS のアップグレードは色々トラブルが起こるのであまりしたくないのですが、流行りについていかないのもなぁと思いアップグレードを実行しました。 そしたらターミナルが起動しなくなりました。一瞬起動したような感じがするのですが、すぐにウィンドウが消えます。標準のターミナルでも iTerm でも同様の症状なので zsh 周りの問題だろうと考え、一度ログインシェルを /bin/bash へと変更しました。変更の仕方は「システム環境設定」=>「ユーザーとグループ」にて変更するための鍵をクリックし、ログインユーザーを右クリックで詳細オプションを見ます。そこに見えるログインシェルをひとまず /bin/bash などに変更すればターミナルが使えるようになります。 色々いじったので順番は定かではないのですが、以下のようにしたら直りました
Boxenと比べなくても、導入が簡単なので何かとオススメです。 要点# Brewfileを使えば、インストールするパッケージを管理できる BrewfileはHomebrewで最初から使える brew-caskもインストールすれば、Chromeとかもインストールできる Boxenの問題点# [2013-11-23-1] に導入したBoxenは以下の問題がありました。 ○インストールした一部のツールが壊れていることがある。再インストー ルで直ることもあるし、直らないこともある(詳細は[2013-11-23-1] の追記 参照)。 % wget zsh: illegal hardware instruction wget ○PuppetfileでRubyレシピ等のバージョンが固定されているため、最新の バージョンを気軽に試しづらい。というか、レシピのバージョンを上げて も問題がないか試したり考え
BrewfileでHomebrewパッケージを管理する この記事は1分で実現できる有用な技術 Advent Calendar 2013の24日目の記事です. Brewfileを使えば,Bundlerでrubygemsを管理するようにHomebrewのパッケージを管理できる.Brewfileのあるディレクトリで $ brew bundle とすれば,Brewfileに書かれたパッケージがすべてインストールされる.これはHomebrew公式のコマンドであり,特別なインストール等は必要なく,最新版にアップデートすればすぐに使うことができる. これを使えば,dotfilesに加えて自分のbrewパッケージを管理しておくこともできるし(tcnksm/dotfiles/Brewfile),imagemagickのようにプロジェクトで必要になるパッケージをBrewfileとして共有しておくこともできる.
■ [asakusarb] asakusa.rb 第220回 今日は手品も得意なくぼーんさんが初参加しつつ、割とだらだらもくもくした meetup だった。 http://www.lonestarruby.org/2013/lsrc が明後日からなんすよー トップページは "To Be announced" って書いてますけど、プログラムにはちゃんと内容書いてますよ 発表内容は考えてますよ、スライドは0枚ですけど。 mruby を eclipse で開発するというのを windows でやろうと思ってまして ぐぐると山根さんのスライドがトップに出てきますね... あるある Array#count にクラスを渡すことできるんですねえ 今まで何度 select して size を調べていたことか。 こういう小ネタを参加しますメールに仕込むの何か良いですね オレは railsgirls.gith
昔 brew install repl 便利 - 鳩舎 で repl というのを紹介したけど、これの補完が貧弱すぎて git なんかだとオプションがわからなくて実用に耐えなくてクソザコだったので reel というのを風邪を直したリハビリがてら書いた。まだ rubygems にあげてない。 git の補完が書き終わったらあげる。 Github: rosylilly/reel 使い方は README に書いてある通り。オプションまわりがちょっとめんどくさいので治したい気分。補完を書くのが大変なので、このへんを誰かにやらせたい。Rakefile の補完とかキャッシュできるので高速に動いて便利だと思う。Rails も。 補完に甘やかされた今時のゆとりに補完のない環境を与えると死ぬ。
プログラミング用フォント Ricty は、英字フォント Inconsolata と日本語フォント Migu 1M を合成させた、美麗な等幅フォントで、エディタでの利用に向いている。しかし、ライセンスの関係で TrueType 形式での配布がなくなり、自分で材料を用意しなくてはならなくなった。Ricty は利用したいけどこういう UNIX っぽいことには明るくないという私にような人だって数多くいるはずであるから、参考にしたい方もいるだろうと考えて、覚書を残しておく。 環境 MacBook Air 11″ (Mid 2011) OS X 10.7 Lion XCode インストール済み 材料を用意する Inconsolata のウェブページから OpenType 形式のファイルをダウンロードする M+とIPAの合成フォント のウェブページから Migu 1M の TrueType 形式ファイル
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く