Ruby
page-type |
---|
A nice object-oriented programming language
Rbenv
Ruby version manager
Rbenv Dependencies
Ubuntu:
apt-get install autoconf patch build-essential rustc \
libssl-dev libyaml-dev libreadline6-dev zlib1g-dev \
libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev \
libdb-dev uuid-dev
Arch:
yay -S --needed base-devel rust libffi libyaml openssl zlib
Don’t forget to install both rbenv
and rbenv-build
. I’m accustomed to installation with Git, but rbenv-installer is also a thing.
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
GitHub - rbenv/rbenv-installer: Installer and doctor scripts for rbenv
Glimmer
Ruby DSL for GUI applications in many environments
Glimmer SWT
gem install glimmer-dsl-swt
Enables Glimmer DSL for SWT in Java
Now you got a glimmer
command for running the scripts, and a girb
probably for Glimmer-enhanced irb
.
Glimmer on macOS
Run glimmer-setup
after install, then follow the instructions
$ glimmer-setup
~/.bash_profile has been modified
~/.zprofile has been modified
Before using `glimmer` or `girb`, start a new shell session in the same
directory (open a new terminal tab and go to the same directory) or run
the following command:
export JRUBY_OPTS="$JRUBY_OPTS -J-XstartOnFirstThread"
Afterwards, you may run the following commands:
glimmer
girb