7

I want to remove the installed Qt 4.8 libraries and install Qt 4.6 libraries on my mac.

But when I try to install them I get:

"Qt libraries cannot be installed on this disk. A newer version of this software already exists on this disk"

I removed the /usr/local/Qt4.8.x folder from the disk but the message is still here.

How can I remove the old libraries?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Jacob Krieg
  • 2,834
  • 15
  • 68
  • 140

2 Answers2

20

You shouldn't manually delete a folder unless there is no other option. You should try running the uninstall script first:

sudo python /Developer/Tools/uninstall-qt.py

The path to this script will be different if you are running the latest Xcode app bundle and not the default Snow Leopard/Lion Xcode.

Cameron Tinker
  • 9,634
  • 10
  • 46
  • 85
  • Have you managed to do this proposal in Qt5 and El Capitan? I did it unsuccessfully along with other proposals http://stackoverflow.com/a/26811738/54964 and http://stackoverflow.com/a/17992836/54964 – Léo Léopold Hertz 준영 Mar 21 '16 at 08:28
  • 1
    Unfortunately, I haven't done much Qt5 development on OS X lately. I would imagine that the paths would need to be changed and that some uninstall script still exists, but I can't test this at the moment. – Cameron Tinker Mar 21 '16 at 11:36
  • Do you have any idea how to search it? I have the system here and I can test to find it. – Léo Léopold Hertz 준영 Mar 21 '16 at 11:37
2

I installed qt via homebrew. To remove I simply wrote the following in the terminal: brew uninstall qt@4

MarcoMag
  • 556
  • 7
  • 18
  • I have used the above command, it works nicely. In my case, two versions of Qt were installed on my system. 1st one I have removed from Qtuninstaller tool, the other one i have run the brew uninstall qt@6. Thanks for your post. – Kumar Anil Chaurasiya Apr 10 '21 at 09:47