Log in

Bekijk de volledige versie : Iperf not found



Anttu
05-04-2008, 08:20
I have found iperf (http://www.speedtest.fi/iperf.php) an excellent tool for connection evaluation. Iperf works in server-client way, and it would be great to use WL-500 as a server and PC as a client. Thus there is no need for two PC:s.

When I install iperf to Oleg's everything seems fine, but starting of iperf does not succeed:

[admin@(none) root]$ ipkg install http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/iperf_2.0.2-2_mipsel.ipk
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/iperf_2.0.2-2_mipsel.ipk
Installing iperf (2.0.2-2) to root...
Configuring iperf
Successfully terminated.
[admin@(none) root]$ iperf -s
-sh: iperf: not found

I have also tried to give the full path /opt/bin/iperf, but still I get the same error iperf: not found.

It is probably some simple trick that I being a newbie just cannot figure out. Please help. (And try iperf. It's great.)

al37919
05-04-2008, 08:47
such error usually is caused by inconsistence in libraries. Have you done an upgrade from earlier firmware recently? You may try:
ipkg install -force-reinstall uclibc-opt
ipkg install -force-reinstall ipkg-opt
More generalized solution is reinstallation of _all_ packages.

Anttu
05-04-2008, 19:16
Oh yes! Thank you!


[admin@(none) root]$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 42.7 KByte (default)
------------------------------------------------------------
[ 6] local 192.168.1.1 port 5001 connected with 192.168.1.122 port 53368
[ 6] 0.0-10.0 sec 27.8 MBytes 23.3 Mbits/sec

In addition I needed to install libuclibc++.

For some reason the path "http://ipkg.nslu2-linux.org/feeds/optware/wl500g/cross/stable" does not work for me in ipkg.conf. Ipkg update seems to work OK but ipkg install tends to add "Packages" in the end of the path and then I get "cannot find package". If I give full path to ipkg install, it works like a charm.