[MacRuby-devel] Sqlite3 without core data
Petr Kaleta
petr.kaleta at me.com
Thu Apr 28 02:21:50 PDT 2011
Hi Laurent,
ok I've removed vendor folder, install gems using macgem utility and require them using rubygems... So application is now executable without any problems using:
> macruby main.rb
So how can I compile it to an *.app and include all frameworks and gems, means create standalone distributable application? btw: I am not using Xcode.
- Petr
On Apr 28, 2011, at 10:28 AM, Laurent Sansonetti wrote:
> Hi Petr,
>
> Have you tried using `macruby_deploy --embed --gem ...' instead of
> vendoring the gems by yourself? It should work out of the box, and you
> do not need to change LOAD_PATH.
>
> Laurent
>
> On Thu, Apr 28, 2011 at 1:16 AM, Petr Kaleta <petr.kaleta at me.com> wrote:
>> Thanks for this hint, this lib looks great. Problem is, that I can't make it work. I am loading all gems from vendor folder inside my app. So:
>>
>> $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'vendor/sqlite3-ruby/lib'))
>> $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'vendor/sequel/lib'))
>>
>> require 'sqlite3'
>> require 'sequel'
>>
>> But the problem is, that when loading sqlite3 it raises this error:
>>
>> `loadExternalLibraries': no such file to load -- sqlite3/sqlite3_native (LoadError)
>>
>> Which looks really strange... Hints?
>>
>> - Petr
>>
>> On Apr 18, 2011, at 8:00 PM, Joe West wrote:
>>
>>> On Mon, Apr 18, 2011 at 7:47 AM, Rolando Abarca
>>> <rolando at gamesforfood.com> wrote:
>>>> try sequel: http://sequel.rubyforge.org/
>>>>
>>>
>>> +1 for Sequel
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
More information about the MacRuby-devel
mailing list