2

I installed qt5.4 from here in Ubuntu 14.04, but when I run:

qmake -v

I always get the old version Qt5.2.1, although I think it is installed here Qt version 5.4.2 in /opt/qt54/lib. Can anyone tell me how to make sure that Qt5.4.2 is installed properly?

Thanks

karel
  • 122,292
  • 133
  • 301
  • 332
B.andalous
  • 25
  • 1
  • 4

2 Answers2

0

You might have both versions installed, use whereis command to find about all available instance of a program:

whereis command-name

e.g:

whereis qmake

it will tell you if any other version was available, then you can use absolute path to find about its version, like:

/usr/local/bin/qmake -v
Ravexina
  • 57,256
0

Look in /opt/qt54/bin for a file called qt54-env.sh. If the file is not there open Files file browser at /opt/qt54/ and search for qt54-env.sh from there. Source /opt/qt54/lib/qt54-env.sh to set the correct environment.

cd  
source /opt/qt54/lib/qt54-env.sh
karel
  • 122,292
  • 133
  • 301
  • 332