Install QT 4.8.6 on Linux
Contents
Some notes on installing QT 4.8.6 on Ubuntu 16.04.3 LTS 64-bit OS.
Get files
Installation
QT compiler
- Install sudo apt install libx11-dev libxext-dev libxtst-dev- For solving Basic XLib functionality test failederror
 
- For solving 
- tar xzvf qt-everywhere-opensource-src-4.8.6.tar.gz
- cd qt-everywhere-opensource-src-4.8.6
- ./configure && make && sudo make install
- In your .zshrc, add
|  |  | 
QT creator
- chmod +x qt-creator-linux-x86-opensource-2.5.2.bin
- ./qt-creator-linux-x86-opensource-2.5.2.bin
Try it!
- Go to cd /usr/local/Trolltech/Qt-4.8.6/binand execute./qmake -v. If you see the version information, you are done!
- Try typing qmakedirectly in your terminal. If error message occurs, usewhich qmaketo locate the soft link and fix it accordingly.