Difference between revisions of "Installation of PIONE"
(Created page with "'''Installation of PIONE''' == If ruby/gem is installed == rubyのもつgemの機能に対応しています。インストール先に/usr/localや/sw/を利用す...") |
(→If ruby/gem is installed) |
||
Line 3: | Line 3: | ||
== If ruby/gem is installed == | == If ruby/gem is installed == | ||
− | + | You can install PIONE by using functions of gem in ruby. It use /usr/local and /sw/ when install, therefore the privileges of the user who install need to be an administrator. Currently, only 1.9 version can work. Consequently, it may need gem1.9 depending on the version of ruby/gem. | |
$ gem install pione | $ gem install pione | ||
Line 9: | Line 9: | ||
$ gem1.9 install pione | $ gem1.9 install pione | ||
− | + | If you want to update, try running the following. | |
$ gem update pione | $ gem update pione | ||
or | or | ||
$ gem1.9 update pione | $ gem1.9 update pione | ||
− | |||
− | |||
== 直接githubからインストールする場合 == | == 直接githubからインストールする場合 == |
Revision as of 08:29, 24 July 2014
Installation of PIONE
If ruby/gem is installed
You can install PIONE by using functions of gem in ruby. It use /usr/local and /sw/ when install, therefore the privileges of the user who install need to be an administrator. Currently, only 1.9 version can work. Consequently, it may need gem1.9 depending on the version of ruby/gem.
$ gem install pione or $ gem1.9 install pione
If you want to update, try running the following.
$ gem update pione or $ gem1.9 update pione
直接githubからインストールする場合
githubからPIONEをダウンロードしてきます。
$ git clone https://github.com/pione/pione.git $ bundle install --path vender/bundle
環境の設定
下記のコマンドを通して、PATHとRUBYLIBの変数の定義をします。
$ cd ${PIONE_REP} $ export PATH=$PWD/bin:$PATH $ export RUBYLIB=$PWD/lib
pione/misc/env.shを実行することでその環境を設定することも出来ます。
Install上の問題
現在、LINUX/OS-Xでの動作が確認されています。Windows上ではRubyのThreadの実装の関係で問題が生じます。
それぞれの環境で、git/ruby/gem/bundleなどがインストールされていない場合があります。
gitはそれぞれの環境毎でインストール(apt-get/yumなど)が可能です。ほとんどのパッケージで対応しています。
現在、rubyのバージョンは、1.9.2以上で1.9台を要求しています。2.1にもいずれ対応する予定です。 rubyのバージョンが1.9.1しか対応していないLINUXでは、ソースコードをダウンロードして、インストールする必要があります。その際、ZLIB/YAMLなどが必要になります。まず、そちらをインストールしてから、rubyのconfigure/make/make installを実行して下さい。
gemは、rubygemsをダウンロードしてインストールして下さい。
bundleは、gemからインストールできます。