[ruby-talk:00265] freezing ruby scripts (Re: Re: Syntax Error help please)

From: matz@... (Yukihiro Matsumoto)
Date: 1999-04-02 03:01:48 UTC
List: ruby-talk #265
Hi.  Sorry for late responce.

In message "[ruby-talk:00263] Re: Syntax Error help please"
    on 99/03/25, "bryce" <thecrow@cyberdude.com> writes:

|  Just curious, could you briefly describe the process required
|for freezing or compiling Ruby source?  Is it possible that someone
|else could do this rather than yourself?

As far as I can guess from reviewing Python's freeze, you need first
to freeze is to scan (recursively) the script to find required
libraries.  Then generate the C source file which includes all the
ruby scripts for rb_eval_string().  You have to compile the source and
link all the required dynamic link libraries to produce the frozen
excutable image.  This is just concept outline.  You may meet other
obstacles to accomplish it.
                                                        matz.

In This Thread