Luis Lavena wrote:
> On Thu, Jan 8, 2009 at 2:57 PM, Earle Clubb <ecl...@valcom.com> wrote:
>> Luis Lavena wrote:
>>> On Mon, Nov 10, 2008 at 12:08 PM, Earle Clubb <ecl...@valcom.com> wrote:
>>>> I have a target which has no build capability (no make, headers, etc.).
>>>> I need to install do_sqlite3 on this target, but the install fails when
>>>> trying to build the native extensions.  Is there a pre-built binary or
>>>> some other way to make this work?
>>>>
>>> Which platform we are talking about?
>>>
>>> That's one of the scenarios I presented to some developers: the lack
>>> of build tools in the target (server) installation and how to deal
>>> with those.
>>>
>>> the problem is that not all the Linux distros are made the equal. For
>>> you to workaround this will need:
>>>
>>> - The exact match of distro/version your server runs.
>>> - Build toolchain for that distro.
>>> - install the sqlite required headers (via package management or something).
>>>
>>> Then, you can git clone "do" repository and build the gem for your platform:
>>>
>>> rake native gem
>>>
>>> AFAIK, that worked a few months ago, maybe will still work. After
>>> doing that you get a -linux or whatever version of the gem for that
>>> specific platform.
>>>
>>> Now you can setup a gem repository server or just upload that gem to
>>> your target and install it.
>>>
>>> Keep in mind that you still need/require sqlite3 in the server, unless
>>> you build a static version of the library.
>>>
>>> HTH,
>>>
>> I never was able to get "rake native gem" to work with do_sqlite3 0.9.6,
>> so I'm trying again with edge.
>>
>> When I run "rake native gem" in the do_sqlite3 directory, I get the
>> following complaint:
>>
>> rake-compiler must be configured first to enable cross-compilation
>> cd tmp/i386-linux/do_sqlite3_ext
>> make: Nothing to be done for `all'.
>> cd -
>> cp tmp/i386-linux/do_sqlite3_ext/do_sqlite3_ext.so lib/do_sqlite3_ext.so
>> rake aborted!
>> No such file or directory - tmp/i386-linux/do_sqlite3_ext/do_sqlite3_ext.so
>>
>> I don't need to cross-compile, because my development system and targets
>> are both running Fedora.  What must I do to get this working?
>>
> 
> the cross-compilation thing is a warning, but it continues.
> 
> Looks like the extension didn build properly.
> 
> Can you "rake clobber" and then pastie the results of rake native gem --trace 
> ?
> 
> We introduced some changes in rake-compiler that aren't published yet,
> so let's see if are related or not.
> 
> Sorry for the problems, there is no silver bullet for all the platforms.
> 

"rake clobber" fixed it.  I now have two gems: do_sqlite3-0.9.10.1.gem 
and do_sqlite3-0.9.10.1-x86-linux.gem.  Neither of them try to build 
native extensions when installed.  I would expect 
do_sqlite3-0.9.10.1.gem to build them, so what is the difference between 
the two gems?

Earle

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamapper@googlegroups.com
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to