Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Does Perl run on ARM?

by Tux (Monsignor)
on Apr 12, 2014 at 08:00 UTC ( #1082067=note: print w/ replies, xml ) Need Help??


in reply to Does Perl run on ARM?

Short anser: yes it does.

Longer answer: it depends on what you want out of perl. I managed to build perl from scratch on my Synology DS213:

Linux 2.6.32.12 [DSM 4.3-3827-0] Feroceon 88FR131 rev 1 (v5l)/0 armv5 +tel 499 Mb $ /pro/bin/perl -v This is perl 5, version 19, subversion 4 (v5.19.4 (v5.19.3-309-g760100 +7*)) built for armv5tel-linux (with 1 registered patch, see perl -V for more detail)

But I have problems with dynamic loading due to shared lib conflicts. I installed the development suite as the Synology site prescribes. The CORE has been amended to support the deviating environment.

The download sites for the DSM also have prebuilt perl available, but I find</p

$ /usr/bin/perl -v This is perl, v5.8.6 built for MARVELL_88F6281

Way too old to play with :)

There is also an alternative resource, but that also is not reasonably up-to-date:

$ /opt/bin/perl -v This is perl, v5.10.0 built for arm-none-linux-gnueabi

IIRC Brian managed to do a cross-compile build for ARM.

Native compilation on ARM just uses Configure if the OS is Linux-like, so all rules for Linux/Unix regarding configuring threads, 32/64-bitness and all apply.

Not every ARM is the same. I noticed that my armv5tel is not the same as other ARM architectures. YMMV.


Enjoy, Have FUN! H.Merijn


Comment on Re: Does Perl run on ARM?
Select or Download Code
Re^2: Does Perl run on ARM?
by stefbv (Deacon) on Apr 12, 2014 at 09:08 UTC

    The Synology DSM 5.0 has a package for Perl 5.18.1. This is the good news, the bad news is that I didn't succeed to install modules probably because of the settings:

    % perl -V Summary of my perl5 (revision 5 version 18 subversion 1) configuration +: Platform: osname=linux, osvers=current, archname=armle-linux Compiler: Linker and Libraries: Dynamic Linking: Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_ +WRAP PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_LARGE +_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF Built under linux Compiled at Feb 27 2014 13:59:58 %ENV: PERL_READLINE_NOWARN="1" @INC: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl

    No compiler, linker and libraries configurations... :-(

    Regards,

    Stefan

      I just upped my DS213 from DSM-4.3-3827 to 5.0-4458-Update2. Not all went as smooth as I hoped. Besides all the usual broken symlinks, there is now a new sshd running that makes logging in a whole lot more troublesome.

      Backup using rsync still works, but not as a normal user, only as root :( :(

      Linux 2.6.32.12 [DSM 5.0-4458-2] Feroceon 88FR131 rev 1 (v5l)/0 armv5 +tel 499 Mb This is perl 5, version 18, subversion 1 (v5.18.1) built for armle-lin +ux

      That perl is cripled though:

      Checking if your kit is complete... Looks good CONFIG key 'lddlflags' does not exist in Config.pm CONFIG key 'ldflags' does not exist in Config.pm make: *** No rule to make target `/usr/lib/perl5/core_perl/CORE/config +.h', needed by `Makefile'. Stop.

      So building any sensible modules (V, Test::NoWarnings, DBI, DBD::Pg, Text::CSV_XS, Data::Peek, Test::Tester, DBD::SQLite, Tie::Hash::DBD, DBD::CSV) from that is close to impossible


      Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1082067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-11-26 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (163 votes), past polls