Squeezebox Server 7.6 + Perl 5.14

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: Squeezebox Server 7.6 + Perl 5.14

Postby korthaerd » Tue Oct 11, 2011 10:53 am

What did you tried ? Does the installation didn't work ?
To start the daemon use :
$this->bbcode_second_pass_code('', 'sudo rc.d start squeezebox-server')
Then go to http://yourip:9000/

If the binary still don't work, try to compile it with the PKGBUILD, you have to do :
$this->bbcode_second_pass_code('', 'makepkg -s
sudo pacman -U squeezebox-server-7.6.1-1-arm.pkg.tar.xz')
It takes several hours but it works for an Arm Archlinux, up to date. I have tried today and all went well.
I'll upload the binary later if you need it.

Edit : The binary is available here http://dl.free.fr/bNwxptuCx
korthaerd
 
Posts: 3
Joined: Sun Jul 10, 2011 11:02 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby SPA941 » Thu Oct 13, 2011 3:53 am

Thank you very much, I just downloaded wrong package file - just a tar ball, not a pkg file.

I installed your pkg and it works like a charm.

Now I can stream audio to my squeezebox radio.

Thanks again!
SPA941
 
Posts: 13
Joined: Wed Oct 05, 2011 4:02 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby ndrake » Sun Oct 16, 2011 5:29 pm

Thanks so much for posting the binary. It's working for me too.
ndrake
 
Posts: 17
Joined: Wed Jul 07, 2010 12:49 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby ndrake » Sat Nov 12, 2011 3:47 pm

Logitech has released a new version 7.7 and changed the name to Logitech Media Server. I'm attempting to build an arm compatible package based on the version in AUR (https://aur.archlinux.org/packages.php?ID=53691). Everything seems to build/install ok (doing makepkg -Ai after tweaking PKGBUILD similarly to what korthaerd provided in an earlier post). But when I try to start logitechmediaserver it complains that it cannot load a Perl module. I'm guessing I did something wrong when using makepkg or tweaking the PKGBUILD and the modules didn't get built correctly.

Has anyone else attempted installing this latest version on ALARM? Is there a community guide for building a package from AUR on a plug?

Thanks!
ndrake
 
Posts: 17
Joined: Wed Jul 07, 2010 12:49 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby WarheadsSE » Sat Nov 12, 2011 4:11 pm

Have you attempted to locate this perl module?

Have you tried using cpan? Is it an XS module, or a pure perl module?

There could be many things here. As I don't use it, ... I can't say.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Squeezebox Server 7.6 + Perl 5.14

Postby korthaerd » Sun Nov 13, 2011 6:45 pm

A new PKGBUILD for ARM is availble here : http://dl.free.fr/mBrI6sNXc, but I don't have time right now to compile it.
So if someone can try and report if it works or not it'll be great.
korthaerd
 
Posts: 3
Joined: Sun Jul 10, 2011 11:02 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby aegide » Tue Dec 20, 2011 4:54 pm

Hi all,

thanks for all the great work getting lms working on arm! I've tried the last posted PKGBUILD and while it went through quite quickly, i ran into numerous issues and specifically one i need help with.

here's what worked so far:

- installed some missing deps: base-devel abs nasm yasm perl-dbi
- build with 'makepkg --asroot -Acs' and install via 'pacman -U logitechmediaserver....'
- starting failed with some perl modules not beeing able to load:
- i installed "EV HTML::Parser XML::Parser::Expat Digest::SHA1 Sub::Name JSON::XS YAML::XS" in that order from CPAN shell (perl -MCPAN -e shell, then 'install [ModuleName]')
- i did not apply the patches from you, korthaerd, to the "new" Xml::Simple and XML::Parser::Expat (yet)
- next start failed with
$this->bbcode_second_pass_code('', '
The following CPAN modules were found but cannot work with Logitech Media Server:
Audio::Scan (loaded but missing object file, need 0.93)
Image::Scale (loaded but missing object file, need 0.08)
')
so i went back to CPAN and installed latest versions. while Audio::Scan went through fine, Image::Scale failed many of the libgif and libpng related tests. i forced the install for now, not caring about artwork being scanned.

- next start had two errors:

1) install Class::XSLoader for speed blah (1.13 was installed and loaded fine in my tests, 1.05 claimed. After some tests, i simply renamed the XSLoader.pm and folder w/i the local CPAN directory to XSLoader_fromSlim so that it loads the systemwide CPAN lib, error went away)

2) "Can't locate loadable object for module Media::Scan in @INC"

While some of my actions aren't clean, they got me working until now. The last one though was a bit tougher and i don't know if i did this right. Here are the notes I took while trying to fix the issue:

