LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to install Qt in Ubuntu?? (https://www.linuxquestions.org/questions/ubuntu-63/how-to-install-qt-in-ubuntu-380111/)

nelak 11-05-2005 03:00 AM

How to install Qt in Ubuntu??
 
hi,
I am new on ubuntu and apt environment. Can someone plz. tell me how to get Qt installed ?
Thanks

acid_kewpie 11-05-2005 03:13 AM

apt-get install qt

nelak 11-05-2005 03:05 PM

hi,
thanks for response but that is'nt working

error report:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package qt

bye

acid_kewpie 11-05-2005 03:10 PM

try "qt3" or "libqt3" or "libqt"

nelak 11-06-2005 05:22 AM

thanks for help and I have got Qt installed from synaptic package manager but when I tried to do the same with mplayer the installed mplayer does'nt work properly. Please look into it .
Thanks once again,
bye

garyozzy 11-30-2005 04:12 PM

i'm having the same trouble - apt-getting "qt3" or "libqt3" or "libqt"doesn't work.

Ubuntu 5.10

thx

kirpi 04-02-2010 08:03 AM

You might want to try
Code:

sudo apt-get install libqt4-dev

acid_kewpie 04-02-2010 10:45 AM

please don't drag up ancient threads. 4 1/2 years is far too old to reply to, and will probably confuse others who will now reply thinking it's a current thread again.

And of course your answer isn't appropriate for the OP as qt4 didn't exist when the question was asked.

webpolis 04-06-2010 09:06 PM

...

acid_kewpie 04-07-2010 01:53 AM

Hurrah for Sock Puppet accounts!

Kenny_Strawn 04-08-2010 12:15 AM

Quote:

Originally Posted by garyozzy (Post 1977122)
i'm having the same trouble - apt-getting "qt3" or "libqt3" or "libqt"doesn't work.

Ubuntu 5.10

thx

There's your problem boldfaced and in red. You have Breezy Badger installed? That's a four-and-a-half-year-old release. Try testing the upcoming LTS and see if it works. Beta 2 will be out tomorrow.

You can still use Migration Assistant to migrate documents and settings. Your software may still have to be apt-get installed, however.

rebroad 06-29-2011 01:13 PM

"apt-get install qt4-qmake" perhaps?

acid_kewpie 06-29-2011 01:27 PM

Quote:

Originally Posted by rebroad (Post 4399369)
"apt-get install qt4-qmake" perhaps?

Please... this is a FIVE YEAR OLD THREAD, Why did you reply to it??

Tomassum 03-08-2012 06:31 AM

Quote:

Originally Posted by nelak (Post 1936973)
hi,
I am new on ubuntu and apt environment. Can someone plz. tell me how to get Qt installed ?
Thanks

Hi,

You could try "apt-get install qt4"?

Ubuntu 11.10 includes it by default, you might want to upgrade :)

Tom

acid_kewpie 03-08-2012 06:49 AM

Quote:

Originally Posted by Tomassum (Post 4621713)
Hi,

You could try "apt-get install qt4"?

Ubuntu 11.10 includes it by default, you might want to upgrade :)

Tom

Please... this is a SIX YEAR OLD THREAD, Why did you reply to it??

cascade9 03-08-2012 07:00 AM

This thread is a self-supporting argument for closing old threads. ;)

But since that isnt LQ policy, and isnt likely to change, I look forward to acid_kewpie posting 'ARGGHH!!!! this is a *insert new number here* YEAR OLD THREAD, Why did you reply to it??' at some point in the future. :D

fendrake 07-02-2012 12:53 PM

Although the fact that I got an answer to my question from a one-year-old answer to the six-year-old question suggests there are reasons to not close threads!

So it seems Qt is included in Ubuntu 11.10 onwards, though I happen to still run 10. A "sudo apt-get install libqt4-dev" did the trick for what I needed.

jianglu 07-03-2012 07:28 AM

may i ask a qusetion? how can i post a post?

ziggo0 09-29-2012 05:17 PM

I'm so glad these terrible people replied to forever ago old threads - I would not have figured out my issue without them. Shame on them.

Rachok 05-04-2013 11:26 PM

Quote:

Originally Posted by nelak (Post 1936973)
hi,
I am new on ubuntu and apt environment. Can someone plz. tell me how to get Qt installed ?
Thanks

Try sudo apt-get install qt dude!

maitchy 06-21-2013 01:25 AM

A package by any other name... (would still be a cutey)?
 
Quote:

Originally Posted by Rachok (Post 4945123)
Try sudo apt-get install qt dude!

There is something still to be discussed from the original question, still causing problems today, and I think that is a good reason why it isn't a bad thing continuing the thread. The big problem is that:

sudo apt-get install qt

does not work... you have to know the (obscure) name of the package to install - something like libqt4-dev - when somebody says "You will need to install ... Qt 4.4.0 or higher". Sometimes there is a "meta package" or whatever, that allows the short name to be used when installing but often there isn't. Apache is another example. You can usually search for a package name but get a huge number of results that are usually irrelevant (and who is going to know there are two completely different things with the same TLA name?).

I think there should be some convention in package manager setups that means that a well-known name like "qt" or "squid" or "apache" (case-insensitive) should result in the installation of whatever is reasonable - the latest version of the package that is obviously meant. There should be a maintained, well-known list of packages that get referred to often so an average user (who is now likely to be less of a dyed-in-the-wool sysadmin/geek than a few years ago), as well as those looking after distros, should know it is safe to say something like "install nfs" and you can expect the explanation of how to actually do this doesn't have to change every few years or between distributions.

