Compiling Perl for synology
Compiling Perl for synology can be a painstaking process.
The NAS is primarily meant for using the apps that are already made available, and not so for developing your own apps.
A few things need to be considered:
Software versions can change: Let's hope also improve these found issues:
What I've discovered so far is that there are a few steps to creating an environment fit to compile.
first: install ipkg (best done by installing tool described here:http://www.mdevries.org/synology_optware.html
Then update ipkg to most recent packages: ipkg update
next: change the cpan.pm file, by updating the --decompress - stdout found here: http://forum.synology.com/enu/viewtopic.php?f=27&t=32673
This can be found quickly by first grepping the CPAN.pm file for this content, and finding the right line. (It's advisable to make a backup file for safety purposes)
next we need to make sure CPAN can 'make' the modules. This because by default Make is undefined
This is best described here: http://johnbokma.com/mexit/2010/09/22/cpan-writing-makefile-not-ok.html
Basically we first need to install make, by ipkg install make
ipkg install make
which make
cpan> o conf make make
then we need to change cpan config, to correctly point to the just downloaded config.
cpan> o conf make /usr/bin/make make /usr/bin/make
cpan> o conf commit commit: wrote /etc/perl/CPAN/Config.pm
After these steps, the default libraries of CPAN can be installed by opening CPAN, and typing:
install Bundle::CPAN
Many thanks go out to the authors of abovementioned stories, without whom I could not have found this. |