$this->bbcode_second_pass_quote('', '@')INC contains /opt/logitechmediaserver/CPAN in which resides Media/Scan.pm . Why then "Can't locate loadable object for module Media::Scan' ?? Ah: DynaLoader can't find an external lib that Media/Scan.pm is trying to load, or better XSLoader can't, as that's what is used..

External module objects are in CPAN/arch/5.14/arm-linux-gnueabi-thread-multi-64int/auto but only CPAN/arch/5.14/arm-linux-gnueabi-thread-multi/auto is in @INC, while $arch is armv5tel-linux-thread-multi in Slim/bootstrap.pm... the '5tel'-part gets reduced, so let's not worry about that. however, just linking CPAN/arch/5.14/arm-linux-gnueabi-thread-multi to CPAN/arch/5.14/arm-linux-gnueabi-thread-multi-64int results in a segfault, of course.. i therefore copied modules from i386 from logitech...tar.gz to ./auto and linked it to arm-linux-gnueabi-thread-multi .


Result: starting slimserver.pl doesn't give the error anymore, but now YAML::XS won't load...

Now my question: before i go on debugging this next issue, do you think i'm on the right track so far? Especially: can the .so-modules for i386 from the tar.gz distribution work at all with the arm arch? (the tar.gz only contains .so-files for 64bit arch/perl for perl 5.14)

It does seem like a lot of fixing and i'm not sure it's always done right. I'm willing to test some more, let me know.

Btw: this is on an iomega iconnect with kernel 3.1.4-2-ARCH on armv5tel Feroceon 88FR131 rev 1 (v5l) Marvell RD-88F6281. perl is perl 5, version 14, subversion 2 (v5.14.2) built for armv5tel-linux-thread-multi, using http://dl.free.fr/mBrI6sNXc for PKGBUILD.

Sorry for the lenghty post.. i really whish we could get this running!
aegide
 
Posts: 6
Joined: Tue Dec 20, 2011 3:39 pm

Re: Squeezebox Server 7.6 + Perl 5.14

Postby WarheadsSE » Tue Dec 20, 2011 5:24 pm

$this->bbcode_second_pass_quote('', 'E')specially: can the .so-modules for i386 from the tar.gz distribution work at all with the arm arch?

Uhm.. no.

The trick here is editing the PKGBUILD, in build() to uncomment build_cpan().
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Squeezebox Server 7.6 + Perl 5.14

Postby aegide » Wed Dec 21, 2011 4:21 pm

Hi,

well, i guessed so much, sorry, new to the arch/armel way of things..

I did finally manage to bake a .xz-package that installed and started w/o complaining. So far I have only connected to the webinterface, so can't tell about all the rest working. WIll do so in the next couple of days.

However, to get it running i had to:

$this->bbcode_second_pass_quote('', '
')Download logitechmediaserver-7.7.0-1.src.tar.gz referenced in PKGBUILD. Extract, apply patches to CPAN/XML/Parser/Expat.pm and CPAN/XML/Simple.pm as per the perl-5.14.patch file from Korthaerd's AUR-Install file. Repackage the directory as .tgz, get sha1sum for the resulting .tgz, update PKGBUILD file to reflect that change and remove http-link to the file on logitech's server replacing it with the local one. (This modification was due to the fact that the perl-5.14.patch didn't go through well and a first attempt to rewrite the patch didn't work so i chose this more direct method).

Further changes to PKGBUILD from Korthaerd:

- Uncomment build_cpan() in build(). (as suggested by WarheadsSE, thanks!)
- Replace svnurl value with svn.slimdevices.com/repos/slim/7.7/trunk/vendor/CPAN/
- Replace 5.12.3 with 5.12.4 (corresponding to entries in buildme.sh on said server)
- Replace 5.14.1 with 5.14.2 (as that's what i'm running)
- Remove line where perl-5.14.patch is applied (as i patched the tgz file beforehand)


My PKGBUILD is attached (actually it isn't, since the server won't let me upload neither a file called PKGBUILD nor if i add .txt extension. weird. If you need it, i'll paste it here in it's entirety, let me know), but remember, it only works with a locally patched logitech...tgz file as described above.

If everything works, I might try to build a package with the newer LMS version sometimes after the weekend.

Thanks for your help!
aegide
 
Posts: 6
Joined: Tue Dec 20, 2011 3:39 pm
Top

Re: Squeezebox Server 7.6 + Perl 5.14

Postby WarheadsSE » Wed Dec 21, 2011 4:27 pm

I'd like to help you get thsi sorted, as I can, .. the folks at slimdevices would much appreaciate your help.

What we should do, is take the AUR package, update it appropriately, and then place it into the PKGBUILDs github repo with a pull request. That way, it will be available via pacman :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

PreviousNext

Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests