emiliano.delic has asked for the wisdom of the Perl Monks concerning the following question:

Hello guys, Recently I cross compile perl for my mini2440 arm-linux (factory distro qtopia 2.2) which works pretty well. Now, I want to write small script for collecting data from DI and AI. For this I need to have DBI library and DBD sqlite driver. My cpan does not work and i do not have "make" command in qtopia2.2. 1. So, my question is how to install DBI and DBD::Sqlite for my MINI2440? Thanks, Emil

Replies are listed 'Best First'.
Re: DBI cross compile
by anonymized user 468275 (Curate) on May 05, 2011 at 16:10 UTC
    Update: first check for a different flavour of make like nmake and update the configuration of whatever you are installing (CPAN was it?) to identify the make program to it. Failing that... (makes me wonder exactly how you got this far in your platform installation though)

    So, download and install GNU make (google what I just said). It comes in tar.bz format. If you don't have bzip2 or tar you can guess what I am going to say to that! But if you are missing something fundamental like gcc or libc, then I would abort and rethink your platform.

    One world, one people

Re: DBI cross compile
by chrestomanci (Priest) on May 06, 2011 at 10:18 UTC

    I was the monk who front paged your question, because I think it is important.

    As anonymized user 468275 said, for native perl modules the simplest solution is to obtain a copy of make from somewhere. I have done that myself in the past in order to install CPAN modules under windows/

    On the other hand, that would not work for XS modules that need compiling, on on platforms where no make binary is available. For that you would need a true cross compiler, which I don't think CPAN supports.

    I am also investigating this as I am looking to run perl on low powered ARM platform, and I have heard experiences from other people that it is often hard to install perl modules on such devices because there is not enough memory to run the CPAN tool, or compilers needed to build XS modules.

    If you find a way to cross compile perl modules then please let us know.

Re: DBI cross compile
by steve (Deacon) on May 09, 2011 at 16:27 UTC

    I am not sure how much this may meet your needs, but DBI::PurePerl exists. I have not seen a pure perl implementation of a DBD for sqlite.

    This would be slower, but it might relieve issues with compiling.