Automated PiCrate Install
For a semi-automated setup and install, download and extract this gist. To keep your system clean put the file in a folder say
~/install_picrate
cd ~/picrate_install
bash picrate2_install.sh # to run default task
What the script does
- Downloads JRuby
- Installs JRuby to
/opt
- Uses
update-alternatives
to configurejruby
,jgem
andjirb
- The script checks for
GEM_HOME
, if undefined it modifies~/.profile
to defineGEM_HOME
and puts gem binaries on your path, at logon. - Installs jdk11 if required sets
JAVA_HOME
, needed to support jruby - Creates
~/.gemrc
withgem: no-document
- Installs
picrate
gem To installpicrate_samples
also configuresgeanyIDE
for use withpicrate
runpicrate --install
in a bash console
Note
GEM_HOME
, JAVA_HOME
and path to gem
binaries are not available until next logon, to use immediately you could:-
source ~/.profile
NB: this only works in current shell, so if you want to use geanyIDE
you should logout and logon again.