(FreeBSD) (@feld)
Following on to my earlier questions about LD_LIBRARY_PATH.
In a freshly installed normal jail, if I install the pkg/port version 1.22.1.4228, the provided rc script doesn’t have LD_LIBRARY_PATH, and it works fine.
In a freshly installed normal jail, if I install pkg/port version 1.23.2.4625, the rc script still doesn’t have LD_LIBRARY_PATH, but now it doesn’t work. Multiple errors.
(What’s confusing to me is that I removed LD_LIBRARY_PATH from my main system, and everything is still working fine. Some of my paths and environment are different - maybe that’s relevant.)
Adding it back to the rc script seems to be the immediate solution for 1.23.2.4656.
On line ~56 of /usr/local/etc/rc.d/plexmediaserver or /usr/local/etc/rc.d/plexmediaserver_plexpass, you’ll see this:
export SCRIPTPATH="/usr/local/share/plexmediaserver-plexpass"
Add a new line after it, so it looks like this:
export SCRIPTPATH="/usr/local/share/plexmediaserver-plexpass"
export LD_LIBRARY_PATH="${SCRIPTPATH}/lib"