Experiments with ruby-processing (processing-2.2.1) and JRubyArt for processing-3.0

Showing posts with label archlinux. Show all posts
Showing posts with label archlinux. Show all posts

Wednesday, 30 October 2013

An opportunity to restore ruby-processing as a rubygem distributable gem?

It occurs to me that at least on ArchLinux (since processing-2.0.1) and the Mac (since processing-2.1) the location (path) of processing jars could be relied on (albeit OS specific). Further the majority of sketches can now be run with an installed jruby (which is now the default) thus we could exclude jruby-complete and the processing jars from the gem, and we would easily return to rubygems distribution. It would be sensible to retain the the jruby-complete as an optional post install to enable access to shader sketches and possibly still support application export, although that would not be a priority. The folks at processing are still inviting integration with the processing ide (see below), but I would prefer ruby-processing to stick with the ruby ecology.

Friday, 14 June 2013

Alternative install of ruby-processing for ArchLinux

It is possible to install JRuby using pacman on ArchLinux:-

sudo pacman -S jruby
This will install any dependency such as openjdk
You should now build the ruby-processing-1.0.12.gem

rake 
or:-

jruby -S rake 

To install:-

jruby -S gem install ruby-processing-2.2.0.gem 
Currently pacman installs JRuby-1.7.5 which is what we want, but there may be an issue of amd64 installs at runtime with it trying to load libjiffi-1.2.so for other architectures such as arm and i386 the fix is to install the latest jruby-launcher. However this should be installed locally from a downloaded gem (ie in the same way you just installed ruby-processing). You can then run the rp5 script by calling it from jruby(jruby -S may not be necessary depending o your setup):-

jruby -S rp5 run mysketch.rb 
or:-

/opt/jruby/bin/rp5 run mysketch.rb 
or after adding the path to the bin:-

rp5 run mysketch.rb 

Updated 13th October 2013

Followers

About Me

My photo
I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2