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-alternativesto configurejruby,jgemandjirb - The script checks for
GEM_HOME, if undefined it modifies~/.profileto defineGEM_HOMEand puts gem binaries on your path, at logon. - Installs jdk11 if required sets
JAVA_HOME, needed to support jruby - Creates
~/.gemrcwithgem: no-document - Installs
picrategem To installpicrate_samplesalso configuresgeanyIDEfor use withpicraterunpicrate --installin 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.