Spark 1.1.0/usr/lib64/libstdc++.so.6:version ' glibcxx_3.4.9 ' not found

Source: Internet
Author: User
Caused By:java.lang.UnsatisfiedLinkError:/tmp/ snappy-1.0.5.3-45421025-17a6-448f-a9dc-55dbe488cc2a-libsnappyjava.so:/usr/lib64/libstdc++.so.6:version ' GLIBCXX _3.4.9 ' not found (required by/tmp/snappy-1.0.5.3-45421025-17a6-448f-a9dc-55dbe488cc2a-libsnappyjava.so)
At Java.lang.classloader$nativelibrary.load (Native method)
At Java.lang.ClassLoader.loadLibrary0 (classloader.java:1807)
At Java.lang.ClassLoader.loadLibrary (classloader.java:1703)
At Java.lang.Runtime.load0 (runtime.java:770)
At Java.lang.System.load (system.java:1003)
At Org.xerial.snappy.SnappyNativeLoader.load (snappynativeloader.java:39)

... More

View version:

strings/usr/lib/libstdc++.so.6 | grep GLIBC

Download the good file:

sudo mv Libstdc++.so.6.0.13/usr/lib

Delete old version

sudo rm-f/usr/lib/libstdc++.so.6

Establish a soft connection

sudo ln-s/usr/lib/libstdc++.so.6.0.13/usr/lib/libstdc++.so.6

The display is as follows:

glibcxx_3.4
glibcxx_3.4.1
glibcxx_3.4.2
glibcxx_3.4.3
glibcxx_3.4.4
glibcxx_3.4.5
glibcxx_3.4.6
glibcxx_3.4.7
glibcxx_3.4.8
glibcxx_3.4.9
glibcxx_3.4.10
glibcxx_3.4.11
glibcxx_3.4.12
glibcxx_3.4.13
glibc_2.2.5
glibc_2.3
glibc_2.4
glibc_2.3.2
Glibcxx_force_new
Glibcxx_debug_message_length


###################################


Note: See whether you are using 32bits or 64bits

It says 32bits on top.

64bits only need to change Lib to lib64, while downloading support 64bit package can

sudo mv libstdc++.so.6.0.13/usr/lib64/
cd/usr/lib64/
sudo chmod 755 libstdc++.so.6.0.13
sudo ln-s/usr/lib64/libstdc++.so.6.0.13/usr/lib64/libstdc++.so.6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.