Logitech Media Server on Arch Linux on a Cubox -i4 Pro

This is how to install logitechmediaserver on an ARM7 installation of Arch Linux on the Cubox -i4 Pro. These are not my instructions, I got them from a forum user on the Cubox -i Forums.

NOTE: All pacman commands must be done as root or su. All other commands should be done as your user unless otherwise required.

First I had to install wget to get the source code.

pacman -S wget

Then

wget https://aur.archlinux.org/packages/lo/logitechmediaserver/logitechmediaserver.tar.gz

tar -xf logitechmediaserver.tar.gz

cd logitechmediaserver

Then it got tricky the next command was supposed to be

makepkg

Didn’t work. Failed and said this:

john@solidpoo logitechmediaserver]$ makepkg
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
[john@solidpoo logitechmediaserver]$



So I had to go to the Arch Wiki page on makepkg and it said to first install base-devel

pacman -S base-devel

then I ran

makepkg -Asc --asroot

again and it told me there were four dependencies needed

==> Making package: logitechmediaserver 7.7.3-2 (Tue Feb 25 16:39:39 JST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
-> nasm
-> yasm
-> rsync
-> subversion
==> ERROR: Could not resolve all dependencies.

So then I did:

pacman -S nasm yasm rsync subversion

then

makepkg -Asc --asroot

It took a LONG time to compile. About an hour and 15 minutes. Once compiled then you need to install

pacman -U logitechmediaserver-7.7.3-2-armv7h.pkg.tar.xz

Now you’ll want to start it and enable it at boot (as root)

systemctl start logitechmediaserver

and / or

systemctl enable logitechmediaserver.service

And that ought to do it. Enjoy your media server