[ec7940be] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
[f3429309] | 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[ec7940be] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[d027410] | 8 | <!-- $LastChangedBy$
|
---|
| 9 | $Date$ -->
|
---|
[ec7940be] | 10 |
|
---|
| 11 | <sect2>
|
---|
| 12 | <title>Qt Installation Alternatives</title>
|
---|
| 13 |
|
---|
[f3429309] | 14 | <para>The installation of <application>Qt</application> presents
|
---|
[ec7940be] | 15 | several challenges and choices. Complicating the Qt installation is the fact
|
---|
[f3429309] | 16 | that there are two versions, <application>Qt4</application> and
|
---|
[ec7940be] | 17 | <application>Qt5</application>, that have executable programs with
|
---|
| 18 | identical names. If both packages are installed on one system,
|
---|
| 19 | the only methods to manage which set of programs is used is to
|
---|
| 20 | either control the users' <envar>PATH</envar> or to rename files
|
---|
| 21 | either directly or via symbolic links. Both packages cannot
|
---|
| 22 | be installed in the same directory.
|
---|
| 23 | </para>
|
---|
| 24 |
|
---|
[f3429309] | 25 | <para>If you are only going to install one of the Qt versions,
|
---|
| 26 | the choice of installation methods is easier. You can either
|
---|
[ec7940be] | 27 | install the components in the several directories of the <filename
|
---|
[f3429309] | 28 | class='directory'>/usr</filename> hierarchy or install the
|
---|
[0dd2bc6] | 29 | entire package in a separate directory of your choice. <!-- We
|
---|
[f3429309] | 30 | refer to these options below as "Method 1: Installing in /usr"
|
---|
[0dd2bc6] | 31 | and "Method 2: Installing in /opt". --></para>
|
---|
[ec7940be] | 32 |
|
---|
| 33 | <para>If both versions of Qt are to be installed, one or both versions need
|
---|
| 34 | to be installed in a separate directory. For the purposes here we use the
|
---|
| 35 | <filename class='directory'>/opt</filename> directory. The selection of
|
---|
| 36 | which version is being used by individual users on a system is controlled
|
---|
| 37 | by the <envar>PATH</envar> variable. Other systems can be designed, but
|
---|
| 38 | the BLFS editors find the <envar>PATH</envar> method easiest.</para>
|
---|
| 39 |
|
---|
| 40 | <para> The advantage of installing in <filename
|
---|
| 41 | class='directory'>/usr</filename> is that no updates to the
|
---|
| 42 | <filename>/etc/ld.so.conf</filename> or
|
---|
| 43 | <filename>/etc/man_db.conf</filename> files are required. The package files
|
---|
| 44 | are distributed within several subdirectories of the <filename
|
---|
| 45 | class='directory'>/usr</filename> hierarchy. This is the method that most
|
---|
| 46 | commercial distributions use. The disadvantage for BLFS users is that this
|
---|
| 47 | Qt instance cannot be upgraded while it is in use. For instance, it cannot
|
---|
| 48 | be upgraded from a running KDE environment. It also precludes having
|
---|
[f3429309] | 49 | multiple versions of Qt on your system and does not allow reverting to
|
---|
[ec7940be] | 50 | an existing, known working instance of Qt.</para>
|
---|
| 51 |
|
---|
| 52 | <para> The advantage of installing <application>Qt</application> in a
|
---|
[0dd2bc6] | 53 | custom directory such as <filename
|
---|
| 54 | class='directory'>/opt/qt-&qt4-version;</filename> or <filename
|
---|
| 55 | class='directory'>/opt/qt-&qt5-version;</filename> is that it keeps all
|
---|
| 56 | the package files consolidated in a dedicated directory hierarchy. By using
|
---|
[ec7940be] | 57 | this method, an update can be made without overwriting a previous
|
---|
| 58 | installation and users can easily revert to a previous version by changing
|
---|
| 59 | one symbolic link or merely changing the PATH variable. It also allows a
|
---|
| 60 | developer to maintain multiple versions of <application>Qt4</application>
|
---|
| 61 | or <application>Qt5</application> for testing. </para>
|
---|
| 62 |
|
---|
| 63 | </sect2>
|
---|