![]() |
HowTo.BuildPerlOnYourNSLU2Box HistoryHide minor edits - Show changes to markup February 11, 2007, at 04:01 PM
by --
Added lines 120-125:
_______________________________________________________ To build the IO::Compress::Zlib add '/opt/armeb/bin' to the path.. February 21, 2005, at 09:11 PM
by --
Added lines 15-16:
Hint: `export PERLDOC_PAGER="less -+C -E -R"` makes perldoc more useful. February 15, 2005, at 03:11 PM
by --
Added lines 6-10:
# ipkg install unslung-feeds # ipkg update January 25, 2005, at 08:25 PM
by --
Changed lines 6-8 from:
# ipkg install perl561-shared to:
# ipkg install perl (note that you need to get perl from the unslung native feed) January 25, 2005, at 03:24 PM
by --
Added lines 1-12:
Special note Perl is now available via the normal package ipkg process: # ipkg update # ipkg install perl561-shared Unless you want to compile from scratch then the rest of this HowTo is not for you. Added line 16:
January 06, 2005, at 08:40 PM
by --
Changed lines 62-64 from:
Note (*): the old ipkg-utils from unslung 1.x are not able to handle the 10MB
ipk file. Users of older unslung version need to use the tgz file
at: http://www.familie-roellig.de/public/nslu2/unslung/perl-5.8.6-bin-static.tgz
to:
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
Changed line 95 from:
This has been fixed. to:
This has been fixed. January 06, 2005, at 08:38 PM
by --
Changed lines 59-60 from:
3) ipkg install perl586-static
4) ipkg install perl586-shared (works since unslung 3.17, built with Info.NativeNSLU2Toolchain and http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561-shared.sh mk_nslu_perl561-shared.sh)
to:
3) ipkg install perl586-static (*)
4) ipkg install perl561-shared (works since unslung 3.17, built with Info.NativeNSLU2Toolchain and http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561-shared.sh mk_nslu_perl561-shared.sh)
Note (*): the old ipkg-utils from unslung 1.x are not able to handle the 10MB
ipk file. Users of older unslung version need to use the tgz file
at: http://www.familie-roellig.de/public/nslu2/unslung/perl-5.8.6-bin-static.tgz
January 05, 2005, at 11:57 PM
by --
Changed line 60 from:
4) ipkg install perl586-shared (works since unslung 3.17, just use Info.NativeNSLU2Toolchain and http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561-shared.sh mk_nslu_perl561-shared.sh)
to:
4) ipkg install perl586-shared (works since unslung 3.17, built with Info.NativeNSLU2Toolchain and http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561-shared.sh mk_nslu_perl561-shared.sh)
January 05, 2005, at 11:57 PM
by --
Changed line 60 from:
4) ipkg install perl586-shared (works since unslung 3.17, just use NativeNSLU2Toolchain? and http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561-shared.sh mk_nslu_perl561-shared.sh)
to:
4) ipkg install perl586-shared (works since unslung 3.17, just use Info.NativeNSLU2Toolchain and http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561-shared.sh mk_nslu_perl561-shared.sh)
January 05, 2005, at 11:56 PM
by --
Changed line 60 from:
4) ipkg install perl586-shared (different build instructions than above, to be published) to:
4) ipkg install perl586-shared (works since unslung 3.17, just use NativeNSLU2Toolchain? and http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561-shared.sh mk_nslu_perl561-shared.sh)
January 05, 2005, at 11:44 PM
by --
Changed line 29 from:
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561.sh to:
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561-static.sh Changed line 31 from:
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl568.sh to:
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl568-static.sh January 05, 2005, at 11:40 PM
by --
Changed line 40 from:
* if everything is ok, perl gets configured, build, tested and installed under /opt/perl to:
* if everything is ok, perl gets configured, build, tested and installed under /opt/bin and /opt/lib Changed lines 59-60 from:
3) ipkg install perl586-shared
4) ipkg install perl586-static
to:
3) ipkg install perl586-static
4) ipkg install perl586-shared (different build instructions than above, to be published)
January 05, 2005, at 11:38 PM
by --
Changed line 3 from:
Provide Perl 5.6.1 binaries + perl modules on the NSLU2. to:
Provide Perl 5.6.1/5.8.6 binaries + perl modules on the NSLU2. Changed lines 29-31 from:
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561.sh to:
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561.sh
and/or
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl568.sh
Changed lines 37-38 from:
* wait ~90 minutes * if everything is ok, perl gets configured, build, tested and installed under /opt/local/perl to:
or
sh mk_nslu_perl586.sh
* wait ~90..120 minutes
* if everything is ok, perl gets configured, build, tested and installed under /opt/perl
Deleted line 54:
ipkg install perl Changed lines 56-57 from:
Note: the formerly provided tar.gz archive I have removed from my server. to:
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-shared
4) ipkg install perl586-static
Added lines 89-92:
This has been fixed. Rene. January 02, 2005, at 03:21 PM
by --
Changed line 61 from:
@@# ipkg update to:
# ipkg update Changed line 73 from:
@@ to:
Changed lines 76-77 from:
@@ # ln -s /opt/bin/perl5.6.1 /opt/bin/perl # ln -s /opt/bin/c2ph /opt/bin/pstruct@@ to:
# ln -s /opt/bin/perl5.6.1 /opt/bin/perl # ln -s /opt/bin/c2ph /opt/bin/pstruct January 02, 2005, at 03:20 PM
by --
Added line 57:
Added lines 59-81:
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 December 21, 2004, at 11:55 PM
by --
Changed lines 8-9 from:
GNU to:
GNU Make 3.80\\ Changed line 10 from:
Utilities split, comm and sort from coreutils-5.2.1\\ to:
Coreutils 5.2.1 (split, comm and sort)\\ Changed line 15 from:
1) Make sure awk, comm, split and sort are installed at your box, otherwise Configure will fail. to:
1) Make sure you have the necessary tools installed: make, awk and coreutils. Otherwise Configure will fail. Added line 22:
ipkg install make Changed line 44 from:
on a separate ipkg feed directory (see http://groups.yahoo.com/group/nslu2-linux/message/2759) to:
on a separate ipkg feed directory (see http://groups.yahoo.com/group/nslu2-linux/message/2759). December 21, 2004, at 11:37 PM
by --
Changed lines 18-25 from:
I don't support compilation instructions here. Just download from my page.
* execute
wget http://www.familie-roellig.de/public/nslu2/perl/awk.tgz
tar -xvzf awk.tgz
wget http://www.familie-roellig.de/public/nslu2/perl/subset_coreutils.tgz
tar -xvzf subset_coreutils.tgz
* put the binaries to a place which is in your path
* sort utility needs to be found first in your search path - busybox sort will cause issues in perl build process
to:
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 coreutils
ipkg install gawk
December 21, 2004, at 10:59 PM
by --
Changed lines 43-46 from:
For easy installation I have made perl binaries available as ipk packet. to:
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) December 21, 2004, at 10:46 PM
by --
Changed lines 40-41 from:
Binaries: to:
[#target binary] Binary installation (ipk): December 21, 2004, at 10:35 PM
by --
Changed line 44 from:
src r2004roellig http://www.familie-roellig.de/public/nslu2/unslung/ to:
src r2004roellig http://www.familie-roellig.de/public/nslu2/unslung Changed line 50 from:
Note: the formerly provided tar.gz archive has been removed from my server. to:
Note: the formerly provided tar.gz archive I have removed from my server. December 21, 2004, at 10:29 PM
by --
Changed line 36 from:
* wait ~80 minutes to:
* wait ~90 minutes Changed lines 42-43 from:
Perl binaries have been compiled to reside in /opt/bin and /opt/lib. Currently 2 options are available: to:
For easy installation I have made perl binaries available as ipk packet. 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
ipkg install perl
Changed lines 50-58 from:
* ipkg binary perl installation
wget http://www.familie-roellig.de/public/nslu2/perl/perl_5.6.1-1_armeb.ipk
ipkg install perl_5.6.1-1_armeb.ipk
* tar ball installation
wget http://www.familie-roellig.de/public/nslu2/perl/perl_5.6.1-1-21Dec2004.tar.gz
tar -xvzf nslu2-perl-5.6.1-sta -C /
Maybe the perl ipk can be downloaded from the ipk server soon :) to:
Note: the formerly provided tar.gz archive has been removed from my server. December 21, 2004, at 12:18 AM
by --
Changed line 36 from:
* wait ~70 minutes to:
* wait ~80 minutes Changed lines 42-47 from:
Thanks to Ivan Van Laningham for hosting the binaries. Perl binaries have been compiled to reside in /opt/local/perl * execute
wget ftp://www.pauahtun.org/pub/nslu2/nslu2-perl-5.6.1-static.tar.gz
tar -xvzf nslu2-perl-5.6.1-static.tgz -C /
to:
Perl binaries have been compiled to reside in /opt/bin and /opt/lib. Currently 2 options are available: Added lines 45-53:
* ipkg binary perl installation
wget http://www.familie-roellig.de/public/nslu2/perl/perl_5.6.1-1_armeb.ipk
ipkg install perl_5.6.1-1_armeb.ipk
* tar ball installation
wget http://www.familie-roellig.de/public/nslu2/perl/perl_5.6.1-1-21Dec2004.tar.gz
tar -xvzf nslu2-perl-5.6.1-sta -C /
Maybe the perl ipk can be downloaded from the ipk server soon :) Deleted line 54:
December 20, 2004, at 10:37 PM
by --
Changed line 36 from:
* wait ~30 minutes to:
* wait ~70 minutes December 20, 2004, at 10:34 PM
by --
Changed lines 30-31 from:
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/mk_nslu_perl561.tgz
tar -xvzf mk_nslu_perl561.tgz
to:
wget http://www.familie-roellig.de/public/nslu2/perl/mk_nslu_perl561.sh December 20, 2004, at 10:26 PM
by --
Changed line 20 from:
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/awk.tgz to:
wget http://www.familie-roellig.de/public/nslu2/perl/awk.tgz Changed line 22 from:
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/subset_coreutils.tgz to:
wget http://www.familie-roellig.de/public/nslu2/perl/subset_coreutils.tgz December 20, 2004, at 10:23 PM
by --
Changed line 16 from:
1) Make sure awk, comm and split are installed at your box, otherwise Configure will fail. to:
1) Make sure awk, comm, split and sort are installed at your box, otherwise Configure will fail. Changed line 25 from:
* make sure the sort utility is found first in your search path - busybox sort will cause issues in perl build process to:
* sort utility needs to be found first in your search path - busybox sort will cause issues in perl build process December 20, 2004, at 10:21 PM
by --
Changed line 11 from:
Utilities split and comm from coreutils-5.2.1\\ to:
Utilities split, comm and sort from coreutils-5.2.1\\ Added line 25:
* make sure the sort utility is found first in your search path - busybox sort will cause issues in perl build process December 15, 2004, at 10:07 PM
by --
Changed line 3 from:
Provide Perl 5.6.1 binaries + all perl modules on the NSLU2. to:
Provide Perl 5.6.1 binaries + perl modules on the NSLU2. Changed line 51 from:
Contact: Rene Roellig, r2004roellig@yahoo.de to:
Contact: Rene Roellig, r2004roellig@yahoo.de December 14, 2004, at 11:56 PM
by --
Changed line 12 from:
NativeFloatingPointToolchain with flawless floating point support \\ to:
NativeFloatingPointToolchain with flawless floating point support December 14, 2004, at 11:55 PM
by --
Changed line 18 from:
I don't support comilation instructions here. Just download from my page. to:
I don't support compilation instructions here. Just download from my page. December 14, 2004, at 11:53 PM
by --
Added line 17:
Changed lines 20-23 from:
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/awk.tgz
tar -xvzf awk.tgz
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/subset_coreutils.tgz
tar -xvzf subset_coreutils.tgz
to:
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/awk.tgz
tar -xvzf awk.tgz
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/subset_coreutils.tgz
tar -xvzf subset_coreutils.tgz
Added line 27:
Changed lines 29-30 from:
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/mk_nslu_perl561.tgz
tar -xvzf mk_nslu_perl561.tgz
to:
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/mk_nslu_perl561.tgz
tar -xvzf mk_nslu_perl561.tgz
Changed line 33 from:
3) Build perl, just execute to:
3) Build perl Changed line 35 from:
sh mk_nslu_perl561.sh to:
sh mk_nslu_perl561.sh Changed lines 42-43 from:
Thanks to to:
Thanks to Ivan Van Laningham for hosting the binaries. Changed lines 44-46 from:
wget nslu2-perl-5.6.1-static.tar.gz * to:
* execute
wget ftp://www.pauahtun.org/pub/nslu2/nslu2-perl-5.6.1-static.tar.gz
tar -xvzf nslu2-perl-5.6.1-static.tgz -C /
December 14, 2004, at 11:46 PM
by --
Changed line 5 from:
Prerequisites: to:
Prerequisites for installation from source: Changed lines 14-17 from:
Binaries: Steps: to:
Steps for installation from source: Changed lines 16-20 from:
1) Make sure awk, comm and split are installed at your box. * wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/awk.tgz * tar -xvzf awk.tgz * wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/subset_coreutils.tgz * tar -xvzf subset_coreutils.tgz to:
1) Make sure awk, comm and split are installed at your box, otherwise Configure will fail. I don't support comilation instructions here. Just download from my page.
* execute
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/awk.tgz
tar -xvzf awk.tgz
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/subset_coreutils.tgz
tar -xvzf subset_coreutils.tgz
Changed lines 26-27 from:
* wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/mk_nslu_perl561.tgz * tar -xvzf mk_nslu_perl561.tgz to:
* execute
wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/mk_nslu_perl561.tgz
tar -xvzf mk_nslu_perl561.tgz
Changed lines 32-33 from:
* sh mk_nslu_perl561.sh to:
* execute
sh mk_nslu_perl561.sh
Deleted lines 36-39:
2. Binaries =========== tool chain: nslu-native-gcc3.4.2-glibc-2.3.2.tgz perl: nslu2-perl-5.6.1-static.tar.gz Added lines 38-49:
Binaries: Thanks to Perl binaries have been compiled to reside in /opt/local/perl wget nslu2-perl-5.6.1-static.tar.gz * Contact: Rene Roellig, r2004roellig@yahoo.de December 14, 2004, at 11:39 PM
by --
Deleted line 9:
Bash. Use ipkg to install. \\ December 14, 2004, at 11:39 PM
by --
Changed lines 11-13 from:
Awk 3.1.4 (http://de.geocities.com/r2004roellig/public/NSLU2/utils/awk.tgz awk.tgz) to:
Awk 3.1.4 Changed lines 20-76 from:
1) #!/bin/sh wget http://www.cpan.org/src/5.0/perl-5.6.1.tar.gz tar -xvzf perl-5.6.1.tar.gz cd perl-5.6.1 sh Configure -Dprefix=/opt/local/perl -des
sed s/"<built-in>"//g makefile > m.tmp mv m.tmp makefile sed s/"<command line>"//g makefile > m.tmp mv m.tmp makefile cd x2p sed s/"<built-in>"//g makefile > m.tmp mv m.tmp makefile sed s/"<command line>"//g makefile > m.tmp mv m.tmp makefile cd ..
sed s/"libs ="/"libs = -lm"/g makefile >m.tmp mv m.tmp makefile
cd ext cd Errno cp Errno_pm.PL Errno_pm.PL.bak sed s#/usr/include/errno.h#/opt/crosstool/nslu-native/static/armv5b-softfloat-linux/gcc-3.4.2-glibc-2.3.2/armv5b-softfloat-linux/include/errno.h#g Errno_pm.PL >tmp mv tmp Errno_pm.PL cd .. cd ..
make make test make install - run mk_nslu_perl561.sh sh mk_nslu_perl561.sh - if everything is ok, perl gets configured, build, tested and installed under /opt/local/perl to:
1) Make sure awk, comm and split are installed at your box. * wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/awk.tgz * tar -xvzf awk.tgz * wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/subset_coreutils.tgz * tar -xvzf subset_coreutils.tgz * put the binaries to a place which is in your path 2) Get build script * wget http://de.geocities.com/r2004roellig/public/NSLU2/perl/mk_nslu_perl561.tgz * tar -xvzf mk_nslu_perl561.tgz * review content of script, change if necessary 3) Build perl, just execute * sh mk_nslu_perl561.sh * wait ~30 minutes * if everything is ok, perl gets configured, build, tested and installed under /opt/local/perl December 14, 2004, at 11:24 PM
by --
Changed line 12 from:
Utilities split and comm from coreutils-5.2.1 - (http://de.geocities.com/r2004roellig/public/NSLU2/utils/subset_coreutils.tgz subset_coreutils.tgz)\\\\ to:
Utilities split and comm from coreutils-5.2.1 - (http://de.geocities.com/r2004roellig/public/NSLU2/utils/subset_coreutils.tgz subset_coreutils.tgz)\\ Added lines 15-16:
Binaries: Changed lines 20-70 from:
1) Get To to:
1) #!/bin/sh wget http://www.cpan.org/src/5.0/perl-5.6.1.tar.gz tar -xvzf perl-5.6.1.tar.gz cd perl-5.6.1 sh Configure -Dprefix=/opt/local/perl -des
sed s/"<built-in>"//g makefile > m.tmp mv m.tmp makefile sed s/"<command line>"//g makefile > m.tmp mv m.tmp makefile cd x2p sed s/"<built-in>"//g makefile > m.tmp mv m.tmp makefile sed s/"<command line>"//g makefile > m.tmp mv m.tmp makefile cd ..
sed s/"libs ="/"libs = -lm"/g makefile >m.tmp mv m.tmp makefile
cd ext cd Errno cp Errno_pm.PL Errno_pm.PL.bak sed s#/usr/include/errno.h#/opt/crosstool/nslu-native/static/armv5b-softfloat-linux/gcc-3.4.2-glibc-2.3.2/armv5b-softfloat-linux/include/errno.h#g Errno_pm.PL >tmp mv tmp Errno_pm.PL cd .. cd ..
make make test make install December 14, 2004, at 11:18 PM
by --
Changed lines 11-12 from:
Awk 3.1.4 (http://de.geocities.com/r2004roellig/public/NSLU2/utils/awk.tgz awk.tgz) Utilities split and comm from coreutils-5.2.1 - (http://de.geocities.com/r2004roellig/public/NSLU2/utils/subset_coreutils.tgz subset_coreutils.tgz)\\ to:
Awk 3.1.4 (http://de.geocities.com/r2004roellig/public/NSLU2/utils/awk.tgz awk.tgz) December 14, 2004, at 11:18 PM
by --
Changed lines 11-12 from:
to:
Awk 3.1.4 (http://de.geocities.com/r2004roellig/public/NSLU2/utils/awk.tgz awk.tgz) Utilities split and comm from coreutils-5.2.1 - (http://de.geocities.com/r2004roellig/public/NSLU2/utils/subset_coreutils.tgz subset_coreutils.tgz)\\ December 14, 2004, at 10:52 PM
by --
Changed line 3 from:
Compile Perl 5.6.1 binaries + all perl modules on the NSLU2. to:
Provide Perl 5.6.1 binaries + all perl modules on the NSLU2. Changed line 13 from:
NativeFloatingPointToolchain with flawless floating point support to:
NativeFloatingPointToolchain with flawless floating point support December 14, 2004, at 10:51 PM
by --
Changed line 8 from:
GNU Make 3.80 BuildGNUMakeOnYourNSLU2Box \\ to:
GNU \\ December 14, 2004, at 10:47 PM
by --
Changed lines 8-13 from:
GNU Make 3.80 BuildGNUMakeOnYourNSLU2Box Busybox version 1.00 (potentially optional). Use ipkg to install. Bash. Use ipkg to install. Awk? - download NSLU binary here. Utilities split? and comm? from coreutils-x.x.x. NativeFloatingPointToolchain with flawless floating point support. to:
GNU Make 3.80 BuildGNUMakeOnYourNSLU2Box December 14, 2004, at 10:45 PM
by --
Changed lines 1-32 from:
Describe BuildPerlOnYourNSLU2Box here. to:
Goal: Compile Perl 5.6.1 binaries + all perl modules on the NSLU2. Prerequisites: Installation of HomePage Unslung?. Steps: 1) Get To - run mk_nslu_perl561.sh sh mk_nslu_perl561.sh - if everything is ok, perl gets configured, build, tested and installed under /opt/local/perl 2. Binaries =========== tool chain: nslu-native-gcc3.4.2-glibc-2.3.2.tgz perl: nslu2-perl-5.6.1-static.tar.gz |