Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => dCore x86 Imported Extensions => Topic started by: Jason W on March 22, 2014, 05:27:05 PM

Title: Logitech Media Server
Post by: Jason W on March 22, 2014, 05:27:05 PM
Available from the below repo,

http://debian.slimdevices.com stable main

importsce logitechmediaserver

Those who have the player please test, I made a startup script to where the server seems to run here but I lack the equipment to see that it works as expected.
Title: Re: Logitech Media Server
Post by: sbp on March 23, 2014, 11:49:24 AM
Hi Very interesting - I have long wanted to combine the Logitech Media Server (LMS) with the tinycore linux. I think they would be a perfect match.

I would be even more interested in trying to run it on a Raspberry (ie the piCore) as this very energy efficient board would be very attractive as a 24/7 LMS server. Do you think that this would be possible as well?

Cheers
Steen
Title: Re: Logitech Media Server
Post by: Jason W on March 23, 2014, 02:23:45 PM
Actually, on looking at their main Debian package, all you need is perl and it will run on a variety of arch's, including arm. 

http://downloads.slimdevices.com/nightly/7.7/sc/b69eedd/logitechmediaserver_7.7.4~1395393887_all.deb

You then need to execute some commands:

mkdir pkg
ar -x logitechmediaserver_7.7.4~1395393887_all.deb
tar xvf data.tar.gz -C pkg

Then download the attached file, place it in the extension:

mkdir -p pkg/usr/local/tce.installed
cp logitechmediaserver pkg/usr/local/tce.installed/
sudo chmod -R 775 pkg/usr/local/tce.installed
sudo chown -R root:staff pkg/usr/local/tce.installed

For Pi:

cp logitechmediaserver-pi pkg/usr/local/tce.installed/logitechmediaserver
sudo chmod -R 775 pkg/usr/local/tce.installed
sudo chown -R root:staff pkg/usr/local/tce.installed

Then make the extension

mksquashfs pkg /etc/sysconfig/tcedir/sce/logitechmediaserver.sce -noappend

On piCore:

mksquashfs pkg /etc/sysconfig/tcedir/optional/logitechmediaserver.tcz -noappend

Title: Re: Logitech Media Server
Post by: Jason W on March 23, 2014, 03:25:39 PM
Oops, this does not run as is on the Allwinner A10 version of armk, but the above instructions should work on supported platforms.
Title: Re: Logitech Media Server
Post by: LDS on March 25, 2014, 04:24:41 PM
Thanks Jason.
I wanted to to some homework before getting back to you and I appreciate you posted your answer to my question in the forum.

First i tried your instructions in your 1st post to the forum (the easy way) using importsce and loadsce. Running /etc/init.d/logitechmediaserver did not complete: /usr/sbin/squeezeboxserver_safe not found. The file is in the un archived tree (ar-x of the package, untar of data.tar.gz), but it is not loaded (probably not in the sce, ... notice the script expect to find under sbin as opposed to bin!!. I tested with the three branches (stable, testing and unstable that use version 7.7.7.3, 7.7.4, and 7.8.x respectively. Same result.

I then tried the 2nd post (manual) method and noticed that all the architectures were in the staging (under pkg) tree. Used your startup script which seems to be an extract of the Debian postinstall file. I must confess there were some tar (not more space on the device ) errors at the very end of the mksquashfs, even though I had more than enough (+100MB over estimated with option -s to importsce). I do not recall now why it did not work. i rebooted several times and finally gave up as I lost all my work (scripting a couple of hours got lost with some funny non backing up despite I used backup as root before rebooting.

Please let me know if you (a) see the files I don't and most important (b) if you see the server running (easy check ps, the logs or just pointing any browser at ipaddress:9000 of your system). You don't  need players to check if the server is running. Is there any place where I can read what should be done on Debian startup script to get things up on DCL?

Thanks again for your dedication! Impressive one man task... It would be nice to get this problem nailed down...
 :)

Ps. I always liked Debian's philosophy among distros, and also the magic of TCL, so a combination of the two in DCL is really something BIG :)
Btw DCL too close to DSL ;-)
Title: Re: Logitech Media Server
Post by: Jason W on March 25, 2014, 05:24:17 PM
LDS - Thanks for the info and I will check up on it.
Title: Re: Logitech Media Server
Post by: Jason W on March 25, 2014, 07:04:58 PM
The existence of  /usr/sbin/squeezeboxserver_safe is found on my machine, and "sudo /etc/init.d/logitechmediaserver" starts the media server here, checked it with the 127.0.0.1:9000 on a browser which brought the email registration wizard.  I did just now add a check in the repo's startup script before adding the squeezeboxserver user, but that would not have an impact on what we are testing here.

When there are tar or mksquashfs errors when packing or unpacking archives due to lack of space or any other reason, there are many ways possible that it can affect the outcome.  For whatever reason there are out of space or unpacking/mksquashfs errors, I suspect that is the source of the problem.  I just tested this import on my box, and before importing df returned a 1730MB available on my disk, and the size option of imoportsce returned a 1729.53MB available.  The size data in the Debian repo's Packages file is where the estimated size comes from, so should be fairly accurate.  Here, the estimated size of the resulting SCE is overestimated by importsce by 24MB, 109MB is what the sce is when containing no deps, 133MB is what is estimated.  And I would rather have a slight overestimate than the opposite.  I used the "worst case scenario" in space calculation of the final sce to avoid errors.

Thanks for you interest and testing, let me know how it goes.  Yeah, I have always liked Debian too, I first used it when Sarge was going stable.
Title: Re: Logitech Media Server
Post by: LDS on March 25, 2014, 10:07:43 PM
Thanks again Jason!
In my previous attempts I did both with and without dependencies, and according to the estimates I always had enough RAM and flash memory space on the system. Is there any tool to unload an installed sce to get back to a pristine base state? I am sure is not just unmounting the tcloop fs, as there are "traces" of the sce install that you probably cope with some ad-hoc script in DCL.

And just to clarify things: Should I use just importsce route (as in your very first post? or the ar + mksquashfs "manual" approach of your second post? I will start from  scratch  (base) when I get back from work and will have a look at your latest check in too.
Thanks for your following up :)


Sent from my ...who cares?
Title: Re: Logitech Media Server
Post by: Jason W on March 26, 2014, 07:34:36 AM
Hi LDS -  Unloading or unmounting an sce  would not be simple as there are possibly many startup scripts that have been run on loading an SCE for one thing, and also the files are symlinked into the live filesystem.  With the former SCM extension, unloading was simple as the main system was not touched, not so with the SCE.

importsce should just work for this package, I will test it again on my box.
Title: Re: Logitech Media Server
Post by: Jason W on March 26, 2014, 09:30:44 AM
Re-imported, and it works fine here.
Title: Re: Logitech Media Server
Post by: sbp on March 26, 2014, 01:31:55 PM
Hi Jason.

I followed your very detailed "How-to" without any problems or errors - so I successfully build the logitechmediaserver.tcz on my raspberry pi using .

Next I loaded it with:
Code: [Select]
tce-load -i logitechmediaserver.tczIt went fine

Then I started the logitechmediaserver by:

Code: [Select]
tc@box:~$ sudo /etc/init.d/logitechmediaserver start
Making sure that Logitech Media Server is not running first: start-stop-daemon: warning: killing process 1982: No such process
Starting Logitech Media Server.
tc@box:~$

So it seems fine - however it is not running.
It is not found using "top"
Also if I try to connect to its webserver  it is not running (192.168.1.23:9000)

So I think we are very close - but there is probably a small problem somewhere. There is no log file in the var/log/squeezeboxserver, so there is no help here.

I only installed perl after I build the logitechmediaserver.tzc - will that be a problem?

Steen
Title: Re: Logitech Media Server
Post by: Jason W on March 26, 2014, 02:06:19 PM
As long as perl is there during the running of the app, it should be ok as there was no compiling.  There may be other dependencies needed other than perl, below is a list of debian ones from this site: http://www.pchilton.co.uk/2013/03/27/setup-a-squeezebox-server-using-a-raspberry-pi/

sudo apt-get install libjpeg8 libpng12-0 libgif4 libexif12 libswscale2 libavcodec53

Maybe some of those is what is missing. 

Since we are dealing with the Logitech Media Server and are probably very close to a solution, I am good with trying to help here but you may get better help at this stage if you bring this up in the Raspberry PI part of the forum where there are folks with that hardware and can help test. 
Title: Re: Logitech Media Server
Post by: sbp on March 26, 2014, 02:23:30 PM
Thanks for your help - I think you are right that I/we are missing more dependencies.

Unfortunately only some of those are available as tzc packages for the raspberry - I tried to install those that I could find (only two) but logitechmediaserver will not still not start.

I will need some time to figure out how to make the missing packages for piCore - but anyway thank you for looking into this.

Steen

Edit - As you know, the apt-get install does not work in piCore
Title: Re: Logitech Media Server
Post by: Jason W on March 26, 2014, 04:28:20 PM
The PiCore packages for those debs for those who may not know are:

libjpeg-turbo.tcz
libpng.tcz
giflib.tcz
libexif.tcz
ffmpeg2.tcz

Some fo their related factored tcz's may be needed too.

Title: Re: Logitech Media Server
Post by: LDS on March 26, 2014, 04:29:23 PM
Thanks Jason.

I see I can the sce for LMS when running dCore on virtualbox (live dCore-5.14.03.09.iso) for a VM with same (512MB) RAM and flash storage (2 to 16 GB never used more than 1 GB!) for persistence storage (tce), so the problem i described can be isolated. Eventhough the sce is generated without squahfs erros, the LMS does not run in teh VM. (any way to see logs?I tried  using "loadsce -d" to no avail... (?) . I use a custom kernel bacause a buggy Bios requires a patched driver, but I cannot see how the changes on a pata drive can harm this server.

A few things that may interest you: the dCore version I am using on the little real box dCore.gz  5.14.03.22 is slightly newer than the iso from release (5.14.03.09) and it really shows your work :). 
On the one hand the newest has much less errors during the import. I recall you mentioned in on of the recent posts these were inocuous. On the other hand with the newest dCore (22nd march) spits has some "cannot read .../opt/debextra/Packages"
Do you get these last type of errors?

Next thing I could try try is to copy over the sce's built on the VM onto the tce used for the real box (a thin client with CPU=AMD Geode GX 500 @366MHz, 512MB RAM) and let you know... unless you tell I should try something else :-)

Thanks again (and god night here) Jason!
 
LDS

ps. While rwriting this another (Rpi) user mentioned the logs too. So I am not alone... though you said you saw the web UI on 127.0.0.1:9000  (ummmh...). anyway. The errors I mentioned (cannot read ...'/Opt/debextras/Packages' ) might be related to dependencies. So if you do not get those, we might need to look somewhere else. Since LMS is not in an official debian repo it might help to look at   http://debian.slimdevices.com/dists/stable/main/binary-i386/Packages  (http://debian.slimdevices.com/dists/stable/main/binary-i386/Packages)
Title: Re: Logitech Media Server
Post by: Jason W on March 26, 2014, 04:48:13 PM
With VMware and a  custom kernel, those are 2 variables that may affect the outcome.  I am using neither.  And for testing purposes, the release candidate dCore.gz is the one to use though I am not sure there are any changes that would affect operation in this case.

What is your file in /opt/debextra/?  It is not supposed to be the Packages file, but a file with the entry like below

http://debian.slimdevices.com stable main
Title: Re: Logitech Media Server
Post by: Jason W on March 26, 2014, 05:02:32 PM
What vmware are you using, give a download link and I can test with it.
Title: Re: Logitech Media Server
Post by: LDS on March 26, 2014, 06:05:59 PM
Jason,
First to answer your 2 questions:
Two variables, true. But... a diff of the config the custom kernel and the TC (3.8.13 both) shows nothing suspicious to me (you can check my attachment) and I know I might be wrong... ;)
 
