Install qt5.0.1 on centos 6.4

Source: Internet
Author: User

1. Download The qt5 SDK

 
Http://releases.qt-project.org/qt5/5.0.1/qt-linux-opensource-5.0.1-x86-offline.run

2. Installation

 
Sudo chmod 777 qt-linux-opensource-5.0.1-x86-offline.runsudo./qt-linux-opensource-5.0.1-x86-offline.run

The following error occurs:

 
./Qt-linux-opensource-5.0.1-x86-offline.run:/usr/lib/libstdc ++. so.6: Version 'glibcxx _ 3.4.15 'not found (required by./qt-linux-opensource-5.0.1-x86-offline.run)

3. Solution

This error occurs because glibcxx_3.4.15 is not in the current GCC version (gcc-4.8.0 compiled and installed yesterday. ViewGlibc

/Usr/lib/libstdc ++. so.6 | grep glibc

Will output the following content

 
Bytes

The version glibcxx_3.4.15 is not available. Download a new version.

 
Http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6_4.7.2-5_i386.deb

4. decompress the file

 
Ar-x libstdc ++ 6_4.7.2-5_i386.debtar-zxvf data.tar.gz

The USR folder is displayed. Go to usr/lib/i386-linux-gnu directory

CD usr/lib/i386-linux-gnu

5. Copy the libstdc ++. so.6.0.17 file to the/usr/lib folder.

 
Sudo CP libstdc ++. so.6.0.17/usr/lib

 6. Go to the/usr/lib folder and create a new soft link.

 
Sudo ln-SF libstdc ++. so.6.0.17 libstdc ++. so.6

 7. Check again

 
Strings/usr/lib/libstdc ++. so.6 | grep glibc

Output

Bytes

It is found that glibcxx_3.4.15 has already appeared.

8. Continue the previous QT Installation

 
Sudo./qt-linux-opensource-5.0.1-x86-offline.run

 

Smooth installation...

Related Article

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.