PDA

Bekijk de volledige versie : CTCS webui, need help!!!



sollie
07-01-2007, 18:11
Does any body know what this error means:

[root@(none) ~]$ ipkg install ctcs
Installing ctcs (1.2-6) to root/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ctcs_1.2-6_mipsel.ipk
Configuring ctcs
ctcs.postinst: applet not found
postinst script returned status 1
ERROR: ctcs.postinst returned 1
Successfully terminated.

Sollie.

n00ben
07-01-2007, 19:03
open up 'ctcs.postinst' in your favorite editor and see what is failing.

/regards
Henrik

d3viant
07-01-2007, 22:38
that is, ctcs.postinst at /opt/lib/ipkg/info

My guess is that it references #!/bin/sh at the top when it should be #!/opt/bin/bash

(busybox provides the /bin/sh reference, but it is missing a lot of the functionality that bash has - the postinst script is probably trying to use something that busybox doesn't support)

sollie
08-01-2007, 21:54
Ok thanks, but is there a way to install it.

Sollie.

hal2k1
09-01-2007, 12:21
Ok thanks, but is there a way to install it.

Sollie.

Apparently not.

http://wl500g.info/showthread.php?t=6188

http://wl500g.info/showpost.php?p=44632&postcount=12

Unless you can find a way to install perl first.

hal2k1
11-01-2007, 11:41
First up, do "ipkg update".

Then do "ipkg install ctcs"

You will get a message thus:


$ ipkg install ctcs
Installing ctcs (1.2-6) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ctcs_1.2-6_mipsel.ipk
Installing perl (5.8.8-13) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/perl_5.8.8-13_mipsel.ipk
Configuring ctcs
ctcs.postinst: applet not found
postinst script returned status 1
ERROR: ctcs.postinst returned 1
Configuring perl
Successfully terminated.

ctcs.postinst just wants to run "/opt/lib/ipkg/info/ctcs.postinst", wich in turn just wants to run "/opt/etc/init.d/S90ctcs".

OK, tryin to run "/opt/etc/init.d/S90ctcs" at the command line, it says nothing, and nothing runs.

So trying "ctcs" at the command line, it says:

$ ctcs
bash: /opt/bin/ctcs: /usr/bin/perl: bad interpreter: No such file or directory

But perl was installed with no errors.

OK, where is perl?


$ which perl
/opt/bin/perl

What does ctcs say?


$ which ctcs
/opt/bin/ctcs
$ less /opt/bin/ctcs

Aha! There is the problem! perl is at /opt/bin/perl, not /usr/bin/perl.

OK, editing the first line of /opt/bin/ctcs to replace "/usr/bin/perl" with "/opt/bin/perl", now everything is running!

The only thing is, I can see the ctcs server via the web interface at my PC, but I can't figure out how to connect to the "-S" parameter so I can monitor enhanced-ctorrents, and I can't figure out how to add new torrents.