plugin for Logitech Media Server (formerly Squeezebox Server)

Status
Not open for further replies.

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
Cleared out all the old files and downloaded the latest .tgz file.

I am getting the same error now.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
/libexec/ld-elf.so.1: /usr/local/lms/CPAN/arch/5.12/amd64-freebsd/auto/EV/EV.so: Undefined symbol "Perl_xs_apiversion_bootcheck"
/usr/local/etc/rc.d/lms: WARNING: failed to start lms
I have Perl 5.14.2 installed (i had to upgrade it in order to install some ports).
As i compiled all of the CPAN modules with perl 5.14 on my jail, it might need to have it in order for the modules to work properly.

Would you mind upgrading your perl?
To do so, use pkg-delete, and delete all the dependencies that prevent you from deleting PERL :

Code:
pkg_delete dbus-glib-0.94
pkg_delete gio-fam-backend-2.28.8
pkg_delete gamin-0.1.10_4
pkg_delete glib-2.28.8_2
pkg_delete iconv-2.0_3
pkg_delete perl-5.12.4_3


Then reinstall everything with ports and not packages (these ones are outdated always) :
Code:
cd /usr/ports/lang/perl5.14/ && make install clean
cd /usr/ports/devel/glib20/ && make install clean     <-- should install automatically gamin gio and dbus
cd /usr/ports/converters/iconv/ && make install clean
 

unholyeyebrows

Explorer
Joined
Apr 19, 2012
Messages
55
It works!

Hi djoole

Many thanks for your efforts with this - I now have it working - music library scanning as I type.

Below are the precise commands I issued to install your script on a clean jail based on your instructions (note I had to delete package pcre-8.21 in order to compile glib20):

portsnap fetch
portsnap extract

pkg_delete dbus-glib-0.94
pkg_delete gio-fam-backend-2.28.8
pkg_delete gamin-0.1.10_4
pkg_delete glib-2.28.8_2
pkg_delete iconv-2.0_3
pkg_delete perl-5.12.4_3
pkg_delete pcre-8.21

cd /usr/ports/lang/perl5.14/ && make install clean
cd /usr/ports/devel/glib20/ && make install clean
cd /usr/ports/converters/iconv/ && make install clean

cd /
wget http://djoole.free.fr/lms/lms-freenas-amd64-7.8.0-1342011222.tgz
tar xzf lms-freenas-amd64-7.8.0-1342011222.tgz
cd lms-freenas-amd64-7.8.0-1342011222
./installme.sh
cd ../
rm -rdf lms-freenas-amd64-7.8.0-1342011222

Many thanks for getting the latest LMS working on FreeNAS - not an easy task at all!
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
I get errors doing the pkg_delete on iconv and perl

Jail# pkg_delete glib-2.28.8_2
pkg_delete: file '/usr/local/share/GConf/gsettings' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/share/GConf/gsettings'
pkg_delete: file '/usr/local/share/GConf' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/share/GConf'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)


Jail# pkg_delete perl-5.12.4_3
pkg_delete: file '/usr/local/lib/perl5/5.12.4/man/man3' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/lib/perl5/5.12.4/man/man3'
pkg_delete: file '/usr/local/lib/perl5/5.12.4/man' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/lib/perl5/5.12.4/man'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
Removing stale symlinks from /usr/bin...
Removing /usr/bin/perl
Removing /usr/bin/perl5
Done.
Cleaning up /build/home/jpaetzel/8.2.0/plugins-base/amd64/make.conf.build... Done.
Cleaning up /etc/manpath.config... Done

Then I get an error after the first reinstall command:

cd /usr/ports/lang/perl5.14/ && make install clean
/usr/ports/lang/perl5.14/ No such file or directory
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
I followed unholyeyebrows

portsnap fetch
portsnap extract

and

delete package pcre-8.21 in order to compile glib20

I now have a running LMS 7.8.

Had to create a mount point and I am now scanning.

Thanks to djoole and unholyeyebrows.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Glad it's all sorted out for you both :)
And sorry that you have to upgrade perl :/
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
Thanks to unholyeyebrows and djoole, I have the Logitech Media Server running on my freenas box, and I don't have to rely on the Windows box.

there were a couple of problems in following unholyeyebrows' method:

(a) pkg_delete glib... generated messages about something unable to be removed;

(b) when I tried to reinstall glib I got a message that it conflicted with some existing package (whose name I forget), and when I tried to delete that I got a message that other installed packages depended on it.

But lms is working here anyway.
 

evilandy

Dabbler
Joined
Sep 26, 2011
Messages
38
Other installation information

Hi Everyone,

I've followed the instructions above but cannot see the lms plugin in the jail.

I've tried to re-run the installation process, by selecting the

./installme.sh
rm -rdf /usr/local/lms *(Directory containing lms)


