LoginSignup
60
55

More than 5 years have passed since last update.

IRubyを各環境にインストールする

Last updated at Posted at 2014-08-23

JupyterのRuby版kernel, IRubyをインストールする方法.
最新版の情報はIRubyのREADMEに書いてある.
https://github.com/SciRuby/iruby

参考: IRubyの動作画面
https://www.youtube.com/watch?v=ZxjqsIluM88

Ubuntu 15.10

rbczmqのおかげでインストールが楽とても楽.

pip install jupyter
pip install ipython
gem install rbczmq
gem install iruby
iruby notebook

MacOS X

ipythonのインストールは同様に.

pip install jupyter
pip install ipython

ffi-rzmqの動作にzeromq3.2.xが必要.
Anaconda上で環境構築した場合は以下の操作が必要.

conda remove zeromq
brew install zeromq

Macではrbczmqがうまくビルドできないらしいのでffi-rzmqを使う.

gem install ffi-rzmq
gem install iruby
iruby notebook

Windows

SciRubyにWindows持ってる人がほとんどいないので頑張ってpatch書いた.

PythonとIPython周辺環境のインストール

WindowsでPythonを動かすツールはいくらでもあるが今回はEnthought Canopyを使った.
https://www.enthought.com/

ZeroMQをインストール

ZeroMQのWebサイトから3.2系Stable Releaseのバイナリをダウンロード・インストールする.(x64でなくx86を選択すること)
http://zeromq.org/area:download

ZeroMQのインストールされたディレクトリのbinまでのパスを環境変数PATHに追加する.

後でインストールするffi-rzmqがPATHに入っているディレクトリからlibzmq.dllを探す仕様になっているので上記binの中のlibzmq-v100-mt-3_2_4.dlllibzmq.dllにリネームする.

IRubyと依存gemをインストール

PRはmergeされたが未だにgemがリリースされてないのでgit cloneしてくる.

git clone https://github.com/SciRuby/iruby.githttps://github.com/domitry/iruby.git
cd iruby
gem build iruby.gemspec
gem install iruby-0.2.7.gem

FreeBSD

以下の通りインストールできるらしい.
https://github.com/SciRuby/iruby#freebsd

参考

60
55
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
60
55