My /opt/debextra/repo1 is identical to yours.... for the "stable" release (LMS 7.7.3), but I also tried "testing" and "unstable" releases too (7.74, and 7.8.x nightly build respectively). At the moment (lack of more time...) I got to sce for 2: stable and unstable but only on the VM (dCore5.14.03.09 is the latest iso I found). In the release candidate there is the newer dCore.gz of 14.03.22, but no iso. I saw at git and your changes seem minimal (sceconfig). But as said, the older version (iso) gave more errors (might be because it was a live system?... I run it straight of the virtual CD: no special options at the boot screen, just return.
The sces created in that VM were copied to the thin client's tcedir and they were loaded OK. I also compared one of the releases (diff with Winmerge). I think it was the unstable release. The two files compared were same release and deps (perl), just created in the two enviroments. The diffs were "minimal" (I know I know....1 single bit...), i.e., only  in the first and last blocks of the squashfs. Anyway, as said, the realhost digested the sces built in the VM without complaining or panicking.
I think it would be more productive to see what it takes to get it running (instead of trying to find our mistakes), so please tell us your experience and we try to copycat you :).

BTW. Voyage 0.92 (debian linux) runs the LMS (stable I guess, i.e., v7.7.3) so this should be possible.

---
Then I would like to comment about your previous post with a list of additional packages (that was the reply I was writing before your post arrived :-)
---
I just tried on the real box (aka realhost from now on) by importing your list saving them to a file, one package per line:
 echo $files > extra-packages-for-LMS
 importsce -f extra-packages-for-LMS
 loadsce -d -r -b extra-packages-for-LMS
 sudo /etc/init.d/logitechmediaserver start

:-(   

I also imported on the realhost all the packages mentioned in the page (Packages) at slimdevices.debian.com in the P.S. of my previous post. loadsced them and tried again. All this in the realhost. ....to no avail. the server does not start.

It would help to see your logs. For me 'loadsce -d' did not help. In the VM running from the ISO (live) I could not generate logs (got errors).

So...I am intringued...
Does anybody else get the "cannot read /opt/debextra/Packages " errors when importing logitechmediaserver?
If you have time, could you post your /tmp/.debinstalled on a system running the server? (you mentioned seeing the webUI at port 9000 on 127.0.0.1) or your /var/log/squeezeboxserver?
I'll can try on another laptop tomorrow.

The more I see the code (git) , the more I like your work :) (...it brings me memories)

Sorry for the long post and thanks again,
LDS
Title: Re: Logitech Media Server
Post by: LDS on March 26, 2014, 06:09:57 PM
What vmware are you using, give a download link and I can test with it.

