NSLU2-Linux
view · edit · print · history

HowTo.MakeGNUGawkOnYourNSLU2Box History

Hide minor edits - Show changes to markup

January 19, 2005, at 02:46 PM by rwhitby --
Added lines 1-2:

Note that you can now use the instructions at NativelyCompileUnslungPackages to natively compile GNU gawk directly from the Unslung CVS repository.

December 03, 2004, at 02:42 PM by jeremyeglen --
Changed line 8 from:

Successful completion of NativeNSLU2Toolchain, which provides a development environment on your NSLU2. \\

to:

Successful completion of NativeNSLU2Toolchain (including setting and exporting C_INCLUDE_PATH), which provides a development environment on your NSLU2. \\

Changed line 29 from:
    make -f Makefile gawk\\
to:
    make -f Makefile gawk              (make should also work)\\
Changed line 31 from:
    mv gawk /usr/bin                   (Is this where it should be placed?)\\
to:
    mv gawk /opt/usr/bin               (ensure /opt/usr/bin is in your path)\\
November 08, 2004, at 05:47 AM by michaelebrownmindspringcom --
Changed lines 10-11 from:

Busybox version 1.00 (potentially optional). Use ipkg to install.
Bzip2 - use ipkg to install.

to:

Busybox version 1.00 (potentially optional). Use ipkg to install.

November 08, 2004, at 05:46 AM by michaelebrownmindspringcom --
Changed lines 10-11 from:

Busybox version 1.00 (potentially optional). Use ipkg to install.

to:

Busybox version 1.00 (potentially optional). Use ipkg to install.
Bzip2 - use ipkg to install.

November 08, 2004, at 04:51 AM by michaelebrownmindspringcom --
Changed line 16 from:

1) Retrieve source code for GNU gawk, unzip and untar. I did this from my NSLU2 box using the following command:

to:

1) Retrieve source code for GNU gawk, and then unzip and untar it. I did this from my NSLU2 box using the following command:

Changed line 23 from:

2) Create the gawk executable, and put it somewhere in your path.

to:

2) Create the gawk executable, and put it somewhere in your path.

November 08, 2004, at 04:28 AM by michaelebrownmindspringcom --
Changed line 9 from:

Successful completion of MakeGNUMakeOnYourNSLU2Box?. Make is needed to make gawk. \\

to:

Successful completion of BuildGNUMakeOnYourNSLU2Box. Make is needed to make gawk. \\

November 08, 2004, at 03:57 AM by michaelebrownmindspringcom --
Changed lines 1-33 from:
to:

Goal:

Build a native version of GNU gawk directly on your NSLU2 Box.

Prerequisites:

Installation of HomePage Unslung?.
Successful completion of NativeNSLU2Toolchain, which provides a development environment on your NSLU2.
Successful completion of MakeGNUMakeOnYourNSLU2Box?. Make is needed to make gawk.
Busybox version 1.00 (potentially optional). Use ipkg to install.

Steps:

The instructions for making GNU gawk are included in README and INSTALL files included in the release. However, this set of instructions are specific for the NSLU2. In addition, the sed command in step 2 takes care of a problem with the configuration script's creation of the config.h file. (It would be best if this were corrected in the GNU source file...) All these instructions take place directly on your NSLU2. Don't skip the prerequisites!

1) Retrieve source code for GNU gawk, unzip and untar. I did this from my NSLU2 box using the following command:

    cd /share/hdd/data
wget ftp://ftp.gnu.org/gnu/gawk/gawk-3.1.4.tar.gz
gunzip gawk-3.1.4.tar.gz (gunzip comes with Busybox 1.00)
tar -xvf gawk-3.1.4.tar

2) Create the gawk executable, and put it somewhere in your path.

    cd gawk-3.1.4
./configure (This takes about 7 minutes)
mv config.h config.tmp (configure incorrectly identifies presence of getgroups()(?))
sed -e '/HAVE_GETGROUPS/d' config.tmp >config.h
make -f Makefile gawk
strip gawk (Optional)
mv gawk /usr/bin (Is this where it should be placed?)

That's it! GNU gawk for the NSLU2!

view · edit · print · history · Last edited by michaelebrownmindspringcom.
Based on work by michaelebrownmindspringcom and jeremyeglen.
Originally by rwhitby.
Page last modified on April 14, 2005, at 10:26 PM