Skip to content
Base utilitities for the Rbbt
Ruby R C Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin nil Aug 22, 2019
doc Allow failing on dependencies and control of bootstrap respawning Oct 11, 2017
integration_test nil Mar 15, 2011
lib Repect precedence of files for equivalent config options values Oct 14, 2019
test Identify the virtual resource path of a real path Sep 25, 2019
.gitignore Ignore *.save files May 30, 2016
.vimproject File migration and purging Oct 1, 2019
LICENSE LICENSE update Mar 11, 2013
Rakefile nil Dec 28, 2016
ToDo.txt nil Mar 26, 2014
rbbt-util.gemspec Regenerate gemspec for version 5.26.83 Oct 14, 2019



1 - install rvm: (will need git and curl installed)


curl -L | bash -s stable --ruby

cat .bash_profile > tmp.bash_profile
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> tmp.bash_profile
cp .bash_profile
mv tmp.bash_profile .bash_profile
. .bash_profile
rvm install 1.9.3

2 - install tokyocabinet (Intructions for user install follow. For system level, make sure we have dev package)

1 - download source from
2 - unpack and compile using a user-level prefix
3 - set LD_RUN_PATH and LD_LIBRARY_PATH to point there


mkdir -p tmp/tokyocabinet   
cd tmp/tokyocabinet
wget ""
tar xvfz tokyocabinet-1.4.47.tar.gz
cd tokyocabinet-1.4.47
    ./configure --prefix="$HOME/software/opt/tokyocabinet"
    make install
cat .bash_profile > tmp.bash_profile
echo "export LD_RUN_PATH='$LD_RUN_PATH:$HOME/software/opt/tokyocabinet/lib'" >> tmp.bash_profile
echo "export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:$HOME/software/opt/tokyocabinet/lib'" >> tmp.bash_profile
echo "export PATH='$PATH:$HOME/software/opt/tokyocabinet/bin'" >> tmp.bash_profile
cp .bash_profile .bash_profile.save2
mv tmp.bash_profile .bash_profile
. .bash_profile

3.pre1 - If using ruby 1.9 install these gems from github so that some issues with 1.9 are fixed


gem install specific_install hoe
gem specific_install -l
gem specific_install -l

3.pre2 - A couple of gems are better installed beforehand, since they require some configuration


# RSRuby
## Example in ubuntu
gem install rsruby -- --with-R-dir=/usr/lib/R/lib/ --with-R-include=/usr/share/R/include

## Example in MAC
gem install rsruby -- --with-R-dir=/Library/Frameworks/R.framework/Resources/

export JAVA_HOME="full_path_to_jdk"
gem install rjb

3 - install gems rbbt-util rbbt-sources rbbt-text rbbt-phgx, …


gem install rbbt-util rbbt-sources rbbt-text rbbt-phgx rbbt-entities rbbt-views rbbt-dm rbbt-GE

3.bis - Or install github repos and make ruby use them


cd git/
git clone
git clone
git clone
git clone
git clone
git clone
git clone
git clone
alias druby="env RBBT_LOG=0 ruby $(for d in $HOME/git/rbbt-*;do echo -n "-I$d/lib ";done)"
alias drake="env RBBT_LOG=0 rake $(for d in $HOME/git/rbbt-*;do echo -n "-I$d/lib ";done)"

4 - Install other gems that you might need for some of my workflows


gem install redcarpet thin

5 - Set up R to find the helper lib


echo "source(system('rbbt_Rutil.rb', intern =T));" >> $HOME/.Rprofile

6 - If you plan to run workflows you might want to redefine the default directory to place your workflows (~/.workflows)


mkdir -p ~/.rbbt/etc
mkdir -p ~/git/workflows
echo "~/git/workflows/" > ~/.rbbt/etc/workflow_dir
You can’t perform that action at this time.