Nominate our 2022 Qt Champions!

What should I add to the PATH? [SOLVED]

  • I found that I should add only qt_folder/bin to the PATH variable, is this true? Also, I don't see structure like this in my folder, where I've installed Qt. I tried to add /home/john/Qt5.5.0/5.5/gcc_64/bin:$PATH (yes, I did my installation in the home dir), but when I execute which qt an output would be:
    which: no qt in (/home/john/Qt5.5.0/5.5/gcc_64/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl). Also, do I need quotes when setting some variables in the PATH?


  • Moderators

    Hi @sosun ,

    You don't need to add anything to your PATH.

    In fact, you should not add anything to your PATH -- people who do this often encounter crashes (due to the wrong libraries being loaded).

    but when I execute which qt... an output would be:
    which: no qt in (/home/john/Qt5.5.0/5.5/gcc_64/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl).

    That's because there is no file called qt (which is normal). Instead, launch Qt Creator to start coding.

  • @JKSH , oh thanks! You made it clear to me.

Log in to reply