
翻訳のところはMicrosoft Translator Text APIを使って、webscript.ioで動かしてます。諸々、以下の記事などを参考にさせていただきました。
webscript.io上のコードはこちらに備忘録。

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install pyenv.bash_profileにeval "$(pyenv init -)"を追加
pythonのインストール時に"Missing the OpenSSL lib?"とかエラー出たらインストール。
$ xcode-select --install
最新のバージョンを調べてインストール。
Anacondaは機械学習のライブラリ。
$ pyenv install -l $ pyenv install 3.4.3 $ pyenv install anaconda-2.3.0 $ pyenv rehash $ pyenv local anaconda-2.3.0 $ pyenv global anaconda-2.3.0 $ pyenv version
Caffeのサイトにある手順通りでOK。以上で環境構築完了。
fdiskを使ってマスターブートレコードを初期化することもできたので追記。pdiskを使った場合はAppleパーティションマップでのパーティション管理になるんだけど、この場合、linuxマシンで認識できないことがあった。マスターブートレコードにしておけばその心配がないっぽい。fdisk を使用)fdisk でマスターブートレコードを初期化※例えば、HDDケースが/dev/disk1として認識されている場合$ fdisk -i /dev/disk1
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
-----------------------------------------------------
------ ATTENTION - UPDATING MASTER BOOT RECORD ------
-----------------------------------------------------
Do you wish to write new MBR and partition table? [n] y[enter]
fdisk でパーティションを定義※単一のパーティションで良ければauto [style]が便利$ fdisk -e /dev/disk1
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> auto hfs[enter]
fdisk:*1> p[enter]
Disk: /dev/disk1 geometry: 121601/255/63 [1953525169 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
*1: AF 0 1 1 - 1023 254 63 [ 63 - 1953525106] HFS+
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
fdisk:*1> w[enter]
Writing MBR at offset 0.
fdisk: 1> q[enter]
newfs_hfs で /dev/disk1s1 を初期化pdisk を使用)pdisk でパーティションマップを初期化※例えば、HDDケースが/dev/disk2として認識されている場合$ pdisk /dev/disk2
Edit /dev/disk2 -
Command (? for help): i[enter]
map already exists
do you want to reinit? [n/y]: y[enter]
A physical block is 512 bytes: 2048[enter]
A logical block is 512 bytes: [enter]
size of 'device' is 1953525168 blocks (512 byte blocks): [enter]
new size of 'device' is 1953525168 blocks (512 byte blocks)
Command (? for help): p[enter]
Partition map (with 512 byte blocks) on '/dev/disk2'
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_Free Extra 1953525104 @ 64 (931.5G)
Device block size=2048, Number of Blocks=488381292 (931.5G)
DeviceType=0x0, DeviceId=0x0
Command (? for help): c[enter]
First block: 64[enter]
Length in blocks: 1953525104[enter]
Name of partition: Extra[enter]
Command (? for help): p[enter]
Partition map (with 512 byte blocks) on '/dev/disk2'
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_HFS Extra 1953525104 @ 64 (931.5G)
Device block size=2048, Number of Blocks=488381292 (931.5G)
DeviceType=0x0, DeviceId=0x0
Command (? for help): w[enter]
Writing the map destroys what was there before. Is that okay? [n/y]: y[enter]
The partition table has been altered!
Command (? for help): q[enter]
newfs_hfs で /dev/disk2s2 を初期化