Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I'm new on ubuntu and I can't understand the meaning of installation guide of software on ubuntu. I want to install QT on the basis of an instruction that said I should install Qt version > 4.6; (core, gui, and XML components)

What does it mean? How can I start installing QT? Thanks

share|improve this question
add comment

marked as duplicate by Mitch, Warren Hill, guntbert, Eric Carvalho, karel Oct 3 '13 at 14:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

First of all: If you install software the way it's supposed to be done on Ubuntu, namely by using software center, synaptic, muon, aptitude, apt-get, or any other dpkg-frontend, these programs will install all required dependencies automatically. My suggestion is therefore, to use one of the mentioned programs (I'd use synaptic, but many people prefer Software Center) and search if the program you want to install is listed there. If yes, install the version from software center, because this will give you automatic updates and an easy way to uninstall it. Also, as said, all required dependencies will be installed automatically, what saves you a bunch of work when installing programs with lots of dependencies.

Now to answer your question in case the program you want to install is not available in the Ubuntu repositories and therefore does not appear in Software Center: In order to get a more or less complete installation of Qt with all the fancy modular stuff (gui, xml, sql,...), open Synaptic, or Software Center, or Muon, or aptitude, or whatever dpkg-frontend you want to use, and search for "libqt4-dev". In case you are using Software Center, you might need to tell it to "show technical items" (in the status bar at the bottom of the window) to get the result displayed. Install the package libqt4-dev, and you should be fine. This should not only install all relevant Qt libraries, but also the development headers that you might need if the guide you are following requires you to compile the program yourself.

If you want to use the command line instead of a GUI tool, simply run

sudo apt-get install libqt4-dev
share|improve this answer
    
Thanks alot. but I checked my software center it shows that l have installed libqt4-dev before but when I run sudo apt-get install libqt4-dev in terminal I got this text:maryam@maryam-MM061:~$ sudo apt-get install libqt4-dev [sudo] password for maryam: Reading package lists... Done Building dependency tree Reading state information... Done libqt4-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 428 not upgraded. what does it mean? I mean 0 upgraded, 0 newly installed, 0 to remove and 428 not upgraded? –  user196345 Oct 2 '13 at 11:14
    
That is just a general notice that you have 428 updates for your system available. You can check and install the list of available updates either by running update-manager, or by using synaptic/muon/aptitude, or by running sudo apt-get upgrade (does only do updates that don't require other packages to be removed) or sudo apt-get dist-upgrade (includes updates that need to remove other packages). –  soulsource Oct 2 '13 at 18:08
    
If you have libqt4-dev installed (which should be Qt version 4.8 if you are on Ubuntu 12.04), you should already have fulfilled this requirement of the program you are planning to install. –  soulsource Oct 2 '13 at 18:10
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.