/usr/lib/plexmediaserver/Plex Media Scanner: error while loading shared libraries: libboost_system.so.1.47.0: cannot open shared object file: No such file or directory
So I run this command
ldd /usr/lib/plexmediaserver/Plex\ Media\ Server | grep "not found"
And this is the output
libboost_system.so.1.47.0 => not found<br />
libboost_filesystem.so.1.47.0 => not found<br />
libboost_thread.so.1.47.0 => not found<br />
libboost_iostreams.so.1.47.0 => not found<br />
libboost_regex.so.1.47.0 => not found<br />
libboost_signals.so.1.47.0 => not found<br />
libboost_program_options.so.1.47.0 => not found<br />
libavutil.so.50 => not found<br />
libavcodec.so.52 => not found<br />
libavformat.so.52 => not found<br />
libswscale.so.0 => not found<br />
libnatpmp.so.1 => not found<br />
libminiupnpc.so.8 => not found<br />
libiconv.so.2 => not found<br />
libcurl.so.4 => not found<br />
libsoci_core-gcc-3_0-3.0.0.so => not found<br />
libsoci_sqlite3-gcc-3_0-3.0.0.so => not found<br />
libpython2.7.so.1.0 => not found<br />
libfreeimage.so.3 => not found<br />
libjemalloc.so.1 => not found
I think it's an error that the ubuntu packages do not properly configure this library path upon installation. I just wasted a bunch of time investigating why I didn't have libiconv on my ubuntu system only to find that it's a local library, but in a location my system knows nothing about (and I had no idea there was an extra step to make it work).
Ubuntu for a long time does not allow you to set this environment variable from user files for security reasons.
The secure and correct way to do this is to place a package-specific file in
/etc/ld.so.conf.d
I created one and then configured the link loader via ldconfig:
I think that the ubuntu packages should actually do the above for you. I was getting 404 errors trying to play some mp4 files and only when I tried running the failing command manually did I see that the error was it couldn't load some library files that actually are already sitting there, causing the transcode to fail and causing a spurious 404 trying to play a video that was in no way apparently related initially.
Hope this helps you all and hope to see this in the pkg updates.
WOW, NO never ever do that. We ship patched strange version of a lot of libs that can really mess up your system. Adding that to the global library cache is BAD BAD BAD. Running the server as intended from upstart works just fine for all of us. So your problem must be something else, but please remove that line quickly and rerun ldconfig.