Oracle's Virtualbox, latest for MS-Win v. 4.3.8 r92456 on Windows Vista Ultimate.
Title: Re: Logitech Media Server
Post by: Jason W on March 26, 2014, 08:42:47 PM
Ok, here is my /tmp/.debinstalled and /var/log/squeezeboxserver/server.log



Title: Re: Logitech Media Server
Post by: bmarkus on March 27, 2014, 01:17:01 AM
Thanks for your help - I think you are right that I/we are missing more dependencies.

Unfortunately only some of those are available as tzc packages for the raspberry - I tried to install those that I could find (only two) but logitechmediaserver will not still not start.

I will need some time to figure out how to make the missing packages for piCore - but anyway thank you for looking into this.

Steen

Edit - As you know, the apt-get install does not work in piCore

Which pacakages are you missing in piCore?
Title: Re: Logitech Media Server
Post by: sbp on March 27, 2014, 09:54:02 AM
The PiCore packages for those debs for those who may not know are:

libjpeg-turbo.tcz
libpng.tcz
giflib.tcz
libexif.tcz
ffmpeg2.tcz

Some fo their related factored tcz's may be needed too.

Thanks for the info - I installed these packages, however logitechmediaserver is still not running - and no logs written?

Everything seems fine - but it is not.
Code: [Select]
tc@box:~$ sudo /etc/init.d/logitechmediaserver start
Making sure that Logitech Media Server is not running first: start-stop-daemon:                                          warning: killing process 4428: No such process
Starting Logitech Media Server.


I next thought that I would try to start it manually (maybe I got this wrong but anyway, there might be important info here) 
I did:
 
Code: [Select]
tc@box:~$ sudo /usr/sbin/squeezeboxserver
And this is the result:
Code: [Select]
Can't locate Slim/bootstrap.pm in @INC (you may need to install the Slim::bootstrap module) (@INC contains: /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at /usr/sbin/squeezeboxserver line 137.
BEGIN failed--compilation aborted at /usr/sbin/squeezeboxserver line 137.


Does this give a clue?

Steen
Title: Re: Logitech Media Server
Post by: bmarkus on March 27, 2014, 10:13:19 AM
Missing Slim/bootstrap.pm :

Quote
Can't locate Slim/bootstrap.pm in @INC (you may need to install the Slim::bootstrap module)
Title: Re: Logitech Media Server
Post by: sbp on March 28, 2014, 04:04:04 AM
hi bmarkus

I have been reading about this error, and most often it is popping up if the path to the perl is different from what LMS (logitechmediaserver) "thinks".

There is some info here: http://forums.slimdevices.com/showthread.php?93797-Centos-can-t-locate-bootstrap-pm (http://forums.slimdevices.com/showthread.php?93797-Centos-can-t-locate-bootstrap-pm)

I will try to follow some of the suggestions from there - but good advice is always highly welcome.

Steen
Title: Re: Logitech Media Server
Post by: sbp on March 31, 2014, 11:05:24 AM
OK this error is often found when Perl is the cause,  either because the version is wrong or used on a wrong distro.

It can often be solved by linking the location of the bootstrap file to a path present in the @INC.
So I found the bootstrap file in: /usr/share/perl5/Slim  and linked to something present in the @INC like:
Code: [Select]
tc@box:/mnt/mmcblk0p1$ sudo ln -sf /usr/share/perl5/Slim  /usr/local/lib/perl5/site_perl/5.18.1

Next I tried to start the LMS - and it got further:

Code: [Select]
tc@box:/mnt/mmcblk0p1$ sudo /usr/sbin/squeezeboxserver
The following modules failed to load: DBI EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::XS Sub::Name


*******

NOTE:

If you're running some unsupported Linux/Unix platform, please use the buildme.sh
script located here:

https://github.com/Logitech/slimserver-vendor/tree/public/7.8/CPAN

If 7.8 is outdated by the time you read this, Replace "7.8" with the major version
You should never need to do this if you're on Windows or Mac OSX. If the installers
don't work for you, ask for help and/or report a bug.

*******


Exiting..
tc@box:/mnt/mmcblk0p1$


So we are a bit closer. Somehow the bootstrap file is placed the wrong place - this can be fixed as described above.

But now it is complaining on some modules that fails to load (I think they are Perl stuff )

bmarkus are they included in the perl package in piCore?

Steen
Title: Re: Logitech Media Server
Post by: sbp on March 31, 2014, 11:18:40 AM
Here is a page where the original poster started with the same errors that I get (he was using Gentoo linux) and it was solved by doing some Perl module update (as far as I understand!!)

http://forums.gentoo.org/viewtopic-t-844720-start-0.html (http://forums.gentoo.org/viewtopic-t-844720-start-0.html)

But unfortunately I don't think this method will work in piCore

Steen
Title: Re: Logitech Media Server
Post by: sbp on March 31, 2014, 12:01:56 PM
Ok Found out how to get a log when LMS tries to start.
Sorry for the long output - I have marked some interesting areas:
Code: [Select]
tc@box:/mnt/mmcblk0p1$ /usr/sbin/squeezeboxserver --d_startup
Got @INC containing:
/usr/sbin
/usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.18.1
/usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi
/usr/local/lib/perl5/5.18.1
/usr/local/lib/perl5/site_perl
.

Extended @INC to contain:
/usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi
/usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto
/usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi
/usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto
/usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi
/usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto
/usr/sbin/CPAN/arch/armv6l-linux-thread-multi
/usr/sbin/lib
/usr/sbin/CPAN
/usr/sbin
/usr/sbin
/usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.18.1
/usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi
/usr/local/lib/perl5/5.18.1
/usr/local/lib/perl5/site_perl
.

Loaded module: [version] ok!
Loaded module: [Time::HiRes] ok!
Module [DBI] failed to load:
[color=red][b]Can't locate DBI.pm in @INC (you may need to install the DBI module)[/b][/color] (@INC contains: /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/armv6l-linux-thread-multi /usr/sbin/lib /usr/sbin/CPAN /usr/sbin /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at (eval 8) line 1.
BEGIN failed--compilation aborted at (eval 8) line 1.

Module [EV] failed to load:
[b][color=red]Can't locate EV.pm in @INC (you may need to install the EV module) [/color][/b](@INC contains: /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/armv6l-linux-thread-multi /usr/sbin/lib /usr/sbin/CPAN /usr/sbin /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at (eval 9) line 1.
BEGIN failed--compilation aborted at (eval 9) line 1.

Module [XML::Parser::Expat] failed to load:
[color=red][b]Can't locate XML/Parser/Expat.pm in @INC (you may need to install the XML::Parser::Expat module)[/b][/color] (@INC contains: /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/armv6l-linux-thread-multi /usr/sbin/lib /usr/sbin/CPAN /usr/sbin /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at (eval 10) line 1.
BEGIN failed--compilation aborted at (eval 10) line 1.

Module [HTML::Parser] failed to load:
[b][color=red]Can't locate HTML/Parser.pm in @INC (you may need to install the HTML::Parser module) [/color][/b](@INC contains: /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/armv6l-linux-thread-multi /usr/sbin/lib /usr/sbin/CPAN /usr/sbin /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at (eval 11) line 1.
BEGIN failed--compilation aborted at (eval 11) line 1.

Module [JSON::XS] failed to load:
[b][color=red]Can't locate JSON/XS.pm in @INC (you may need to install the JSON::XS module)[/color][/b] (@INC contains: /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/armv6l-linux-thread-multi /usr/sbin/lib /usr/sbin/CPAN /usr/sbin /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at (eval 12) line 1.
BEGIN failed--compilation aborted at (eval 12) line 1.

Module [Digest::SHA1] failed to load:
[b][color=red]Can't locate Digest/SHA1.pm in @INC (you may need to install the Digest::SHA1 module)[/color][/b] (@INC contains: /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/armv6l-linux-thread-multi /usr/sbin/lib /usr/sbin/CPAN /usr/sbin /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at (eval 13) line 1.
BEGIN failed--compilation aborted at (eval 13) line 1.

Module [YAML::XS] failed to load:
[b][color=red]Can't locate YAML/XS.pm in @INC (you may need to install the YAML::XS module)[/color][/b] (@INC contains: /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/armv6l-linux-thread-multi /usr/sbin/lib /usr/sbin/CPAN /usr/sbin /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at (eval 14) line 1.
BEGIN failed--compilation aborted at (eval 14) line 1.

Module [Sub::Name] failed to load:
[b][color=red]Can't locate Sub/Name.pm in @INC (you may need to install the Sub::Name module) [/color][/b](@INC contains: /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/armv6l-linux-thread-multi /usr/sbin/lib /usr/sbin/CPAN /usr/sbin /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at (eval 15) line 1.
BEGIN failed--compilation aborted at (eval 15) line 1.

The following modules are loaded after the first attempt:
        overload.pm => /usr/local/lib/perl5/5.18.1/overload.pm
        constant.pm => /usr/local/lib/perl5/5.18.1/constant.pm
        Config_git.pl => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config_git.pl
        Config.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config.pm
        base.pm => /usr/local/lib/perl5/5.18.1/base.pm
        DynaLoader.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/DynaLoader.pm
        Tie/Hash.pm => /usr/local/lib/perl5/5.18.1/Tie/Hash.pm
        vars.pm => /usr/local/lib/perl5/5.18.1/vars.pm
        File/Basename.pm => /usr/local/lib/perl5/5.18.1/File/Basename.pm
        File/Spec/Functions.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec/Functions.pm
        overloading.pm => /usr/local/lib/perl5/5.18.1/overloading.pm
        warnings.pm => /usr/local/lib/perl5/5.18.1/warnings.pm
        File/Spec.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec.pm
        Cwd.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Cwd.pm
        Getopt/Long.pm => /usr/local/lib/perl5/5.18.1/Getopt/Long.pm
        Slim/Utils/OSDetect.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OSDetect.pm
        Exporter/Heavy.pm => /usr/local/lib/perl5/5.18.1/Exporter/Heavy.pm
        strict.pm => /usr/local/lib/perl5/5.18.1/strict.pm
        Slim/Utils/OS/Unix.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS/Unix.pm
        POSIX.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/POSIX.pm
        lib.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/lib.pm
        Config_heavy.pl => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config_heavy.pl
        Exporter.pm => /usr/local/lib/perl5/5.18.1/Exporter.pm
        Time/HiRes.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Time/HiRes.pm
        Slim/Utils/OS.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS.pm
        version.pm => /usr/local/lib/perl5/5.18.1/version.pm
        Slim/bootstrap.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/bootstrap.pm
        FindBin.pm => /usr/local/lib/perl5/5.18.1/FindBin.pm
        warnings/register.pm => /usr/local/lib/perl5/5.18.1/warnings/register.pm
        Slim/Utils/OS/Linux.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS/Linux.pm
        Fcntl.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Fcntl.pm
        File/Spec/Unix.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec/Unix.pm
        XSLoader.pm => /usr/local/lib/perl5/5.18.1/XSLoader.pm
        Symbol.pm => /usr/local/lib/perl5/5.18.1/Symbol.pm
        Carp.pm => /usr/local/lib/perl5/5.18.1/Carp.pm
        File/Path.pm => /usr/local/lib/perl5/5.18.1/File/Path.pm

The following modules failed to load on the first attempt: [DBI, EV, XML::Parser::Expat, HTML::Parser, JSON::XS, Digest::SHA1, YAML::XS, Sub::Name] - will try again.


The following modules are loaded after the second attempt:
        overload.pm => /usr/local/lib/perl5/5.18.1/overload.pm
        constant.pm => /usr/local/lib/perl5/5.18.1/constant.pm
        Config_git.pl => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config_git.pl
        Config.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config.pm
        base.pm => /usr/local/lib/perl5/5.18.1/base.pm
        DynaLoader.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/DynaLoader.pm
        Tie/Hash.pm => /usr/local/lib/perl5/5.18.1/Tie/Hash.pm
        vars.pm => /usr/local/lib/perl5/5.18.1/vars.pm
        File/Basename.pm => /usr/local/lib/perl5/5.18.1/File/Basename.pm
        File/Spec/Functions.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec/Functions.pm
        overloading.pm => /usr/local/lib/perl5/5.18.1/overloading.pm
        warnings.pm => /usr/local/lib/perl5/5.18.1/warnings.pm
        File/Spec.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec.pm
        Cwd.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Cwd.pm
        Getopt/Long.pm => /usr/local/lib/perl5/5.18.1/Getopt/Long.pm
        Slim/Utils/OSDetect.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OSDetect.pm
        Exporter/Heavy.pm => /usr/local/lib/perl5/5.18.1/Exporter/Heavy.pm
        strict.pm => /usr/local/lib/perl5/5.18.1/strict.pm
        Slim/Utils/OS/Unix.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS/Unix.pm
        POSIX.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/POSIX.pm
        lib.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/lib.pm
        Config_heavy.pl => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config_heavy.pl
        Exporter.pm => /usr/local/lib/perl5/5.18.1/Exporter.pm
        Time/HiRes.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Time/HiRes.pm
        Slim/Utils/OS.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS.pm
        version.pm => /usr/local/lib/perl5/5.18.1/version.pm
        Slim/bootstrap.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/bootstrap.pm
        FindBin.pm => /usr/local/lib/perl5/5.18.1/FindBin.pm
        warnings/register.pm => /usr/local/lib/perl5/5.18.1/warnings/register.pm
        Slim/Utils/OS/Linux.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS/Linux.pm
        Fcntl.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Fcntl.pm
        File/Spec/Unix.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec/Unix.pm
        XSLoader.pm => /usr/local/lib/perl5/5.18.1/XSLoader.pm
        Symbol.pm => /usr/local/lib/perl5/5.18.1/Symbol.pm
        Carp.pm => /usr/local/lib/perl5/5.18.1/Carp.pm
        File/Path.pm => /usr/local/lib/perl5/5.18.1/File/Path.pm

The following modules failed to load: DBI EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::XS Sub::Name


*******

NOTE:

If you're running some unsupported Linux/Unix platform, please use the buildme.sh
script located here:

https://github.com/Logitech/slimserver-vendor/tree/public/7.8/CPAN

If 7.8 is outdated by the time you read this, Replace "7.8" with the major version
You should never need to do this if you're on Windows or Mac OSX. If the installers
don't work for you, ask for help and/or report a bug.

*******


Exiting..



This is cut from the sectio above - contains info on the problems:
Module [DBI] failed to load:
Can't locate DBI.pm in @INC (you may need to install the DBI module) (@INC contains: /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi /usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi /usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto /usr/sbin/CPAN/arch/armv6l-linux-thread-multi /usr/sbin/lib /usr/sbin/CPAN /usr/sbin /usr/sbin /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl .) at (eval 8) line 1.
BEGIN failed--compilation aborted at (eval 8) line 1.

