Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1

    Ipkg failed to download Squeezecenter 7.3.2

    I tried to install Squeezecenter 7.3.2 on a TeraStation Pro v.1 using ipkg. Here is the error message:

    root@SERVER:~# ipkg install squeezecenter
    Installing squeezecenter (7.3.2-1) to root...
    Downloading http://ipkg.nslu2-linux.org/feeds/op.../unstable//squ
    eezecenter_7.3.2-1_powerpc.ipk
    Configuring sed
    //usr/lib/ipkg/info/sed.postinst: /opt/bin/update-alternatives: No such file or
    directory
    postinst script returned status 127
    ERROR: sed.postinst returned 127
    Nothing to be done
    An error ocurred, return value: 22.
    Collected errors:
    ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp
    -q -P /tmp/ipkg-zYXQ66 http://ipkg.nslu2-linux.org/feeds/op...ds101g/cross/u
    nstable//squeezecenter_7.3.2-1_powerpc.ipk'
    Failed to download squeezecenter. Perhaps you need to run 'ipkg update'?

    Needless to say, I have run 'ipkg update'.

    Just before trying SC I tried to install sed and got the same error message. Is this significant?

    Ipkg works because bash successfully installed.

    Thanks,

    Tim T

  2. #2
    I did not know that TeraStation Pro v.1 can use the optware/ds101g powerpc feed. How did you setup ipkg on it? Any pointer to the guide/howto you're following?

    Looking at the build recipe of optware/make/ds101-bootstrap.mk, as part of the bootstrap.xsh, it will install an embedded ipkg-opt.ipk. The ipkg-opt.ipk should include an /opt/bin/update-alternatives. If it's installed under /opt/bin, you can try symlink it to /usr/bin.
    Last edited by bzhou; 2009-01-26 at 19:12.

  3. #3
    To get telnet access, I updated the TS's firmware to version 1.12 by downloading the file from http://homepage.ntlworld.com/itimpi/...tm#TERA_TELNET.

    To install wget to the TS, I downloaded the acp_commander.jar file and entered
    java -jar acp_commander.jar -t <IP ADDRESS> -o -addons
    from the c:\ prompt of my Windows computer.

    To install ipkg on the TS I followed the instructions on this Web page for PowerPC:
    http://buffalo.nas-central.org/index...(for_end-users), specifically:

    wget http://downloads.nas-central.org/LS1...0.99.153-1.tgz
    tar -C / -xvzf powerpc-hdhlan-ipkg-0.99.153-1.tgz

    Then I added the four ipkg feeds to /etc/ipkg.conf that are listed on that Web page.

    As I mentioned, I was able to install flac as well as bash. Here is the output for the flac install (still showing the error installing sed):

    root@SERVER:~# ipkg install flac
    Installing flac (1.2.1-1) to root...
    Downloading http://ipkg.nslu2-linux.org/feeds/op.../unstable/flac
    _1.2.1-1_powerpc.ipk
    Configuring flac
    Configuring sed
    //usr/lib/ipkg/info/sed.postinst: /opt/bin/update-alternatives: No such file or
    directory
    postinst script returned status 127
    ERROR: sed.postinst returned 127
    Successfully terminated.
    root@SERVER:~#

    I am afraid I don't understand your post on how to fix the sed error.

    Any ideas on the problem with installing squeezecenter?

    Thanks,

    Tim T

  4. #4
    Do you have an /opt/bin/update-alternatives file?
    EDIT: you don't have /opt/bin/update-alternatives but have /usr/bin/update-alternatives.
    So you can try "cd /opt/bin; ln -s /usr/bin/update-alternatives ." as a workaround.
    Last edited by bzhou; 2009-01-26 at 23:59.

  5. #5
    Thank you for your help. I have hit a brick wall. My attempts to install Squeezecenter on the Terastation via your ipkg feed are not working. So far, the best I have been able to do is download a tgz file and untar it. But I do not know what to do after that.

  6. #6
    Getting closer ...

    The problem with ipkg is that it was looking for a temporary directory to which to download the file that did not exist. I added the "--tmp-dir" option to force download to the "squeeze" directory. However, I get an error when "sed" runs -- it complains about the invalid option "i". (See install output below.)

    I assume that I need to pick up instructions from here: http://forums.slimdevices.com/showthread.php?t=52466. But how to deal with the invalid option "i"?


    root@SERVER:~# ipkg install --tmp-dir=/squeeze squeezecenter
    Installing squeezecenter (7.3.2-1) to root...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...-1_powerpc.ipk
    Configuring squeezecenter
    Enter SQUEEZECENTER_HOME location [/home/slimserver]:
    sed: invalid option -- i
    Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

    -n, --quiet, --silent
    suppress automatic printing of pattern space
    -e script, --expression=script
    add the script to the commands to be executed
    -f script-file, --file=script-file
    add the contents of script-file to the commands to be executed
    --help display this help and exit
    -V, --version output version information and exit

    If no -e, --expression, -f, or --file option is given, then the first
    non-option argument is taken as the sed script to interpret. All
    remaining arguments are names of input files; if no input files are
    specified, then the standard input is read.

    E-mail bug reports to: bug-gnu-utils@gnu.org .
    Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
    Successfully terminated.
    root@SERVER:~# cd /opt/share/squeezecenter
    root@SERVER:/opt/share/squeezecenter# sed -i.orig -e '/^ .*dbh->STORE.*AutoCommit.*0/s/^/#/' CPAN/DBI.pm
    sed: invalid option -- i
    Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

    -n, --quiet, --silent
    suppress automatic printing of pattern space
    -e script, --expression=script
    add the script to the commands to be executed
    -f script-file, --file=script-file
    add the contents of script-file to the commands to be executed
    --help display this help and exit
    -V, --version output version information and exit

    If no -e, --expression, -f, or --file option is given, then the first
    non-option argument is taken as the sed script to interpret. All
    remaining arguments are names of input files; if no input files are
    specified, then the standard input is read.

    E-mail bug reports to: bug-gnu-utils@gnu.org .
    Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
    root@SERVER:/opt/share/squeezecenter#

  7. #7
    Rather than using sed, I commented out the offending "AutoCommit" lines in each of the files (scanner.pl etc.) listed in the instructions here -- http://forums.slimdevices.com/showthread.php?t=52466.

    I then issued the start SC command -- /opt/etc/init.d/S99squeezecenter start -- held my breath ... and got: "Starting SlimServerSlimServer failed to run. Return value: 126."

    <Sigh> What now?

    TimT

  8. #8
    Perhaps perl hasn't been installed? Installed it ("ipkg install perl"). Perl is now installed in /opt/lib/perl/5.8.8. There is also a perl 5.6.1 in /usr/lib/perl/5.6.1 but there aren't nearly as many directories and files in the latter folder as in the former.

    I then tried to start squeezecenter, which again failed but this time with a return value of 0. I checked the log in the home directory and was told I had to do this:

    Please run: /opt/share/squeezecenter/Bin/build-perl-modules.pl DBD::mysql DBI XML::Parser::Expat HTML::Parser JSON::XS Compress::Zlib Digest::SHA1 YAML::Syck GD

    Which I did, and was told this:

    Can't locate lib.pm in @INC (@INC contains: /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/local/share/perl /usr/lib/perl5 /usr/share/perl5 /usr/share/perl5 .) at /opt/share/squeezecenter/Bin/build-perl-modules.pl line 13.
    BEGIN failed--compilation aborted at /opt/share/squeezecenter/Bin/build-perl-modules.pl line 13.

    Any thoughts on what to do next?

    TimT

  9. #9
    If you install squeezecenter ipkg from the feed, it should have installed all the dependencies as ipk's. So you don't need to run build-perl-modules.pl.

    From the error message you gave when running build-perl-modules, it is using /usr/bin/perl (5.6.1) rather than /opt/bin/perl (5.8.8). Buiding of binary extensions won't work unless you have a native compiler.

    Maybe you need to set PATH so that /opt/bin is in front of /usr/bin or /bin. The sed error message is also because you were using a less featured sed (/usr/bin/sed or /bin/sed), rather than the optware full featured /opt/bin/sed.

  10. #10
    Quote Originally Posted by bzhou View Post
    If you install squeezecenter ipkg from the feed, it should have installed all the dependencies as ipk's. So you don't need to run build-perl-modules.pl.

    From the error message you gave when running build-perl-modules, it is using /usr/bin/perl (5.6.1) rather than /opt/bin/perl (5.8.8). Buiding of binary extensions won't work unless you have a native compiler.

    Maybe you need to set PATH so that /opt/bin is in front of /usr/bin or /bin. The sed error message is also because you were using a less featured sed (/usr/bin/sed or /bin/sed), rather than the optware full featured /opt/bin/sed.
    I reinstalled sed and tried to use it to edit the DBI.pm etc. files; but as others reported in the "Installing Squeezebox to Linkstation" thread, sed did not work. So I edited those files manually.

    Is this the command for setting the PATH permanently?:

    echo 'export PATH=/opt/bin:$PATH' >> ~/.bashrc

    If I don't need to run build-perl-modules.pl, perhaps I should just rename it so it doesn't try to build when starting squeezecenter? Or is there a squeezecenter startup script that tries to run build-perl-modules.pl in which I can comment-out that line?

    Thanks again,

    Tim T

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •