Difference between revisions of "Installation of PIONE"

From EosPedia
Jump to: navigation, search
(If ruby/gem is installed)
(In case to install directly from github)
Line 42: Line 42:
 
<br>
 
<br>
  
== In case to install directly from github ==
+
== Installing directly from github ==
 
+
 Download POINE form github.
+
  
 +
 Download POINE from github.
 +
<pre>
 
  $ git clone https://github.com/pione/pione.git
 
  $ git clone https://github.com/pione/pione.git
  $ bundle install --path vender/bundle
+
</pre>
 
+
<br>
=== Setting environment ===
+
  Update by bundle. <br>
 Run the following for defining variables of PATH and RUBYLIB.
+
Firstly, check if you have "bundle". If yes, you will see a line including bundle <br>
 +
<pre>
 +
$ which bundle
 +
/Eos/util/X86MAC64/bin/bundle
 +
</pre>
 +
<br>
  
  $ cd ${PIONE_REP}
+
Secondly, update bundle, if you have it. It is to be noted that the bundle install command is run in /pione, or
$ export PATH=$PWD/bin:$PATH
+
  set the path beforehand (Gemfile, vender/bundle and files below it are necessary). <br>
$ export RUBYLIB=$PWD/lib
+
<pre>
 +
$ cd pione
 +
$ bundle install --path vender/bundle
 +
</pre>
  
 or running pione/misc/env.sh is able to set the environment.
+
<br>
  
 
== The problem about install ==
 
== The problem about install ==

Revision as of 05:40, 22 May 2017

Installation of PIONE

Introduction

 PIONE is based on ruby, gem, bundle. Check if ruby, gem, bundle have been installed。ruby should have a version number greater than or equla to 1.9.2. Versions and installed directories of ruby, gem, bundle can be checked as bellow. If Eos has been installed previously, they may be found under the Eos directory. If the directories are not the same, PIONE may have problems in installation and execution. It is recommended that they are in the same directory.

$ which ruby
/Eos/util/X86MAC64/bin/ruby
$ which gem
/Eos/util/X86MAC64/bin/gem
$ which bundle
/Eos/util/X86MAC64/bin/bundle
$ ruby -v
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin12.5.0]
$ gem -v
1.8.23.2
$ bundle -v
Bundler version 1.7.7

If there are more than one ruby/gem, the unused versions should be deleted or renamed like gem1.9

Installation

When ruby/gem has been installed

 gem in ruby does work in the installation。Installation is done in the same directory as gem. When /usr/local or /sw/ are destinations, the administrator must do the installation.

$ gem install pione


 On update,

$ gem update pione



Installing directly from github

 Download POINE from github.

 $ git clone https://github.com/pione/pione.git


Update by bundle. 

Firstly, check if you have "bundle". If yes, you will see a line including bundle

$ which bundle
/Eos/util/X86MAC64/bin/bundle


Secondly, update bundle, if you have it. It is to be noted that the bundle install command is run in /pione, or

set the path beforehand (Gemfile, vender/bundle and files below it are necessary). 
$ cd pione
$ bundle install --path vender/bundle


The problem about install

 Currently, working on LINUX/OS-X is sure. But, There is problems on Windows, in relation to implementation of Ruby's Thread.

 In some environments, git/ruby/gem/bundle it may not have been installed git/ruby/gem/bundle and etc... .

 gitcan be installed in each environment (e.g. apt-get/yum). Most packages are supported.

 Currently, about the version of ruby is 1.9.2 of higher and 1.9-generations required. It is a plan that corresponds to the 2.1 in the future. If your LINUX corresponds only version 1.9 of ruby, you need to download the source code and install. Then, ZLIB/YAML is required. First install those, and next install configure/make/make of ruby.

 About gem, install it by downloading rubygems.

 bundle can be installed by gem.