I have successfully built and am running the latest 7.9 nightly (1438870722) in a FreeBSD jail on FreeNAS FreeNAS-9.3-STABLE-201506292332 on an HP Microserver Gen8 with 10GB RAM, a 16GB flash drive, a 120GB Samsung SSD and 4 x 4TB WD Red HDs.

My goal was to have 10TB+ of lz4 storage for media and run LMS on the SSD. FreeNAS boots from the flash drive installed in the internal USB port, the SSD uses the ODD bay and SATA connector and the WD Reds are in the 4 drive trays.

I struggled with getting LMS to build working from the information in this thread and tried at least a half dozen times before I found the path. The following commands are exactly what I used as I went through the process successfully. You will have to adapt them to your directory/storage structures as appropriate. The key to getting it working was making sure the symbolic links to perl/perl5 were done/redone in both jails.

Create two jails: one to build LMS and one to run it. Use Advanced mode, enter the IPv4 default gateway and check VIMAGE.

In build_LMS jail:
Code:
pkg update
pkg upgrade
pkg install bash
pkg install gmake
pkg install rsync
pkg install nasm
pkg install wget
pkg install libgd
mkdir /tmp/LMS
cd /tmp/LMS
wget http://downloads.slimdevices.com/nightly/7.9/sc/292fd1e/logitechmediaserver-7.9.0-1438870722.tgz
tar xf logitechmediaserver-7.9.0-1438870722.tgz
git clone https://github.com/Logitech/slimserver-vendor -b public/7.9
ln -s -f /usr/local/bin/perl5.20.2 /usr/bin/perl
ln -s -f /usr/local/bin/perl5.20.2 /usr/bin/perl5
cd /tmp/LMS/slimserver-vendor/CPAN
./buildme.sh | tee /tmp/LMS/buildme.sh.log
cd /tmp/LMS/logitechmediaserver-7.9.0-1438870722/CPAN/arch/5.20
cp -Rp /tmp/LMS/slimserver-vendor/CPAN/build/arch/5.20/amd64-freebsd-thread-multi .
rm -rf i386-linux-thread-multi
rm -rf i386-linux-thread-multi-64int
rm -rf x86_64-linux-thread-multi
cd ..
rm -rf 5.8
rm -rf 5.10
rm -rf 5.12
rm -rf 5.14
rm -rf 5.16
rm -rf 5.18
cd /tmp/LMS
tar cf logitechmediaserver-7.9.0-1438870722_with_fbsd.tar logitechmediaserver-7.9.0-1438870722
In FreeNAS shell:

Code:
cp /mnt/SSD/jails/build_jail/tmp/LMS/logitechmediaserver-7.9.0-1438870722_with_fbsd.tar /mnt/SSD/jails/LMS/tmp
In LMS jail:

Code:
pkg update
pkg upgrade
pw groupadd -n lms -g 30001
pw useradd -n lms -u 30001 -g lms -s /usr/sbin/nologin -c "Logitech Media Server" -d /nonexistent
mkdir /usr/local/lms
tar xf /tmp/logitechmediaserver-7.9.0-1438870722_with_fbsd.tar -C /usr/local/lms
mv /usr/local/lms/logitechmediaserver-7.9.0-1438870722/* /usr/local/lms
rmdir /usr/local/lms/logitechmediaserver-7.9.0-1438870722
chown -R lms:lms /usr/local/lms
rm /usr/bin/perl
rm /usr/bin/perl5
ln -s -f /usr/local/bin/perl5.20.2 /usr/bin/perl
ln -s -f /usr/local/bin/perl5.20.2 /usr/bin/perl5
I created an additional storage source /mnt/SSD/lms_data with destination /mnt/lmsdata and set permissions:

Code:
chown -R lms:lms /mnt/lms_data/cache
chown -R lms:lms /mnt/lms_data/prefs
Create startup file: lms

This is trickier than it looks because it can't have any extra white space. I suggest getting it here:

http://pastebin.com/download.php?i=jtuvqvEJ

Follow the instructions in the file.

Code:
mv lms /usr/local/etc/rc.d/
chown root:wheel /usr/local/etc/rc.d/lms
chmod 555 /usr/local/etc/rc.d/lms
echo 'lms_enable="YES"' >> /etc/rc.conf
echo 'lms_cachedir="/mnt/lms_data/cache"' >> /etc/rc.conf
echo 'lms_prefsdir="/mnt/lms_data/prefs"' >> /etc/rc.conf
echo 'lms_playlistdir="/mnt/Playlists"' >> /etc/rc.conf
Restart your jail and try to connect to http://yourjailIP:9000