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.
Permalink
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
etc/app.d
integration_test nil Mar 15, 2011
lib Repect precedence of files for equivalent config options values Oct 14, 2019
share
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
Migration-1.9.txt
README.rdoc
Rakefile nil Dec 28, 2016
ToDo.txt nil Mar 26, 2014
Troubleshooting.txt
VERSION
rbbt-util.gemspec Regenerate gemspec for version 5.26.83 Oct 14, 2019

README.rdoc

Install

1 - install rvm: rvm.beginrescueend.com/ (will need git and curl installed)

:script

curl -L https://get.rvm.io | bash -s stable --ruby

cd
cat .bash_profile > tmp.bash_profile
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> tmp.bash_profile
cp .bash_profile .bash_profile.save
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 http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz
2 - unpack and compile using a user-level prefix
3 - set LD_RUN_PATH and LD_LIBRARY_PATH to point there

:script

cd
mkdir -p tmp/tokyocabinet   
cd tmp/tokyocabinet
wget "http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz"
tar xvfz tokyocabinet-1.4.47.tar.gz
cd tokyocabinet-1.4.47
    ./configure --prefix="$HOME/software/opt/tokyocabinet"
    make
    make install
cd
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

:script

gem install specific_install hoe
gem specific_install -l https://github.com/bensomers/png.git
gem specific_install -l https://github.com/mikisvaz/tokyocabinet_19_fix.git

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

:script

# 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/

# JRB
export JAVA_HOME="full_path_to_jdk"
gem install rjb

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

:script

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

:script

cd
cd git/
git clone git@github.com:mikisvaz/rbbt-util.git
git clone git@github.com:mikisvaz/rbbt-sources.git
git clone git@github.com:mikisvaz/rbbt-text.git
git clone git@github.com:mikisvaz/rbbt-phgx.git
git clone git@github.com:mikisvaz/rbbt-entities.git
git clone git@github.com:mikisvaz/rbbt-dm.git
git clone git@github.com:mikisvaz/rbbt-rest.git
git clone git@github.com:mikisvaz/rbbt-studies.git
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

script

gem install redcarpet thin

5 - Set up R to find the helper lib

:script

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)

:script

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