spin_eight
spin_eight

Reputation: 4025

Installing Qt on Linux (Debian distribution)

I have Qt 4.6.3 on Debian. I need version 4.8.1.

To install it I downloaded the Qt SDK 1.2.1 from the Qt site, where is said that it contains version 4.8.1 After installation I checked Qt version and it is 4.6.3 instead of expected 4.8.1.

What I am doing wrong? And how can I install 4.8.1?

Upvotes: 1

Views: 15539

Answers (1)

cmannett85
cmannett85

Reputation: 22356

First of all I recommend getting 'official' Debian Qt upgrades by adding the testing (wheezy) repo to your package manager, this way everything on your system will be updated seamlessly in a few clicks.

If you can't do this, then:

  • Use your package manager to uninstall the existing Qt installation (so that's the runtime libs, plugins, and Qt Creator).
  • Install the SDK anywhere you like, it installs under one folder anyway.
  • Update your $PATH to point to the directory with qtcreator, qmake, etc., there are numerous ways of doing this, the simplest is exporting the updated $PATH in your .bashrc. (And optionally make some nice shortcuts for your DE).
  • Create symlinks in /usr/lib (or /usr/lib64) to point to the Qt libraries the SDK provides, or add a qt.conf file containing the path in your /etc/ld.conf.so.d/ directory and run ldconfig as root.

I'm an openSUSE user myself, so some of the above may slightly different on Debian, hopefully someone with Debian experience can chime in if I'm incorrect.

Upvotes: 2

Related Questions