- Download RubyInstaller.
- Versions 2.x.x are supported.
- Install RubyInstaller version.
- Enable the Add Ruby executables to your PATH option presented during installation.
- Open a command prompt (Windows Key + R then type
cmd
).- Confirm installation by typing
ruby -v
. - The output should show the ruby version (e.g.
ruby 2.0.0p451 (2014-02-24) [x64-mingw32]
).
- Confirm installation by typing
Continue with Install the bel-search-sqlite gem.
Option 1: Homebrew
- Install with homebrew by typing
brew install ruby
. - Add ruby commands to your PATH.
- Add to .bash_profile.
echo 'export PATH="/usr/local/Cellar/ruby/VERSION/bin:$PATH"' >> .bash_profile
- Update environment by sourcing .bash_profile.
source ~/.bash_profile
- Add to .bash_profile.
- Confirm installation by typing
ruby -v
.
Option 2: rbenv
-
Install with homebrew.
brew update
brew install rbenv ruby-build
- More details [here] (https://github.com/sstephenson/rbenv#homebrew-on-mac-os-x).
-
Install with git.
- Clone rbenv repository.
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
- Add to .bash_profile.
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
- Enable shims and autocompletion from the terminal.
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
- Clone ruby-build repository.
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
- More details [here] (https://github.com/sstephenson/rbenv#installation).
- Clone rbenv repository.
Continue with Install the bel-search-sqlite gem.
Option 1: Install via package manager.
- Example installation with Ubuntu.
- Type
sudo apt-get install ruby
in the terminal.
- Type
Option 2: rbenv
- Install with git.
- Clone rbenv repository.
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
- Add to .bash_profile.
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
- Enable shims and autocompletion from the terminal.
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
- Clone ruby-build repository.
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
- More details [here] (https://github.com/sstephenson/rbenv#installation).
- Clone rbenv repository.
Continue with Install the bel-search-sqlite gem.
- Open a terminal or command prompt.
- Use the
gem
command to install thebel-search-sqlite
gem.gem install bel-search-sqlite
- You should see something like the following:
Fetching: bel-search-sqlite-0.1.0.gem (100%) Successfully installed bel-search-sqlite-0.1.0 Parsing documentation for bel-search-sqlite-0.1.0 Installing ri documentation for bel-search-sqlite-0.1.0 1 gem installed
- If you have questions with the
bel-search-sqlite
gem please post to the [openbel-discuss] (https://groups.google.com/forum/#!forum/openbel-discuss) google group. - If you encounter errors please post an issue to [github issues] (https://github.com/OpenBEL/bel.rb-search-sqlite/issues).