Module [EV] failed to load:
Can't locate EV.pm in @INC (you may need to install the EV module)

Module [XML::Parser::Expat] failed to load:
Can't locate XML/Parser/Expat.pm in @INC (you may need to install the XML::Parser::Expat module)

Module [HTML::Parser] failed to load:
Can't locate HTML/Parser.pm in @INC (you may need to install the HTML::Parser module)


Module [JSON::XS] failed to load:
Can't locate JSON/XS.pm in @INC (you may need to install the JSON::XS module)

Module [Digest::SHA1] failed to load:
Can't locate Digest/SHA1.pm in @INC (you may need to install the Digest::SHA1 module)

Module [YAML::XS] failed to load:
Can't locate YAML/XS.pm in @INC (you may need to install the YAML::XS module)


Module [Sub::Name] failed to load:
Can't locate Sub/Name.pm in @INC (you may need to install the Sub::Name module)

So the marked modules seems to be missing from Perl???
Steen
Title: Re: Logitech Media Server
Post by: bmarkus on March 31, 2014, 01:15:15 PM
XML::Parser::Expat is already in the repo, install perl_xml_parser.tcz I will add others, but in the eman time you can install them manually. Start CPAN:
Code: [Select]
tc@box:~$ sudo perl -MCPAN -e shell
accept defaults and install modules:

Code: [Select]
cpan[1]> install JSON::XS
Be patient, installation takes some time. Modules installed in

/usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi

You can make a tcz or add to backup.


Title: Bingo! LMS 7.7.3 (stable) on x86 debian Core Linux sytem now working
Post by: LDS on March 31, 2014, 11:52:19 PM

After some hours during the weekend, I tried today and ... Bingo! :) I am listening through my squeezebox radio and see all the other players. I will let it run for a while and report. The logs are spitting useful info.

The box a very low power (less than 4 W) x86 class AMD CPU, 300 MHz w 512MB RAM.
Started with a clean base system: dCore 22.03.2014 + (custom for my buggy BIOS) kernel3.8.13. Resulting in a CLI only system. I am boot from (USB) flash memory with Syslinux.

Ok, here is my /tmp/.debinstalled and /var/log/squeezeboxserver/server.log
Thanks Jason. Your deb deps are a much larger subset of what I can afford compiling in this little box. I am glad to know what your desktop looks like :).
I  just installed dropbear + perl + LMS stable (7.7.3) + some extra deps (not sure about the minimal list) on top of the clean system described above.
I am not sure what got fixed with the extras and what with the manual tweaks, due to diffs between debian and TCL pure systems). After all, it was done during the weekend, 160 km away from the box through a ssh on my iPad to my Mac connected through dropbear to the little box running DCL :) :)

Please let me know what else you would like me to test/post.

Again you have done a great job Jason!
I am glad and thankful you took this project at once after my private mail and started this thread!
This is wonderful! a real breakthrough: debian on TCL!!! ...the sky is the limit! :)

Lazaro

Title: Re: Logitech Media Server
Post by: Jason W on April 01, 2014, 03:34:53 AM
Lazaro-

Glad to hear it is working!

Json
Title: Re: Logitech Media Server
Post by: sbp on April 01, 2014, 09:39:33 AM
Hi I followed the as always good advice from bmarkus and build the missing perl modules.


Now all the perl modules are found and loaded and when almost finished it seems like it just need the correct path to the modules.conf

But I can't find this file?

Steen


Code: [Select]
tc@box:~$ /usr/sbin/squeezeboxserver --d_startup --failsafe
Got @INC containing:
/usr/sbin
/usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.18.1
/usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi
/usr/local/lib/perl5/5.18.1
/usr/local/lib/perl5/site_perl
.

Extended @INC to contain:
/usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi
/usr/sbin/CPAN/arch/5.18/arm-linux-gnueabi-thread-multi/auto
/usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi
/usr/sbin/CPAN/arch/5.18.1/armv6l-linux-thread-multi/auto
/usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi
/usr/sbin/CPAN/arch/5.18/armv6l-linux-thread-multi/auto
/usr/sbin/CPAN/arch/armv6l-linux-thread-multi
/usr/sbin/lib
/usr/sbin/CPAN
/usr/sbin
/usr/sbin
/usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.18.1
/usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi
/usr/local/lib/perl5/5.18.1
/usr/local/lib/perl5/site_perl
.

Loaded module: [version] ok!
Loaded module: [Time::HiRes] ok!
Loaded module: [DBI] ok!
Loaded module: [EV] ok!
Loaded module: [XML::Parser::Expat] ok!
Loaded module: [HTML::Parser] ok!
Loaded module: [JSON::XS] ok!
Loaded module: [Digest::SHA1] ok!
Loaded module: [YAML::XS] ok!
Loaded module: [Sub::Name] ok!
The following modules are loaded after the first attempt:
        POSIX.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/POSIX.pm
        HTML/Parser.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/HTML/Parser.pm
        Slim/Utils/OSDetect.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OSDetect.pm
        Digest/SHA1.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/Digest/SHA1.pm
        base.pm => /usr/local/lib/perl5/5.18.1/base.pm
        FindBin.pm => /usr/local/lib/perl5/5.18.1/FindBin.pm
        DynaLoader.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/DynaLoader.pm
        Fcntl.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Fcntl.pm
        warnings/register.pm => /usr/local/lib/perl5/5.18.1/warnings/register.pm
        B.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/B.pm
        constant.pm => /usr/local/lib/perl5/5.18.1/constant.pm
        Exporter.pm => /usr/local/lib/perl5/5.18.1/Exporter.pm
        EV.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/EV.pm
        File/Spec/Functions.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec/Functions.pm
        HTML/Entities.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/HTML/Entities.pm
        Slim/Utils/OS.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS.pm
        lib.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/lib.pm
        Exporter/Heavy.pm => /usr/local/lib/perl5/5.18.1/Exporter/Heavy.pm
        Config_git.pl => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config_git.pl
        overload.pm => /usr/local/lib/perl5/5.18.1/overload.pm
        YAML/XS.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/YAML/XS.pm
        Sub/Name.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/Sub/Name.pm
        Scalar/Util.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Scalar/Util.pm
        XML/Parser/Expat.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/XML/Parser/Expat.pm
        common/sense.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/common/sense.pm
        Config_heavy.pl => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config_heavy.pl
        feature.pm => /usr/local/lib/perl5/5.18.1/feature.pm
        Symbol.pm => /usr/local/lib/perl5/5.18.1/Symbol.pm
        Slim/Utils/OS/Unix.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS/Unix.pm
        vars.pm => /usr/local/lib/perl5/5.18.1/vars.pm
        File/Spec/Unix.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec/Unix.pm
        YAML/XS/LibYAML.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/YAML/XS/LibYAML.pm
        File/Spec.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec.pm
        File/Basename.pm => /usr/local/lib/perl5/5.18.1/File/Basename.pm
        attributes.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/attributes.pm
        Slim/Utils/OS/Linux.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS/Linux.pm
        DBI.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/DBI.pm
        strict.pm => /usr/local/lib/perl5/5.18.1/strict.pm
        Digest/base.pm => /usr/local/lib/perl5/5.18.1/Digest/base.pm
        B/Deparse.pm => /usr/local/lib/perl5/5.18.1/B/Deparse.pm
        version.pm => /usr/local/lib/perl5/5.18.1/version.pm
        Carp.pm => /usr/local/lib/perl5/5.18.1/Carp.pm
        warnings.pm => /usr/local/lib/perl5/5.18.1/warnings.pm
        Cwd.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Cwd.pm
        Getopt/Long.pm => /usr/local/lib/perl5/5.18.1/Getopt/Long.pm
        overloading.pm => /usr/local/lib/perl5/5.18.1/overloading.pm
        Config.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config.pm
        JSON/XS.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/JSON/XS.pm
        Tie/Hash.pm => /usr/local/lib/perl5/5.18.1/Tie/Hash.pm
        Time/HiRes.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Time/HiRes.pm
        Types/Serialiser.pm => /usr/local/lib/perl5/site_perl/5.18.1/Types/Serialiser.pm
        List/Util.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/List/Util.pm
        XSLoader.pm => /usr/local/lib/perl5/5.18.1/XSLoader.pm
        Slim/bootstrap.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/bootstrap.pm
        re.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/re.pm
        File/Path.pm => /usr/local/lib/perl5/5.18.1/File/Path.pm

