Installing the Freaky Freaky Sandbox
Two steps: (1) patch Ruby 1.8.5 and (2) install the sandbox extension.
1. Patching Ruby 1.8.5
Note: Ruby 1.9 in CVS has been patched (as of 2006-09-23) to support the latest sandbox. You can skip this step if you have 1.9 installed. Ruby 1.8 in Subversion still needs the patch to fix error.c (as of 2007-01-18)
Presently, the sandbox requires a patch for Ruby 1.8.5. It's a pretty significant patch, but shouldn't effect Ruby's stability.
$ cd ruby-1.8.5 $ patch -p1 < ruby-1.8.5-sandbox_needs.patch $ make # make install
(Here is the patch for Ruby 1.8.6)
2. Installing the Extension
Since the sandbox is under heavy development, I'd suggest hitting Subversion:
$ svn co http://code.whytheluckystiff.net/svn/sandbox/trunk sandbox $ cd sandbox # ruby setup.rb
A recent development version is also available as a tarball: http://code.whytheluckystiff.net/dist/sandbox-0.4.tgz
Attachments
-
ruby-1.8.5-sandbox_needs.patch
(13.5 kB) - added by why
16 months ago.
Ruby 1.8.5 patch to add 'Thread#kill!' and some sandbox threading hooks.
