The method of installing Qt in CentOS in Vmware Virtual Machine
Editor to share with you how to install Qt in CentOS in the Vmware virtual machine, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Vmware installation
Installation package
Download address: https://www.wlrjy.com/Soft/89658.html
Installation tutorial
The Vmware version can be downloaded by Baidu search, and some images may require a higher version of Vmware.
CentOS installation
Mirror file
Download address (just download on the official website): https://www.centos.org/
Search for mirrors on CentOS official website
Baidu searches for CentOS. Click Get CentOS Now after entering the official website.
Click Get CentOS Now, then drop down the page, find More download choice and click in.
Then scroll down the page, find the location shown in the picture, continue to find the CentOS version you need, and click tree
Select the ISO image file (the ISO image file is under the isos folder, the 64-bit image selected here)
Select the download address in different regions, and select the version image you want.
Installation tutorial
Create a new virtual machine and select Custom
Next, select your own CentOS image file to set up the CentOS user.
Note: if the user name is set to root, an error will be reported. Do not use root.
The next step is to complete the creation of the virtual machine, and the CentOS installation is complete.
Install Qt under CentOS
Install the package (select the Linux version of the .run suffix)
Download address: http://download.qt.io/archive/qt/
Installation tutorial
Enter the browser in CentOS to download Qt
Authorize the current user, open the CentOS terminal, switch su to root user, set sudoers to editable, visudo modify sudoers, and insert I
Insert ddpapa ALL= (ALL) ALL under root ALL= (ALL) ALL
Ddpapa is the current user name, and the space is Tab
After authorizing the current user, use: sudo chmod 777 Qt installation file location
After entering the password, install the qt according to your own needs.
Note: using sudo to give the current user super permissions will report an error (is not in the sudoers file. This incident will be reported), workaround changing the sudoers file
These are all the contents of the article "how to install Qt in CentOS in the Vmware virtual machine". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!