Assuming you use Oleg's fw, you have awk here:
so, I'd recommend to check what you have in the PATH variablePHP Code:
/usr/bin/awk
Hi.
I tried to follow the RRDTOOL-guide by macsat.
But it doesn't work. Nothing happens.
I then tried to run the RRDTOOL-script manually, but it returns with an error: /opt/usr/bin/rrdtool.sh: 128: awk: not found
so it seems like I don't have awk.
How do I install this ?
Assuming you use Oleg's fw, you have awk here:
so, I'd recommend to check what you have in the PATH variablePHP Code:
/usr/bin/awk
I do use Oleg's firmware, but no, i don't have awk:
[admin@wl500g bin]$ cd /usr/bin/
[admin@wl500g bin]$ awk
-sh: awk: not found
Your test is incorrect. Strictly speaking you have to do either
orPHP Code:
cd /usr/bin/
./awk
PHP Code:
/usr/bin/awk
[admin@wl500g bin]$ cd /usr/bin/
[admin@wl500g bin]$ ./awk
-sh: ./awk: not found
[admin@wl500g bin]$ /usr/bin/awk
-sh: /usr/bin/awk: not found
[admin@wl500g bin]$
still the same
Last edited by Willie2_z; 02-12-2008 at 06:38.
well, that's really very strange, even close to impossible
which device you have, which version of the firmware?
In principle you can also install awk separately:PHP Code:
cat /.version
PHP Code:
ipkg install gawk
Actually I tried that earlier with this result:
cat /.version
1.9.2.7-5
[admin@wl500g bin]$ ipkg update
Downloading http://wl500g.dyndns.org/ipkg/Packages
Updated list of available packages in /opt/lib/ipkg/lists/wl500g
Downloading http://ipkg.nslu2-linux.org/feeds/un...l500g/Packages
Updated list of available packages in /opt/lib/ipkg/lists/unslung
Successfully terminated.
[admin@wl500g bin]$ ipkg install gawk
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package gawk.
Check the spelling or perhaps run 'ipkg update'
[admin@wl500g bin]$
Still no go.
ok, now clear, you have a very old version of the firmware.
according to http://oleg.wl500g.info/ Oleg first added awk applet in 1.9.2.7-5a
In addition you use an old unslung/wl500g repository, while current one is optware/oleg The old one at the moment is not well maintained, so gawk package is really missing, despite some other packages depend on it.
There were a lot of changes since that version, so if you now install the latest version, probably you will have to make again setup of everything from the very beginning ( there is a very good and up-to-date tutorial from wengi ). If you switch to another repository, you'll have to reinstall all packages.
In principle, if you want a minimum effort solution, I'd guess you can install 1.9.2.7-5a It seems that it is still available.
I installed the newest firmware. nad yeah, you were right. It works now..
Thanks a lot.