cbanker has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl for arm buildroot target
by afoken (Chancellor) on May 12, 2009 at 07:28 UTC | |
by wol (Hermit) on May 12, 2009 at 11:22 UTC | |
by cbanker (Beadle) on May 12, 2009 at 17:26 UTC | |
by afoken (Chancellor) on May 14, 2009 at 14:01 UTC | |
by cbanker (Beadle) on May 14, 2009 at 19:51 UTC |