but now obtained the

/usr/local/etc/rc.d/lms: WARNING: $command_interpreter /usr/local/bin/perl != /usr/bin/perl
lms already running? (pid=5644).

and have hit a block. I don't know how to turn this off.

Any ideas?

Thanks,

EA
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
LMS will not show up in the Plugins section of the WebGUI since this method is a manual install. Not an installl via a PBI.

Just run LMS with

http://<jail ip address>:9000

something like:

http://192.168.1.101:9000
 

darkneo

Cadet
Joined
Jul 30, 2012
Messages
2
I want install Perl 5.14 (I have a fresh install of Freenas 8.2) but I don't understand, this command doesn"t work :

[root@freenas] /var/db/portsnap# portsnap
portsnap: Command not found.

And directory /usr/ports doesn't exist !!
So I can't install perl 5.14 :(

What version of Freenas you use ?
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
You need to use the following commands from inside the jail :

portsnap fetch
portsnap extract
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Yes.
In order to install LMS, you first need to install the Jail plugin, and then follow the README
 

FreeNASUser5129

Dabbler
Joined
Feb 18, 2012
Messages
15
Hey Guys,

This is awesome...got it all setup (I did have to upgrade Perl BTW), then realized the Triode's 3rd Party Spotify Plugin isn't supported on FreeNAS/FreeBSD.

This is a deal-breaker for me, so I'm going to go back to Windows unless anyone can point me in the right direction. I can't use the official Spotify app because it (inexplicably) only supports certain models of Squeezebox players.

1. Is there any known workaround to get Triode's plugin working?
if not
2. How exactly would I uninstall this from my jail?

I don't want to have 2 servers running...

Thanks!
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Your plugin must have binaries... i think the only way to get it working is to build the binaries from the source.

To uninstall my package (erg, never thought about that), you need to delete /usr/local/lms, /usr/local/etc/rc.d/lms, and delete the line lms_enable="YES" from /etc/rc.conf
 

mcgregorous

Cadet
Joined
Sep 7, 2012
Messages
1
I'd love to try this, but it seems the file is no longer being hosted.

Any chance of a rehost, please?

Cheers!
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
I don't understand, my free.fr web site isn't available (error 503)
I hope it's temporary.
Meanwhile could someone post a mirror? (i don't have the package anymore... although i could make one from my jail, but it wouldn't be clean (would contain my prefs/plugins/db)
 

fabads

Cadet
Joined
Sep 4, 2012
Messages
2
I get errors doing the pkg_delete on iconv and perl

Jail# pkg_delete glib-2.28.8_2
pkg_delete: file '/usr/local/share/GConf/gsettings' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/share/GConf/gsettings'
pkg_delete: file '/usr/local/share/GConf' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/share/GConf'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)


Jail# pkg_delete perl-5.12.4_3
pkg_delete: file '/usr/local/lib/perl5/5.12.4/man/man3' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/lib/perl5/5.12.4/man/man3'
pkg_delete: file '/usr/local/lib/perl5/5.12.4/man' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/lib/perl5/5.12.4/man'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
Removing stale symlinks from /usr/bin...
Removing /usr/bin/perl
Removing /usr/bin/perl5
Done.
Cleaning up /build/home/jpaetzel/8.2.0/plugins-base/amd64/make.conf.build... Done.
Cleaning up /etc/manpath.config... Done

Then I get an error after the first reinstall command:

cd /usr/ports/lang/perl5.14/ && make install clean
/usr/ports/lang/perl5.14/ No such file or directory

Hi,

The same messages on my side (install of perl 5.14 seems to be ok). However the following error is displayed when trying to compile glib2.0:

Code:
cd /usr/ports/devel/glib20/ && make install clean
===>   glib-2.28.8_4 depends on file: /usr/local/bin/python2.7 - found
===>   glib-2.28.8_4 depends on executable: gmake - found
===>   glib-2.28.8_4 depends on file: /usr/local/bin/perl5.14.2 - found
===>   glib-2.28.8_4 depends on package: libtool>=2.4 - found
===>   glib-2.28.8_4 depends on executable: pkgconf - not found
===>    Verifying install for pkgconf in /usr/ports/devel/pkgconf
===>  Installing for pkgconf-0.8.8

===>  pkgconf-0.8.8 conflicts with installed package(s):
      pkg-config-0.25_1

      They install files into the same place.
      Please remove them first with pkg_delete(1).
*** Error code 1

Stop in /usr/ports/devel/pkgconf.
*** Error code 1

Stop in /usr/ports/devel/glib20.
*** Error code 1

Stop in /usr/ports/devel/glib20.


I removed pkg-config-0.25_1 (need to force due to dependancies with other packages). It seems to solve the issue (but maybe creating others for the other packages) !
 
Status
Not open for further replies.
Top