Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Does Perl run on ARM?

by Tux (Abbot)
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 [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

Replies are listed 'Best First'.
Re^2: Does Perl run on ARM?
by stefbv (Curate) 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... :-(



      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 [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 key 'ldflags' does not exist in 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1082067]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2018-05-23 02:18 GMT
Find Nodes?
    Voting Booth?