Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to distribute frozen binary gems with Ruby application (not Rails)
    primarykey
    data
    text
    <p>I wrote a bunch of Ruby scripts that integrate different tools to create a <a href="http://reganmian.net/wiki/researchr%3astart" rel="nofollow">"workflow for academics"</a>. A number of my friends have been very interested in trying this out, however they are held back by how hard it is to install or replicate my environment. </p> <p>Although Ruby comes built-in with Mac OSX (the applications I integrate are all Mac applications, so unfortunately the solution can only work on Mac), I use a few binary gems, including Appscript (bridge to AppleScript). The problem is that this requires XCode, which my non-programmer friends do not have installed (and it seems a bit demanding to ask them to install 3GB of software to run a few kbs of code). </p> <p>I tried freezing the gems by installing them with gem -i, into a subdirectory of the source (<a href="http://github.com/houshuang/folders2web" rel="nofollow">on github</a>), and tried removing my entire central gems directory on my local computer - it worked fine, the scripts still ran, etc. However, when my friends tried running the scripts, they got error messages about missing library files etc. </p> <p>So my two questions are: * how specific are compiled binary gems? will they work on other Mac OSX versions? with other versions of Ruby? etc * how can I find out exactly which binary files (located in central locations) a Ruby gem depends on, and package this with the source (and how do I tell the gem where to find these files in non-standard locations)</p> <p>I know this might not be "standard procedure", and I should just package it as a gem and let my friends deal with the problems etc - but I'd really like to solve this, and I am sure there must be some way of doing this?</p> <p>Thanks a lot </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload