PDA

Bekijk de volledige versie : AWK



Willie2_z
01-12-2008, 14:08
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 ?

al37919
01-12-2008, 20:35
Assuming you use Oleg's fw, you have awk here:

/usr/bin/awk
so, I'd recommend to check what you have in the PATH variable

Willie2_z
02-12-2008, 05:34
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

al37919
02-12-2008, 06:19
Your test is incorrect. Strictly speaking you have to do either


cd /usr/bin/
./awk

or


/usr/bin/awk

Willie2_z
02-12-2008, 06:36
[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

al37919
02-12-2008, 06:48
well, that's really very strange, even close to impossible ;)
which device you have, which version of the firmware?

cat /.version

In principle you can also install awk separately:

ipkg install gawk

Willie2_z
02-12-2008, 07:41
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/unslung/wl500g/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. :confused:

al37919
02-12-2008, 08:02
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.

Willie2_z
02-12-2008, 10:45
I installed the newest firmware. nad yeah, you were right. It works now..
Thanks a lot. ;)