![]() |
Special note Perl is now available via the normal package ipkg process: # ipkg update # ipkg install unslung-feeds # ipkg update # ipkg install perl (note that you need to get perl from the unslung native feed) Hint: `export PERLDOC_PAGER="less -+C -E -R"` makes perldoc more useful. Unless you want to compile from scratch then the rest of this HowTo is not for you. Goal: Provide Perl 5.6.1/5.8.6 binaries + perl modules on the NSLU2. Prerequisites for installation from source: Installation of Unslung. Steps for installation from source: 1) Make sure you have the necessary tools installed: make, awk and coreutils. Otherwise Configure will fail. To install those tools add this line to your /etc/ipkg.conf file:
src unstable http://ipkg.nslu2-linux.org/feeds/unslung/unstable
Run:
ipkg update
ipkg install make
ipkg install coreutils
ipkg install gawk
2) Get build script * execute
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561-static.sh
and/or
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl568-static.sh
* review content of script, change if necessary
3) Build perl * execute
sh mk_nslu_perl561.sh
or
sh mk_nslu_perl586.sh
* wait ~90..120 minutes
* if everything is ok, perl gets configured, build, tested and installed under /opt/bin and /opt/lib
For easy installation I have made perl binaries available as ipk packet. As perl must be compiled at the NSLU natively, it is not part of the unslung build procedure. Thus I have published it on a separate ipkg feed directory (see http://groups.yahoo.com/group/nslu2-linux/message/2759). Just add following line to your /etc/ipkg.conf: src r2004roellig http://www.familie-roellig.de/public/nslu2/unslung To install perl just run: ipkg update
select one of these options to install perl
1) ipkg install perl
2) ipkg install perl561-static (same as 1, just alias)
3) ipkg install perl586-static (*)
4) ipkg install perl561-shared (works since unslung 3.17, built with Info.NativeNSLU2Toolchain and mk_nslu_perl561-shared.sh)
Note (*): is seems that the old ipkg-utils from unslung 1.x are not able to handle
the 10MB ipk file. Users of older unslung versions can use the tgz file
instead: http://www.familie-roellig.de/public/nslu2/unslung/perl-5.8.6-bin-static.tgz
Contact: Rene Roellig, r2004roellig@yahoo.de You need to cd / first. Otherwise, you get this: # ipkg update Downloading http://ipkg.nslu2-linux.org/feeds/unslung/unstable/Packages Updated list of available packages in /usr/lib/ipkg/lists/unslung Downloading http://www.familie-roellig.de/public/nslu2/unslung/Packages Updated list of available packages in /usr/lib/ipkg/lists/r2004roellig # ipkg install perl Installing perl (5.6.1-1) to root... Downloading http://www.familie-roellig.de/public/nslu2/unslung/perl_5.6.1-1_armeb.ipk ipkg: Cannot link from ./opt/bin/perl to './opt/bin/perl5.6.1': No such file or directory ipkg: Cannot link from ./opt/bin/pstruct to './opt/bin/c2ph': No such file or directory Configuring perl # You can fix this with: # ln -s /opt/bin/perl5.6.1 /opt/bin/perl # ln -s /opt/bin/c2ph /opt/bin/pstruct It would be good to fix the install script to not assume that . == / --tlhackque This has been fixed. Rene. _______________________________________________________ To build the IO::Compress::Zlib add '/opt/armeb/bin' to the path.. |