I am working on a CGI script that needs to run on an ARM processor. The image for the ARM system is built using the uClibc buildroot environment and uploaded to the target through local FTP.

The ARM processor is an ARM1136 (part of a TI OMAP chip). The linux version is 2.6.19.1 with BusyBox 1.7.2. I've been using Perl 5.8.8, but am flexible as to what version I ultimately use. My host system is a i686 system running linux 2.6.20 (Ubuntu).

Buildroot includes a package for compiling microperl, which has worked fine up until this point. However, I now need to use the DBI module, which requires dynamic loading. As far as I can tell there is no way to build microperl to do dynamic loading, and thus, no way to do what I need using microperl. I get the following error when trying to use DBI (test script contains only use DBI;):

Can't load module DBI, dynamic loading not available in this perl. (You may need to build a new perl executable which either supports dynamic loading or has the DBI module statically linked into it.) at /usr/lib/perl5/5.8.6/DBI.pm line 864508 BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.6/DBI.pm line +263. Compilation failed in require at ./test.pl line 3. BEGIN failed--compilation aborted at ./test.pl line 3.

I've been trying to build a full version of perl for this target (or at least one that can use DBI), but have not been able to get anything to work.

If anyone has any suggestions as to how I can build a version of Perl for this target that will let me use DBI, I would be very appreciative.


In reply to Perl for arm buildroot target by cbanker

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.