And it would also be nice if less specific requests (e.g. "install a web proxy" or "Fortran IV compiler :-)) could result in something sensible (e.g. a list of packages that could do the job, or a link to a website discussing options).

It isn't just that the installation process needs "idiot-proofing" - the name you must use (when installing, when finding man pages, when starting/stopping servers, and when configuring them - often not the same!) has gotten very, very complicated. And (to mis-quote the HHG) whenever we get to the stage of understanding what name to use in the latest distribution it changes to something even more bizarre and inexplicable. One way to work around the problem is to search the Internet for a good set of instructions that correspond to advice like "install a local dns server" - but the details of what to do will keep changing - while the most straight-forward approach is to improve the package managers and have a list of well-known packages so that people writing advice can be sure that, if a package is in the list, they don't have to go into great installation details themselves. The Internet (and print media) is littered with paragraph after paragraph of "If you have Fedora 8 or 9 do this... but if you have the latest slackware do that..." or even instructions that don't mention which distribution they will work with.

Mark

evo2 06-21-2013 01:30 AM

Hi,
Quote:

Originally Posted by maitchy (Post 4975845)
There is something still to be discussed from the original question, still causing problems today, and I think that is a good reason why it isn't a bad thing continuing the thread. The big problem is that:

sudo apt-get install qt

does not work... you have to know the (obscure) name of the package to install

The user should not expected to be able to guess an exact package name. Instead they should learn how to use "apt-cache search" to find out the package name.

Evo2.

maitchy 06-21-2013 02:49 AM

Quote:

Originally Posted by evo2 (Post 4975850)
Hi,

The user should not expected to be able to guess an exact package name. Instead they should learn how to use "apt-cache search" to find out the package name.

Evo2.

I agree that the user should not need to guess the exact name, but the problem I was referring to when I mentioned searching is very significant: for many packages (especially those with short names) you can get f-a-r too many results, e.g.:

apt-cache search qt|wc
1153 9316 67506

None of the descriptions in the over 1000 results screams "this is what you want to install if you need to use qt!".

Similarly, a search for xv can result in many results, none of which is xv!

Then there are alternative names for some packages that may or may not work; apt-cache search httpd does NOT find the apache2 package you need to install (but finds lots of other things). Similarly the user has to know which alternative name (out of samba/smb/cifs or named/bind/dns etc) to search for in the first place - the "wrong" name will return lots of results too.

Basically, users have to already know quite a bit and/or do some very careful Internet searching (again, being careful to avoid out-dated or wrong-distro advice). Think from the perspective of a newbie user - how are they expected to proceed? Or a seasoned user that wants to maintain several systems with least effort. Rote learning of important tiny differences that change often between systems hurts efficiency, increases the chances of mistakes and gives Linux a bad reputation.

Notice that "apt-cache search" works differently to "yum search" when it comes to multiple words - adding alternative names to a yum search helps you find what you are after (a sort of "implied OR" but with the sensible step of listing first those results that match the most search terms) while apt-cache's search is reduced with more search terms. I have to say that the apt tools are not as well geared to sensible system administration as (say) yum, but neither is really good enough. But I don't suggest one person redesigns it all to suit themselves - t should be the result of an agreed-upon set of standards. If we can have "well known ports" and RFC's that are good foundations in their own respect then we should be able to come up with a foundation stone for linux package naming/management.

I don't think what I'm suggesting is hugely difficult. I think it involves:
  1. a database of software titles (like "apache", "squid", "kermit")
  2. a subset or index into that of pretty well-known packages that people should be able to expect to be able to say "install that" and each distro make sure their install program will translate the name into what is required
  3. have apt-cache search work at least as well as yum's search when it comes to multi-word searches - preferrably going as far as accessing a network-based FAQ if really "dumb" searches are given (such as "search for anything that lets me share printers with a mac") and
  4. it must always list packages that provide the very famous daemons: httpd, lpd, named etc.
  5. It would also be nice, but not essential, to be able to be expanded to cope with the wide range of software linux can use after you install the appropriate pc/mac/Spectrum/Amiga/PDP11/microNOVA/etc emulator/virtualbox etc.
  6. Also nice-but-not-absolutely-essential: allow a flexible software installation "channel" system so that, for example, an organisation might have one "install server" that restricts what packages can be installed (for security or support reasons, for example) and/or supplements the normal distro's packages, and possibly keeps track of licensed software, so when somebody on a linux (/windows/whatever?) system within the organisation wants to see what could be installed to meet certain needs they get a tailored list, and it should cope with having a linux package installed within cygwin running under Windows, or does whatever is needed to make an application installed on a shared server available to this workstation.

Mark

sharklaser 07-06-2014 06:06 PM

Try Synaptic Package Manager to install it

smittythesmith 03-05-2015 05:04 PM

Libqt problem
 
I've been installing HPLIP on my ubuntu machine and I found this thread useful.

Jamsm 03-12-2015 03:21 PM

Yeah, I guess the package name in ubuntu 14.04 is qt[version]-qmake. Thanks to rebroad in 2011 :D
(the sdk fails to install)


All times are GMT -5. The time now is 08:26 AM.