[Ruby] Packaging up image_science
Eric Hodel
drbrain at segment7.net
Fri Aug 17 11:30:07 PDT 2007
On Aug 16, 2007, at 15:12, Joe Van Dyk wrote:
> On 8/16/07, Eric Hodel <drbrain at segment7.net> wrote:
>> On Aug 16, 2007, at 13:44, Eric Hodel wrote:
>>> On Aug 13, 2007, at 10:29, Joe Van Dyk wrote:
>>>> How can I package up image_science to use in my Rails
>>>> application? I
>>>> don't want to have the web servers compile it. Ideally, I could
>>>> put
>>>> the shared lib into vendor/lib in my Rails app or something
>>>> similar.
>>>>
>>>> I read something about inline_package, but I can't figure out
>>>> how to
>>>> use it with image_science.
>>>
>>> gem unpack image_science
>>> cd image_science-version
>>> inline_package image_science version
>>
>> No, I lied.
>>
>> inline_package image_science-darwin 1.1.3
>> gem install pkg/image_science-darwin-1.1.3.gem
>
> So, ruby_inline looks for the shared library as a gem first? And if
> it doesn't exist as a gem, then it builds it?
No, it looks for inline/Inline_Class_mumble.c first. The inline/
directory could be anywhere in the load path. Look at inline.rb for
full details.
--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars
More information about the Ruby
mailing list