The following modules are loaded after the second attempt:
        POSIX.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/POSIX.pm
        HTML/Parser.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/HTML/Parser.pm
        Slim/Utils/OSDetect.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OSDetect.pm
        Digest/SHA1.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/Digest/SHA1.pm
        base.pm => /usr/local/lib/perl5/5.18.1/base.pm
        FindBin.pm => /usr/local/lib/perl5/5.18.1/FindBin.pm
        DynaLoader.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/DynaLoader.pm
        Fcntl.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Fcntl.pm
        warnings/register.pm => /usr/local/lib/perl5/5.18.1/warnings/register.pm
        B.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/B.pm
        constant.pm => /usr/local/lib/perl5/5.18.1/constant.pm
        Exporter.pm => /usr/local/lib/perl5/5.18.1/Exporter.pm
        EV.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/EV.pm
        File/Spec/Functions.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec/Functions.pm
        HTML/Entities.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/HTML/Entities.pm
        Slim/Utils/OS.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS.pm
        lib.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/lib.pm
        Exporter/Heavy.pm => /usr/local/lib/perl5/5.18.1/Exporter/Heavy.pm
        Config_git.pl => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config_git.pl
        overload.pm => /usr/local/lib/perl5/5.18.1/overload.pm
        YAML/XS.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/YAML/XS.pm
        Sub/Name.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/Sub/Name.pm
        Scalar/Util.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Scalar/Util.pm
        XML/Parser/Expat.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/XML/Parser/Expat.pm
        common/sense.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/common/sense.pm
        Config_heavy.pl => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config_heavy.pl
        feature.pm => /usr/local/lib/perl5/5.18.1/feature.pm
        Symbol.pm => /usr/local/lib/perl5/5.18.1/Symbol.pm
        Slim/Utils/OS/Unix.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS/Unix.pm
        vars.pm => /usr/local/lib/perl5/5.18.1/vars.pm
        File/Spec/Unix.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec/Unix.pm
        YAML/XS/LibYAML.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/YAML/XS/LibYAML.pm
        File/Spec.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/File/Spec.pm
        File/Basename.pm => /usr/local/lib/perl5/5.18.1/File/Basename.pm
        attributes.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/attributes.pm
        Slim/Utils/OS/Linux.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/Utils/OS/Linux.pm
        DBI.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/DBI.pm
        strict.pm => /usr/local/lib/perl5/5.18.1/strict.pm
        Digest/base.pm => /usr/local/lib/perl5/5.18.1/Digest/base.pm
        B/Deparse.pm => /usr/local/lib/perl5/5.18.1/B/Deparse.pm
        version.pm => /usr/local/lib/perl5/5.18.1/version.pm
        Carp.pm => /usr/local/lib/perl5/5.18.1/Carp.pm
        warnings.pm => /usr/local/lib/perl5/5.18.1/warnings.pm
        Cwd.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Cwd.pm
        Getopt/Long.pm => /usr/local/lib/perl5/5.18.1/Getopt/Long.pm
        overloading.pm => /usr/local/lib/perl5/5.18.1/overloading.pm
        Config.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Config.pm
        JSON/XS.pm => /usr/local/lib/perl5/site_perl/5.18.1/armv6l-linux-thread-multi/JSON/XS.pm
        Tie/Hash.pm => /usr/local/lib/perl5/5.18.1/Tie/Hash.pm
        Time/HiRes.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/Time/HiRes.pm
        Types/Serialiser.pm => /usr/local/lib/perl5/site_perl/5.18.1/Types/Serialiser.pm
        List/Util.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/List/Util.pm
        XSLoader.pm => /usr/local/lib/perl5/5.18.1/XSLoader.pm
        Slim/bootstrap.pm => /usr/local/lib/perl5/site_perl/5.18.1/Slim/bootstrap.pm
        re.pm => /usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/re.pm
        File/Path.pm => /usr/local/lib/perl5/5.18.1/File/Path.pm

modules.conf not found at /usr/local/lib/perl5/site_perl/5.18.1/Slim/bootstrap.pm line 352.
BEGIN failed--compilation aborted at /usr/sbin/squeezeboxserver line 144.
tc@box:~$
Title: Re: Logitech Media Server
Post by: sbp on April 01, 2014, 01:38:40 PM
OK

Got a little further.
According to Michael Herger (the developer of LMS) LMS can detect which distro it is running on and adjust the different path accordingly. As it does not recognize microcore it needs modules.conf in usr/sbin

So after doing:
tc@box:~$ sudo cp -p /etc/squeezeboxserver/modules.conf /usr/sbin/modules.conf 

It got further - but now once again complain about some perl stuff. I don't quite understand - are the perl modules needed different from what are available?

Code: [Select]
The following CPAN modules were found but cannot work with Logitech Media Server:
  AnyEvent (loaded <not found>, need 5.202)
  Audio::Scan (loaded <not found>, need 0.93)
  Cache::Cache (loaded <not found>, need 1.04)
  Class::Data::Inheritable (loaded <not found>, need 0.04)
  Class::Inspector (loaded <not found>, need 1.16)
  DBIx::Class (loaded <not found>, need 0.08112)
  Data::URIEncode (loaded <not found>, need 0.11)
  Date::Parse (loaded <not found>, need 2.27)
  File::BOM (loaded <not found>, need 0.13)
  File::Next (loaded <not found>, need 1.06)
  File::Which (loaded <not found>, need 0.05)
  IO::String (loaded <not found>, need 1.07)
  Image::Scale (loaded <not found>, need 0.08)
  JSON::XS::VersionOneAndTwo (loaded <not found>, need 0.31)
  LWP (loaded <not found>, need 5.805)
  Log::Log4perl (loaded <not found>, need 1.23)
  Path::Class (loaded <not found>, need 0.17)
  Proc::Background (loaded <not found>, need 1.08)
  SQL::Abstract (loaded <not found>, need 1.56)
  Text::Unidecode (loaded <not found>, need 0.04)
  Tie::Cache::LRU (loaded <not found>, need 0.21)
  Tie::RegexpHash (loaded <not found>, need 0.13)
  Time::Zone (loaded <not found>, need 2.22)
  URI (loaded <not found>, need 1.35)
  XML::Simple (loaded <not found>, need 2.15)

