Since it is based on Linux, the NAS can run many popular Linux
software packages, including Perl. In fact, Synology provides a
ready-to-install package for Perl, depending on the version of DSM
-the installed perl ranges from 5.8.6 on DSM-4.3 to 5.18.4 on DSM-5.1.
+the installed perl ranges from 5.8.6 on DSM-4.3 to 5.18.4 on DSM-6.0.1.
There is an active user community that provides many software packages
for the Synology DSM systems; at the time of writing this document
system that will affect how Perl 5 (hereafter just Perl) is
configured, compiled and/or runs. It has been compiled and verified by
Johan Vromans for the Synology DS413 (QorIQ), with feedback from
-H.Merijn Brand (DS213, ARMv5tel).
+H.Merijn Brand (DS213, ARMv5tel and RS815, Intel Atom x64).
=head2 Setting up the build environment
+=head3 DSM 5
+
As DSM is a trimmed-down Linux system, it lacks many of the tools and
libraries commonly found on Linux. The basic tools like sh, cp, rm,
etc. are implemented using
ln -s libm.so.6 libm.so
ln -s libcrypt.so.1 libcrypt.so
ln -s libdl.so.2 libdl.so
- cd /opt/powerpc-linux-gnuspe/lib (or /opt/arm-none-linux-gnueabi/lib)
+ cd /opt/powerpc-linux-gnuspe/lib (or
+ /opt/arm-none-linux-gnueabi/lib)
ln -s /lib/libdl.so.2 libdl.so
=back
B<WARNING:> When you perform a system software upgrade, these links
will disappear and need to be re-established.
+=head3 DSM 6
+
+Using iPkg has been deprecated on DSM 6, but an alternative is available
+for DSM 6: entware/opkg. For instructions on how to use that, please read
+L<Install Entware-ng on Synology NAS|https://github.com/Entware-ng/Entware-ng/wiki/Install-on-Synology-NAS>
+
+That sadly does not (yet) work on QorIQ. At the moment of writing, the
+supported architectures are armv5, armv7, mipsel, x86_32 and x86_64.
+
+Entware-ng comes with a precompiled 5.22.1 (June 2016) that allowes
+building shared XS code. Note that this installation does B<not> use
+a site_perl folder.
+
=head2 Compiling Perl 5
When the build environment has been set up, building and testing Perl
=over 4
-=item C<ext/DynaLoader/t/DynaLoader.t>
+=item F<ext/DynaLoader/t/DynaLoader.t>
One subtest fails due to the uncommon structure of the Synology file
-system. The file C</lib/glibc.so> is missing.
+system. The file F</lib/glibc.so> is missing.
-B<WARNING:> Do not symlink C</lib/glibc.so.6> to C</lib/glibc.so> or
+B<WARNING:> Do not symlink F</lib/glibc.so.6> to F</lib/glibc.so> or
some system components will start to fail.
=back
=head1 REVISION
-March 2015, for Synology DSM 5.1.5022.
+June 2016, for Synology DSM 5.1.5022 and DSM 6.0.1-7393.
=head1 AUTHOR