Install QT Creator on centos

Source: Internet
Author: User

Install QT Creator on weekends,

Download qt-sdk-linux-x86-opensource-2010.05.1.bin

First install GCC g ++

Yum-y install gcc

Yum-y install gcc-C ++

During installation

Run yum. The system prompts existing lock/var/run/yum. PID: Another copy is running as PID 3046.

 

Problem analysis: the main cause is that Yum is automatically updated, so this error will be reported when you run Yum again.

Solution: you only need to disable the yum update that is being executed, stop the running Yum process, or disable automatic start of the yum process at startup.

Procedure:

Stop Yum Process

[Root @ localhost ~] # Rm-F/var/run/yum. PID

Why is there a yum process running?

The yum automatic update mechanism automatically activates the yum process and stops the automatic update with the following command:

[Root @ localhost ~] #/Etc/init. d/Yum-updatesd stop

Stop Yum-updatesd: [OK]

If you do not need to update the service automatically, you can delete it directly.
# Yum remove Yum-updatesd
However, after the service is deleted, the following commands will be used for subsequent updates.

# Yum update

Original article: http://www.lutuzhi.com/howto/112.html

Http://www.lutuzhi.com/howto/112.htmlafter the problem is fixed, #chmod U + x qt-sdk-linux-x86-opensource-2010.05.1.bin #./problems occur when installing the qt-sdk-linux-x86-opensource-2010.05.1.bin

The following error occurs after the installation is started:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found
Follow the instructions to complete the installation and start QT creator to report the same problem.
After a search by Google, Baidu, and Bing, the solution is summarized as follows:
Execute strings/usr/lib/libstdc++.so.6 | grep Glibc command
No glibcxx_3.4.9 is returned.

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
Glibc_2.0
Glibc_2.3
Glibc_2.4
Glibc_2.3.4
Glibc_2.1
Glibc_2.1.3
Glibc_2.2
Glibcxx_force_new
Glibcxx_debug_message_length

Run
ls -l  /usr/lib/libstdc++. So.6
Found
/Usr/lib/libstdc ++. so.6->/usr/lib/libstdc ++. so.6.0.8
Libstdc ++. so.6.0.10 must be used to replace libstdc ++. so.6.0.8,
Downloaded from csdn
Get root permission
su root
Delete ibstdc ++. so.6.0.8
rm /usr/lib/libstdc++.so.6
Copy libstdc ++. so.6.0.10 to/usr/lib.
cp  /.../.../libstdc++.so.6.0.10  /usr/lib
Link libstdc ++. so.6 to libstdc ++. so.6.0.10
ln -s /usr/lib/libstdc++.so.6.0.10  usr/lib/libstdc++.so.6
Confirm the above operations are correct
strings /usr/lib/libstdc++.so.6 | grep GLIBC 
Output:

 


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
From http://blog.csdn.net/crazin/archive/2011/01/07/6122392.aspx
After the installation is complete, test helloworld and find that something is wrong
 
 
 

# Include <qtcore/qcoreapplication>

Not found

And

Error: QT version is invalid ..............

The qmake commend "not found" was not found or not executable

The problem may be found during the installation path of my QT.

Default installation path/opt/qtsdk-2010.0.5

-And. This may be the cause. reinstall QT creator to set its installation path/opt/qtsdk

After the installation is complete, set the environment path.

 

No problem in compiling helloworld

 

Then write mainwindow

 

 

/Home/esutton/qtsdk-2009.01/QT/lib/libqtgui. So: Undefined reference to 'fcfreetypequeryface'
Collect2: LD returned 1 exit status

 

Continue sogou

To update FOntconfig

 


Then update this item. The libxml2 or later version is required, and FreeType is difficult. Maybe it is because my system does not have a necessary library to install.

It is recommended to install some basic things and then install QT, or else it will be very difficult

I have uploaded all these little things to csdn,

 

This is easy to handle.

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.