How am I supposed to install QT on ubuntu linux?
-
I went to the download page. I downloaded 2 different files that were supposed to be for my platform. One had a .run extension and the other had a .bin extension. Try as I might, linux had no idea what to do with either of these files.
Are they archives? Are they supposed to be executables? Are they supposed to do something on their own when the download finishes? I'm not kidding; after spending over an hour to download, I spent ANOTHER hour trying to figure out what to do with these files.
Before you ask, I already downloaded, installed, found I couldn't use QT on Windoze because it will keep telling me there's some problem with the compiler I have and gives no clue what to do about it. -
I've sucessfully built 4.8.4 on Mint Linux. Are you looking to install the SDk or just the library? Either way you can check out the downloads page at http://qt-project.org/downloads. Pretty straight forward.
-
[quote author="ffej2ffej" date="1372607406"]Further update: I've just gone to ubuntu software center (where everything installs by itself) and have begun the download from there. Let's see how it goes....[/quote]
Further update: The download from the software center downloaded, installed and worked. I even opened, compiled and ran one of the sample programs. Now to start some awesome programming!
-
I dowloaded and installed 5.0 fine. Your're problem is that you need to make the file execuable once you download it. so:
chmod +x name_of_file.runthen you run it like so:
./name_of_file.runLinux isn't windows. Although I understand if your are new to Linux from windows. I would suggest getting familiar with the command line before you go any further. GUI are really just convenience's for the user.
A good place to start is: http://linuxcommand.org/lc3_learning_the_shell.php
-
[quote author="cxx::qmanic" date="1372613877"]I dowloaded and installed 5.0 fine. Your're problem is that you need to make the file execuable once you download it. so:
chmod +x name_of_file.runthen you run it like so:
./name_of_file.runThank you for your info, cxx::qmanic. I considered doing that, but I assumed that If that was the proper procedure, someone on the download page would have TOLD me that. There I go assuming people have common sense.
-
[quote author="ffej2ffej" date="1372737580"]I assumed that If that was the proper procedure, someone on the download page would have TOLD me that. There I go assuming people have common sense. [/quote]That's a "basic security feature":http://ubuntuforums.org/showthread.php?t=1476469&p=9258838#post9258838 in recent versions of Ubuntu -- nothing is allowed to be executable by default (especially not something that came from an unknown source on the Internet!). The rules are different for older versions of Ubuntu (9.10 and earlier), and possibly even for other distros.
The Software Centre (or any other package manager) and your compiler will automatically set the +x flag for you. If you write your own shell script, you'll need to set the +x flag manually.
The download page assumes that *nix developers know about file execution permissions (which I think is a fair assumption).
[quote]I already downloaded, installed, found I couldn’t use QT on Windoze because it will keep telling me there’s some problem with the compiler I have and gives no clue what to do about it.[/quote]What's the exact error message? It may look like gobbledygook but it usually contains useful info. Post it here and we'll help you decipher it.