To fix this problem you have several options:
1. Install the latest version of the module(s) using CPAN: sudo cpan Some::Module
2. Update the module's package using apt-get, yum, etc.
3. Run the .tar.gz version of Logitech Media Server which includes all required CPAN modules.


/Steen
Title: Re: Logitech Media Server
Post by: bmarkus on April 01, 2014, 02:45:08 PM
Code: [Select]
The following CPAN modules were found but cannot work with Logitech Media Server:
  AnyEvent (loaded <not found>, need 5.202)
  Audio::Scan (loaded <not found>, need 0.93)
  Cache::Cache (loaded <not found>, need 1.04)
  Class::Data::Inheritable (loaded <not found>, need 0.04)
  Class::Inspector (loaded <not found>, need 1.16)
  DBIx::Class (loaded <not found>, need 0.08112)
  Data::URIEncode (loaded <not found>, need 0.11)
  Date::Parse (loaded <not found>, need 2.27)
  File::BOM (loaded <not found>, need 0.13)
  File::Next (loaded <not found>, need 1.06)
  File::Which (loaded <not found>, need 0.05)
  IO::String (loaded <not found>, need 1.07)
  Image::Scale (loaded <not found>, need 0.08)
  JSON::XS::VersionOneAndTwo (loaded <not found>, need 0.31)
  LWP (loaded <not found>, need 5.805)
  Log::Log4perl (loaded <not found>, need 1.23)
  Path::Class (loaded <not found>, need 0.17)
  Proc::Background (loaded <not found>, need 1.08)
  SQL::Abstract (loaded <not found>, need 1.56)
  Text::Unidecode (loaded <not found>, need 0.04)
  Tie::Cache::LRU (loaded <not found>, need 0.21)
  Tie::RegexpHash (loaded <not found>, need 0.13)
  Time::Zone (loaded <not found>, need 2.22)
  URI (loaded <not found>, need 1.35)
  XML::Simple (loaded <not found>, need 2.15)

To fix this problem you have several options:
1. Install the latest version of the module(s) using CPAN: sudo cpan Some::Module
2. Update the module's package using apt-get, yum, etc.
3. Run the .tar.gz version of Logitech Media Server which includes all required CPAN modules.


/Steen

They are <not found> which means they are missing. Install from CPAN as the first bunch of modules. Title error message is not true.
Title: Re: Logitech Media Server
Post by: sbp on April 01, 2014, 03:24:12 PM
Thanks

Will do - I already have the first 10 modules build.
And the error message for these modules disappear when I try to start LMS - so I think there is light at the end of the tunnel.

Can I somehow build these modules into something useful for you?

Is it easy to pack them into tcz packages?

Steen
Title: Re: Logitech Media Server
Post by: bmarkus on April 01, 2014, 03:42:21 PM

Can I somehow build these modules into something useful for you?

Is it easy to pack them into tcz packages?

Sure! You can create tcz's for them and we can add to the repo. Use perl_xml_parser.tcz as a template. It is not difficult to create the tcz, just takes some time. Maybe would be good to have some parts scripted, but I havn't such tool.

Make one and email to check. If you stucked, PM.
Title: Re: Logitech Media Server
Post by: sbp on April 02, 2014, 10:12:27 AM
Hi it is going slowly in the right direction - I have added all but three Perl modules which gives me problems.

Sp the only remaining errors during start of LMS are:
Code: [Select]
The following CPAN modules were found but cannot work with Logitech Media Server:
  Audio::Scan (loaded <not found>, need 0.93)
  DBIx::Class (loaded <not found>, need 0.08112)
  Image::Scale (loaded <not found>, need 0.08)


The Image::Scale module will not install.  It is complaining about a missing libjpeg or libpng - but both of these packages are installed using the TCE package system
Code: [Select]
libpng.tcz
A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist S)earch P)rovides K)eywords or Q)uit:
libpng is already installed!
 libpng.tcz
A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist S)earch P)rovides K)eywords or Q)uit:
tc@box:~$ sudo perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.00)
Enter 'h' for help.

cpan[1]> install Image::Scale
Reading '/home/tc/.cpan/Metadata'
  Database was generated on Wed, 02 Apr 2014 15:06:27 GMT
Running install for module 'Image::Scale'
Running make for A/AG/AGRUNDMA/Image-Scale-0.08.tar.gz
Checksum for /home/tc/.cpan/sources/authors/id/A/AG/AGRUNDMA/Image-Scale-0.08.tar.gz ok
Scanning cache /home/tc/.cpan/build for sizes
............................................................................DONE

  CPAN.pm: Building A/AG/AGRUNDMA/Image-Scale-0.08.tar.gz

Image::Scale requires at least one of libjpeg or libpng, please install one or both and try again.
No 'Makefile' created  AGRUNDMA/Image-Scale-0.08.tar.gz
  /usr/local/bin/perl Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
 AGRUNDMA/Image-Scale-0.08.tar.gz             : writemakefile NO -- No 'Makefile' created




The other is  Audio::Scan

Code: [Select]
tc@box:~$ sudo perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.00)
Enter 'h' for help.

cpan[1]> install Audio::Scan
Reading '/home/tc/.cpan/Metadata'
  Database was generated on Wed, 02 Apr 2014 15:06:27 GMT
Running install for module 'Audio::Scan'
Running make for A/AG/AGRUNDMA/Audio-Scan-0.93.tar.gz
Checksum for /home/tc/.cpan/sources/authors/id/A/AG/AGRUNDMA/Audio-Scan-0.93.tar.gz ok
Scanning cache /home/tc/.cpan/build for sizes
Killed
tc@box:~$

Title: Re: Logitech Media Server
Post by: bmarkus on April 02, 2014, 11:32:26 AM
Audio::Scan installs fine without errors here.
Title: Re: Logitech Media Server
Post by: bmarkus on April 02, 2014, 11:40:20 AM
Image::Scale - there is an issue with gif part at first try:

  CPAN.pm: Building A/AG/AGRUNDMA/Image-Scale-0.08.tar.gz

Code: [Select]
cp lib/Image/Scale.pm blib/lib/Image/Scale.pm
/usr/local/bin/perl /usr/local/lib/perl5/5.18.1/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.18.1/ExtUtils/typemap -typemap typemap  Scale.xs > Scale.xsc && mv Scale.xsc Scale.c
Please specify prototyping behavior for Scale.xs (see perlxs manual)
cc -c  -I. -I.. -Isrc -Iinclude -I/usr/local/include -I/usr/local/include -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\" -fPIC "-I/usr/local/lib/perl5/5.18.1/armv6l-linux-thread-multi/CORE"  -O2 -Wall -Wno-unused-value -Wno-format-security -Winline -ffast-math -DHAVE_JPEG -DJPEG_VERSION=unknown -DHAVE_PNG -DPNG_VERSION=1.5.17 -DHAVE_GIF -DGIF_VERSION=unknown Scale.c
In file included from src/image.c:20:0,
                 from Scale.xs:18:
src/bmp.c: In function 'image_bmp_read_header':
src/bmp.c:25:7: warning: variable 'offset' set but not used [-Wunused-but-set-variable]
   int offset, palette_colors;
       ^
