macli has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Lately, I use uClinux a lot on embedded system (blackfin), I am just very curious if I can run Perl on uClinux, but I failed when I cross compile Perl in the uClinux-dist/user/perl on uClinux and I have no clue.

It seems not much sense to run Perl on uClinux since Perl is not the best language for embedded system, but I saw People successfuly run PHP on uClinux, so question is why not Perl?

Does anybody know where I could get clue about how to port Perl on different OS/Platform (blackfin uClinux)?

Replies are listed 'Best First'.
Re: Port Perl to uClinux?
by Corion (Patriarch) on Feb 21, 2008 at 06:51 UTC

    Perl has limited support for cross compiling, searching p5p for perl5-porters cross compile yields some threads where vkon participates (for WinCE) and this thread on cross-compiling on glibc for uClibc. But what I read there is not conclusive.

    In theory (I've never done this myself), you should be able to follow the outlines of what vkon describes in this post.

    My approach would be to try a "native" compile by either getting gcc to compile on the target machine or by using a VM to emulate a target machine with more RAM and CPU for compilation.

    Maybe you can show us how far you get and where the problems are?