libstdc++.so.6 error on Ubuntu 10.04 LTS

I have 2 machines I was testing this on.



I have an XBMC Live ‘Dharma’ (10.1) based on the Ubuntu 10.04.2 LTS media center PC. I downloaded and extracted PlexMediaServer-v0.9.2.8-34480ac to my home directory and it starts up fine using the start.sh script on that box.



I also have a rackmount server running Ubuntu 10.04.2 LTS that I would prefer to run PlexMediaServer on (more CPU power for transcodeing and I can ssh tunnel into it from outside). I went through the same download and extraction of PlexMediaServer-v0.9.2.8-34480ac on that box and when I try and run the start.sh script it gives me the following message:

~/PlexMediaServer-v0.9.2.8-34480ac$ ./Plex Media Server: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory



Both have that library located in ‘/usr/lib/libstdc++.so.6’ … any ideas? an environment variable issue?

start.sh is what you need to run (that sets up environment paths), but otherwise, try running



<br />
$ ldd Plex\ Media\ Server<br />




And see what it says.


~/PlexMediaServer-v0.9.2.8-34480ac$ ldd Plex\ Media\ Server
linux-gate.so.1 => (0xf771c000)
libcurl.so.4 => not found
libsoci_sqlite3-gcc-3_0-3.0.0.so => not found
libswscale.so.0 => not found
libavutil.so.50 => not found
libavcodec.so.52 => not found
libavformat.so.52 => not found
libxml2.so.2 => not found
libdl.so.2 => /lib32/libdl.so.2 (0xf7706000)
libsqlite3.so.0 => not found
libpthread.so.0 => /lib32/libpthread.so.0 (0xf76ed000)
libsoci_core-gcc-3_0-3.0.0.so => not found
libboost_program_options.so.1.46.1 => not found
libboost_signals.so.1.46.1 => not found
libboost_filesystem.so.1.46.1 => not found
libboost_regex.so.1.46.1 => not found
libboost_iostreams.so.1.46.1 => not found
libboost_thread.so.1.46.1 => not found
libboost_system.so.1.46.1 => not found
libminiupnpc.so.5 => not found
libnatpmp.so.1 => not found
libavahi-client.so.3 => not found
libavahi-common.so.3 => not found
libepeg.so.0 => not found
libfreeimage.so.3 => not found
libpython2.7.so.1.0 => not found
libiconv.so.2 => not found
libz.so.1 => /usr/lib32/libz.so.1 (0xf76d5000)
librt.so.1 => /lib32/librt.so.1 (0xf76cb000)
libutil.so.1 => /lib32/libutil.so.1 (0xf76c7000)
libstdc++.so.6 => not found
libm.so.6 => /lib32/libm.so.6 (0xf76a1000)
libgcc_s.so.1 => not found
libc.so.6 => /lib32/libc.so.6 (0xf7546000)
/lib/ld-linux.so.2 (0xf771d000)

/usr/lib$ ls -alF|grep libstdc
lrwxrwxrwx 1 root root 19 2011-04-25 21:09 libstdc++.so.6 -> libstdc++.so.6.0.13
-rw-r--r-- 1 root root 1044112 2010-03-26 20:16 libstdc++.so.6.0.13


Looks like you're on a 64-bit system, i bet if you "file" that libstdc++.so.6.0.13 it'll be x86_64, and perhaps you don't have a 32-bit version on /lib32 or /usr/lib32

Didn’t realize Plex MS needed the 32 bit libraries as opposed to the AMD64 bit ones. I scp’d 32 bit versions of libstdc++.so.6 into /usr/lib32/ and libgcc_s.so.1 into /lib32/ and it’s working great now. Thanks for the awesome help!



Edit: I’ve since gone back and just done a "sudo apt-get install ia32-libs"

Thanks for the sharing the solution!

I recently got this issue after the latest Ubuntu upgrade with latest PMS. What I did was this:

sudo apt-get install gcc-multilib

Because:

user@server:~/folder$ sudo apt-get install ia32-libs
[sudo] password for user:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

@fuglestad

(1) The last answer was 7 years ago :sweat_smile: Please do not resurrect such old threads.
(2) I am pretty sure you just installed the 32 bit Plex package on your 64 bit Ubuntu. Please just reinstall the correct 64 bit package.

1 Like

Please create a new thread.

Be also advised, Ubuntu 10 is no longer supported