In file included from src/image.c:25:0,
                 from Scale.xs:18:
src/png.c: In function 'image_png_read_buf':
src/png.c:43:2: warning: implicit declaration of function 'png_memcpy' [-Wimplicit-function-declaration]
  png_memcpy(data, buffer_ptr(im->buf), len);
  ^
In file included from src/image.c:28:0,
                 from Scale.xs:18:
src/gif.c: In function 'image_gif_read_header':
src/gif.c:58:3: error: too few arguments to function 'DGifOpen'
   im->gif = DGifOpen(im, image_gif_read_buf);

Maybe incompatible gib lib.
Title: Re: Logitech Media Server
Post by: bmarkus on April 02, 2014, 11:25:06 PM
DBIx::Class installed. Took more than 6 hours, installed 12MB, many dependencies, but it is there.

sbp@ if you whish I can send you DBIx::Class for testing as well as Audio::Scan
Title: Re: Logitech Media Server
Post by: sbp on April 03, 2014, 02:49:39 AM
hi bmarkus

Thank you for your support - I would be happy if you could send me these modules.

Unfortunately my SD-card died, so I will have to start all over again.

Steen
Title: Re: Logitech Media Server
Post by: pimartin on March 22, 2015, 05:48:51 PM
Hello everyone,

I'd like to revive this threat because I would really like havíng LMS running on a PiCoPlayer for a standalone internet Radio project I'm doing.

So far I tried redoing the steps that have been suggested here in previous answers on my Pi with a PiCoPlayer image to start with:

First I was running out of space unpacking and packaging the .deb package, so I moved my working directory to the mounted ext4 partition, in piCorePlayer thats mnt/mmcblk0p2. There I made a folder to do all the work in and gave it user rights.

After building the logitechmediaserver.tcz, I got the same errors of a missing bootstrap file, so I linked it to the right place which worked out fine. Then I had the same errors of missing perl modules, and thats where I'm stuck right now. Using cpan to install/compile them, they just wont build. 

Here's a summary of what I did:

Code: [Select]
# giving user rights to a working folder I created before
sudo chown -R tc /mnt/mmcblk0p2/install_lms

# installing missing packages + nano (because I'm horrible with vi ;) )
tce-load -wi perl5.tcz libjpeg-turbo.tcz libpng.tcz giflib.tcz ffmpeg.tcz nano

# downloading lms debian package
wget http://debian.slimdevices.com/pool/main/l/logitechmediaserver/logitechmedi$

# unpack
ar -x logitechmediaserver_7.8.1~1426671206_all.deb

# create folder pkg
mkdir pkg
 
# more unpacking into pkg folder
tar xvf data.tar.gz -C pkg

# create folder for startup script
mkdir -p pkg/usr/local/tce.installed

# place startup script made by Jason W
cp logitechmediaserver-pi pkg/usr/local/tce.installed/logitechmediaserver-pi

# make it executable
sudo chmod -R 775 pkg/usr/local/tce.installed
sudo chown -R root:staff pkg/usr/local/tce.installed

# pack tcz file
mksquashfs pkg/ /etc/sysconfig/tcedir/optional/logitechmediaserver.tcz -noappend

#  sove the bootstrap issue
sudo ln -sf /usr/share/perl5/Slim/ /usr/local/lib/perl5/site_perl/5.20.1/

# install compiler for installing perl modules with cpan
tce-load -wo compile-essentials

Up to that point everything works out but as I said, installing the perl-modules i get errors.

E.g. sudo cpan JSON::XS terminates with
Code: [Select]
compilation terminated.
Makefile:331: recipe for target 'XS.o' failed
make: *** [XS.o] Error 1
  MLEHMANN/JSON-XS-3.01.tar.gz
  make -- NOT OK

Every help is welcome!

Martin
Title: Re: Logitech Media Server
Post by: Rich on March 22, 2015, 06:28:02 PM
Hi pimartin
Quote
Code: [Select]
compilation terminated.
Makefile:331: recipe for target 'XS.o' failed
make: *** [XS.o] Error 1
  MLEHMANN/JSON-XS-3.01.tar.gz
  make -- NOT OK
There probably some errors listed prior to that. In order for someone to help you they will probably want to see them.
Title: Re: Logitech Media Server
Post by: pimartin on March 23, 2015, 08:19:42 PM
Quote
There probably some errors listed prior to that

indeed...

seems limits.h is missing. I googled around and thought its part of the linux headers so i loaded  linux-3.18.y_api_headers.tcz but i still get the same errors

Code: [Select]
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:143,
                 from /usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.9.2/include-fixed/limits.h:168,
                 from /tmp/tcloop/gcc/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.9.2/include-fixed/limits.h:168,
                 from /tmp/tcloop/gcc/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.9.2/include-fixed/syslimits.h:7,
                 from /tmp/tcloop/gcc/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.9.2/include-fixed/limits.h:34,
                 from /usr/include/sys/param.h:26,
                 from /usr/local/lib/perl5/5.20.1/armv6l-linux-thread-multi/CORE/perl.h:751,
                 from XS.xs:2:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
 #include <linux/limits.h>
                          ^
compilation terminated.
Makefile:331: recipe for target 'XS.o' failed
make: *** [XS.o] Error 1
  MLEHMANN/JSON-XS-3.01.tar.gz
  make -- NOT OK

So what do I miss?

Martin
Title: Re: Logitech Media Server
Post by: pimartin on March 23, 2015, 11:30:56 PM
Alright, found it. the file was part of the headers, but it sits in /usr/include/linux instead of /usr/include. Linking it with

Code: [Select]
sudo ln -sf /usr/include /usr/include/linux/ fixed the problem. JSON::XS is compiling right now. I hope the others will too... ???

Title: Re: Logitech Media Server
Post by: Rich on March 23, 2015, 11:31:24 PM
Hi pimartin
Maybe you are missing  glibc_base-dev.tcz. Did you install  compile-essentials.tcz?
Title: Re: Logitech Media Server
Post by: Rich on March 23, 2015, 11:36:28 PM
Hi pimartin
I have it as  /usr/include/limits.h  provided by  eglibc_base-dev.tcz  which is what  glibc_base-dev.tcz  used to be called.
Title: Re: Logitech Media Server
Post by: pimartin on March 24, 2015, 08:13:30 AM
Hi Rich,

Could be, I'll check tonight if glibc_base-dev.tcz is there, but i got it compiling by linking /usr/include/linux to /usr/include as i said before. Several modules are installed now, although its a little bit like dependency hell....  :o :o

Last one I tried was Image::Scale which needs libpng-dev libjpeg-dev but apparently its incompatible with libpng > 1.4 . I think I saw something in the compiling output that it needs either libpng or libjpeg so I'll try to remove libpng. Lets see how that goes.


Martin
Title: Re: Logitech Media Server
Post by: pimartin on March 25, 2015, 11:50:52 AM
Seems I was right. Without the libpng-dev installed, Image::Scale installed succesfuly, although without jpeg support. I'm not sure if that affects LMS.

Maybe someone makes a  package for libpng and libpng-dev 1.4.x one day.

As for the eglibc_base-dev issue:
eglibc_base-dev is not in the Pi Repo, and glibc_base-dev is installed. So I´m not sure whats going on here.

Once all modules are installed, I´ll report back how it goes. DBIx::Class just took all night to compile  :o :o